Using PARTUUID instead of disk UUID

This commit is contained in:
Anton Hvornum 2020-07-08 14:51:16 +00:00
parent 61f2e3c04b
commit fdff7cf04c
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class Installer():
## so we'll use the old manual method until we get that sorted out.
# UUID = simple_command(f"blkid -s PARTUUID -o value /dev/{os.path.basename(args['drive'])}{args['partitions']['2']}").decode('UTF-8').strip()
# entry.write('options root=PARTUUID={UUID} rw intel_pstate=no_hwp\n'.format(UUID=UUID))
for root, folders, uids in os.walk('/dev/disk/by-uuid'):
for root, folders, uids in os.walk('/dev/disk/by-partuuid'):
for uid in uids:
real_path = os.path.realpath(os.path.join(root, uid))
if not os.path.basename(real_path) == os.path.basename(self.partition.path): continue