Date: Tue, 17 Jan 2023 10:02:31 +0000 From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 222951] Re-starting a jail with mount.devfs mounts devfs multiple times Message-ID: <bug-222951-29815-AqVVFCk7cc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-222951-29815@https.bugs.freebsd.org/bugzilla/> References: <bug-222951-29815@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222951 --- Comment #2 from Zhenlei Huang <zlei@FreeBSD.org> --- (In reply to VK from comment #0) > The problem seems to be when the (nopersist) jail is stopped by itself be= cause all > the processes in it have exited, so it wasn't explicitly `jail -r`. When = that=20 > happens, devfs is not unmounted. For non-persist jails I think this is the expected behavior. `mount.devfs` is a pseudo-parameter and as per jail(8): > There are pseudo-parameters that are not passed to the kernel, but are > used by jail to set up the jail environment, often by running specifi= ed > commands when jails are created or removed. > So next time the jail is started, devfs is mounted again, resulting with = multiple=20 > mounts of devfs into $JAIL_ROOT/dev: Maybe we can teach /usr/sbin/jail to check existing mount of devfs(5) before starting jails. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222951-29815-AqVVFCk7cc>