Use UUID in resume

This commit is contained in:
Teo Mrnjavac 2014-12-31 19:30:58 +01:00
parent 5a86674ee7
commit 7638f80373

View File

@ -65,7 +65,7 @@ def create_conf(uuid, conf_path):
'title %s GNU/Linux, with Linux core repo kernel\n' % distribution,
'linux %s\n' % kernel,
'initrd %s\n' % img,
'options root=UUID=%s quiet resume=%s rw\n' % (uuid, swap),
'options root=UUID=%s quiet resume=UUID=%s rw\n' % (uuid, swap),
]
with open(conf_path, 'w') as f:
@ -91,7 +91,7 @@ def create_fallback(uuid, fallback_path):
'title %s GNU/Linux, with Linux fallback kernel\n' % distribution,
'linux %s\n' % kernel,
'initrd %s\n' % fb_img,
'options root=UUID=%s quiet resume=%s rw\n' % (uuid, swap),
'options root=UUID=%s quiet resume=UUID=%s rw\n' % (uuid, swap),
]
with open(fallback_path, 'w') as f: