[Bug 217545] jail: exec.poststop not executed, mount.fstab does not umount after removing jail

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Mar 4 21:02:52 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217545

            Bug ID: 217545
           Summary: jail: exec.poststop not executed, mount.fstab does not
                    umount after removing jail
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: la5lbtyi at aon.at

I am configuring a jail where I want to mount a few filesystems before starting
it, and unmount them after removing it. The jail config file contains

    command = "/bin/sh";

In order to mount/unmount the filesystems, I tried using either

    mount.fstab = "/path/to/jailfstab";

or

    exec.prestart = "/path/to/mount_shell_script";
    exec.poststop = "/path/to/unmount_shell_script";

In either case, the filesystems are mounted before strarting the jail, but when
I leave the shell using ^D the filesystems are never unmounted.

While the man page does not promise that umounts will be done when using
mount.fstab, exec.poststop should definitely be executed but is not.

-- Martin

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list