grubcfg: set swap_uuid variable
This commit is contained in:
parent
5b336fc3c5
commit
0c4e8863cf
@ -31,6 +31,7 @@ def modify_grub_default(partitions, root_mount_point, distributor):
|
|||||||
if os.path.exists(plymouth_bin):
|
if os.path.exists(plymouth_bin):
|
||||||
use_splash = 'splash'
|
use_splash = 'splash'
|
||||||
|
|
||||||
|
swap_uuid = ""
|
||||||
for partition in partitions:
|
for partition in partitions:
|
||||||
if partition["fs"] == "linuxswap":
|
if partition["fs"] == "linuxswap":
|
||||||
swap_uuid = partition["uuid"]
|
swap_uuid = partition["uuid"]
|
||||||
|
Loading…
Reference in New Issue
Block a user