swap persistent hale getirildi

This commit is contained in:
Furkan Kalkan 2016-10-12 01:13:58 +03:00 committed by GitHub
parent 61acc063d6
commit ddddcffb2f
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ def chooseSwap(part):
def setSwap(part): def setSwap(part):
os.system("mkswap "+"/dev/"+part) os.system("mkswap "+"/dev/"+part)
os.system('echo "`lsblk -ln -o UUID ' + part + '` none swap sw 0 0 | tee -a /etc/fstab') os.system('echo "`lsblk -ln -o UUID ' + part + '` none swap sw 0 0" | tee -a /etc/fstab')
if __name__ == "__main__": if __name__ == "__main__":