Use UUID in resume
This commit is contained in:
parent
5a86674ee7
commit
7638f80373
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user