index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Lord Anton Hvornum <anton.feeds@gmail.com> | 2018-04-07 00:10:39 +0200 |
---|---|---|
committer | Lord Anton Hvornum <anton.feeds@gmail.com> | 2018-04-07 00:10:39 +0200 |
commit | e25dea516f706ccc7e783621bc76fc9612866d56 (patch) | |
tree | 6bb0fee45879f68a8868372f5670b0b5edaf2d8c /archinstall.py | |
parent | bdf8fd2bd33a05dd6a50693f492508429d57f06f (diff) |
-rw-r--r-- | archinstall.py | 5 |
diff --git a/archinstall.py b/archinstall.py index a4abb3b0..58e423e2 100644 --- a/archinstall.py +++ b/archinstall.py @@ -189,7 +189,10 @@ if __name__ == '__main__': loader.write('default arch\n') loader.write('timeout 5\n') - UUID = run('blkid -s PARTUUID -o value {drive}{part2}'.format(**args, part2=second)).decode('UTF-8').strip() + ## For some reason, blkid and /dev/disk/by-uuid are not getting along well. + ## And blkid is wrong in terms of LUKS. + #UUID = run('blkid -s PARTUUID -o value {drive}{part2}'.format(**args, part2=second)).decode('UTF-8').strip() + UUID = run("ls -l /dev/disk/by-uuid/ | grep {basename}{part2} | awk '{print $9}'".format(basename=os.path.basename(args['drive']), part2=second)).decode('UTF-8').strip() with open('/mnt/boot/loader/entries/arch.conf', 'w') as entry: entry.write('title Arch Linux\n') entry.write('linux /vmlinuz-linux\n') |