Forgot to execute post-install inside arch-chroot
This commit is contained in:
parent
da12297c84
commit
20ba0b145c
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Reference in New Issue