Skip to content

Commit 51275bb

Browse files
committed
Translate both root=UUID= and root=/dev to root=PARTUUID idiom.
1 parent 6c985d9 commit 51275bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/GenGrubConf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class GrubConf:
9191
this_partuuid = subprocess.check_output(["blkid", "-s", "PARTUUID", "-o", "value", this_dev]).strip("\n")
9292
if len(this_partuuid):
9393
self.data = self.data.replace("root=UUID={}".format(this_uuid), "root=PARTUUID={}".format(this_partuuid))
94+
self.data = self.data.replace("root={}".format(this_dev), "root=PARTUUID={}".format(this_partuuid))
9495

9596
def main():
9697
if len(sys.argv) != 2:

0 commit comments

Comments
 (0)