mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Have imgutil exec manifest / mount
When execing, make the environment see the '/' normally in mount/df contexts.
This commit is contained in:
parent
2b6418bc33
commit
524f0d460f
@ -705,6 +705,7 @@ def exec_root_backend(args):
|
||||
_mount('none', dstresolv, flags=MS_RDONLY|MS_REMOUNT|MS_BIND)
|
||||
os.chroot(installroot)
|
||||
os.chdir('/')
|
||||
_mount('/', '/', flags=MS_BIND) # Make / manifest as a mounted filesystem in exec
|
||||
os.environ['PS1'] = '[\x1b[1m\x1b[4mIMGUTIL EXEC {0}\x1b[0m \W]$ '.format(imgname)
|
||||
os.environ['CONFLUENT_IMGUTIL_MODE'] = 'exec'
|
||||
if args.cmd:
|
||||
|
Loading…
Reference in New Issue
Block a user