IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
瀏覽代碼

Making sure to finalize in the right place

tags/0.92
父節點
當前提交
a428fc9a9c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      jail.py

+ 2
- 2
jail.py 查看文件

@@ -12,7 +12,7 @@ def jail_run(path, command):
finally:
subprocess.run(['umount', os.path.join(path, 'dev')])
if res.returncode != 0:
subprocess.run(['umount', os.path.join(path, 'dev')])
# subprocess.run(['umount', os.path.join(path, 'dev')])
raise RuntimeError('Command failed')
@@ -30,6 +30,6 @@ def command_jail_run(args):
jail_run(zfs_mountpoint(name), args.command)
# subprocess.check_output(['jail', '-c', 'interface=lo1', 'ip4.addr=127.0.1.0', 'path=' + zfs_mountpoint(name), 'command', command])
finally:
subprocess.run(['umount', zfs_mountpoint(name) + '/dev'])
# subprocess.run(['umount', zfs_mountpoint(name) + '/dev'])
zfs_run(['zfs', 'destroy', '-f', name])
# raise

Loading…
取消
儲存