Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-07-06 16:43:29 +0200
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-07-06 16:43:29 +0200
commitff9475ffe49d4ff8bca2b7fc1b6f8105e5277745 (patch)
treeaa8ed23ac6bd25365d64b2606946435641f81fb6 /archinstall.py
parent0dfc0d61952b1af94b895254e7a65f90229c8f25 (diff)
Changed mount function, since libc can't handle loop devices automatically without some how probing partitions?
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall.py b/archinstall.py
index ce108d8b..1175b406 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -53,5 +53,5 @@ 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))
- UUID = b''.join(sys_command(f"ls -l /dev/disk/by-uuid/ | grep {os.path.basename(partition['path'])} | awk '{{print $9}}'")).decode('UTF-8').strip()
+ UUID = b''.join(sys_command(f"ls -l /dev/disk/by-uuid/ | grep {os.path.basename(partition.path)} | awk '{{print $9}}'")).decode('UTF-8').strip()
entry.write(f'options cryptdevice=UUID={UUID}:luksdev root=/dev/mapper/luksdev rw intel_pstate=no_hwp\n') \ No newline at end of file