index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-10 10:46:14 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-10 10:46:14 +0200 |
commit | fe9dfc4ffd7310d056d27e87ac4c45790b913885 (patch) | |
tree | c2f8f85ed9cae98ce1fb6f549aa1201d95e26672 /archinstall.py | |
parent | 6b785a4b4e56b5f2fd36f1fbfcb4f9724f3c487e (diff) |
-rw-r--r-- | archinstall.py | 5 |
diff --git a/archinstall.py b/archinstall.py index 479e7c8f..941838cf 100644 --- a/archinstall.py +++ b/archinstall.py @@ -476,7 +476,10 @@ if __name__ == '__main__': ## arch-chroot mounts /run into the chroot environment, this breaks name resolves for some reason. ## Either skipping mounting /run and using traditional chroot is an option, but using ## `systemd-nspawn -D /mnt --machine temporary` might be a more flexible solution in case of file structure changes. - o = run('systemd-nspawn -D /mnt --machine temporary "{c}"'.format(c=command), opts) + if 'no-chroot' in opts and opts['no-chroot']: + o = run(command, opts) + else: + o = run('systemd-nspawn -D /mnt --machine temporary "{c}"'.format(c=command), 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) |