From 434603a008a6d80b1333c76255435dc6bc98b40f Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 10 Apr 2019 18:18:47 +0200 Subject: Forgot to send the options as actual options. --- archinstall.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archinstall.py b/archinstall.py index b1bfeb59..bf8827f6 100644 --- a/archinstall.py +++ b/archinstall.py @@ -542,15 +542,15 @@ if __name__ == '__main__': o = run("cd /mnt; mount -t proc /proc proc") o = run("cd /mnt; mount --make-rslave --rbind /sys sys") o = run("cd /mnt; mount --make-rslave --rbind /dev dev") - o = run('chroot /mnt /bin/bash -c "{c}"'.format(c=command)) + o = run('chroot /mnt /bin/bash -c "{c}"'.format(c=command), opts=opts) o = run("cd /mnt; umount -R dev") o = run("cd /mnt; umount -R sys") o = run("cd /mnt; umount -R proc") else: if 'boot' in opts and opts['boot']: - o = run('systemd-nspawn -D /mnt -b --machine temporary {c}'.format(c=command), opts) + o = run('systemd-nspawn -D /mnt -b --machine temporary {c}'.format(c=command), opts=opts) else: - o = run('systemd-nspawn -D /mnt --machine temporary {c}'.format(c=command), opts) + o = run('systemd-nspawn -D /mnt --machine temporary {c}'.format(c=command), opts=opts) if type(conf[title][raw_command]) == bytes and len(conf[title][raw_command]) and not conf[title][raw_command] in o: print('[W] Post install command failed: {}'.format(o.decode('UTF-8'))) #print(o) -- cgit v1.2.3-70-g09d2