Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorLord Anton Hvornum <anton.feeds@gmail.com>2018-04-07 10:48:23 +0200
committerLord Anton Hvornum <anton.feeds@gmail.com>2018-04-07 10:48:33 +0200
commit20ba0b145cdccf5bf98879ca9e1a6811ef078519 (patch)
tree87f01f2b64b2f2cd09f74f34c1892276f75578b9 /archinstall.py
parentda12297c848c0bedb4f7d14561d36b6019bba0a4 (diff)
Forgot to execute post-install inside arch-chroot
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/archinstall.py b/archinstall.py
index f078445f..5970b385 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -214,7 +214,7 @@ if __name__ == '__main__':
#TODO: This doesn't work either: (why the hell not?)
# echo "newpass" | passwd --stdin root ?
#o = run("arch-chroot /mnt echo 'root:{pin}' | chpasswd".format(**args, pin=PIN))
- o = run('arch-chroot /mnt echo "{pin}" | passwd --stdin root'.format(**args, pin=PIN))
+ o = run('arch-chroot /mnt \'echo "{pin}" | passwd --stdin root\''.format(**args, pin=PIN))
if 'user' in args:
o = run('arch-chroot /mnt useradd -m -G wheel {user}'.format(**args))
o = run("arch-chroot /mnt echo '{user}:{pin}' | chpasswd".format(**args, pin=PIN))
@@ -258,9 +258,10 @@ if __name__ == '__main__':
for title in instructions:
print('[N] {}'.format(title))
for command in instructions[title]:
- o = run(command) # arch-chroot /mnt ...
- #if instructions[title][command]:
- print(o)
+ o = run('arch-chroot /mnt {c}'.format(c=command))
+ if instructions[title][command] and not instructions[title][command] in o:
+ print('[W] Post install command failed: {}'.format(o.decode('UTF-8')))
+ #print(o)
#o = run('umount -R /mnt')
#if args['post'] == 'reboot':