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

불러오는 중...
취소
저장