Forgot to wrap the commands
This commit is contained in:
parent
ee7dff7f84
commit
6b785a4b4e
|
|
@ -476,7 +476,7 @@ if __name__ == '__main__':
|
||||||
## arch-chroot mounts /run into the chroot environment, this breaks name resolves for some reason.
|
## 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
|
## 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.
|
## `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)
|
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:
|
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('[W] Post install command failed: {}'.format(o.decode('UTF-8')))
|
||||||
#print(o)
|
#print(o)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue