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?)
|
#TODO: This doesn't work either: (why the hell not?)
|
||||||
# echo "newpass" | passwd --stdin root ?
|
# echo "newpass" | passwd --stdin root ?
|
||||||
#o = run("arch-chroot /mnt echo 'root:{pin}' | chpasswd".format(**args, pin=PIN))
|
#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:
|
if 'user' in args:
|
||||||
o = run('arch-chroot /mnt useradd -m -G wheel {user}'.format(**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))
|
o = run("arch-chroot /mnt echo '{user}:{pin}' | chpasswd".format(**args, pin=PIN))
|
||||||
|
|
@ -258,9 +258,10 @@ if __name__ == '__main__':
|
||||||
for title in instructions:
|
for title in instructions:
|
||||||
print('[N] {}'.format(title))
|
print('[N] {}'.format(title))
|
||||||
for command in instructions[title]:
|
for command in instructions[title]:
|
||||||
o = run(command) # arch-chroot /mnt ...
|
o = run('arch-chroot /mnt {c}'.format(c=command))
|
||||||
#if instructions[title][command]:
|
if instructions[title][command] and not instructions[title][command] in o:
|
||||||
print(o)
|
print('[W] Post install command failed: {}'.format(o.decode('UTF-8')))
|
||||||
|
#print(o)
|
||||||
|
|
||||||
#o = run('umount -R /mnt')
|
#o = run('umount -R /mnt')
|
||||||
#if args['post'] == 'reboot':
|
#if args['post'] == 'reboot':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue