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
Stanislaw Adaszewski пре 4 година
родитељ
комит
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…
Откажи
Сачувај