]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/switch-root.c
switch-root: remount to MS_PRIVATE
authorLennart Poettering <lennart@poettering.net>
Sat, 11 Aug 2012 23:29:41 +0000 (01:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 11 Aug 2012 23:31:03 +0000 (01:31 +0200)
commitf47fc35555565c4b161c2e44b357b4dbaf3a997d
treea1026031cc5df2e3801772e59e0440a07639b2b4
parentdbf61afb29e016fe1b4ac48312a782df1d60a3e6
switch-root: remount to MS_PRIVATE

The kernel does not allow switching roots if things are mounted
MS_SHARED. As a work-around, remount things MS_PRIVATE before switching
roots.

This should be fixed in the kernel for good.

https://bugzilla.redhat.com/show_bug.cgi?id=847418
src/core/shutdown.c
src/core/switch-root.c