Date: Sat, 29 Jul 2017 08:34:39 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-fs@FreeBSD.org Subject: [Bug 221064] zfs should not be able to shadow mount on root directory from userspace Message-ID: <bug-221064-3630-5bVQQwI8Ht@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-221064-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-221064-3630@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=221064 --- Comment #6 from David NewHamlet <wheelcomplex@gmail.com> --- (In reply to Poul-Henning Kamp from comment #5) kenv vfs.root.mountfrom="second rootfs(zfs:newtank/rootfs)" and reboot -r will trigger kernel to stop all running proccess(include first init) and umount first rootfs. After that, kernel will try to mount second filesystem as rootfs and execute init from second rootfs. This might be a better way to handle your case. This is a useful feature similar to switch_root in Linux world which is very common in embedded linux. It was introduced by trasz on Sep 18 2015, 5:35 PM. https://reviews.freebsd.org/D3693 -- 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-221064-3630-5bVQQwI8Ht>
