On Thu, 28.08.14 14:01, har...@redhat.com (har...@redhat.com) wrote:
>
> if (!in_container && !in_initrd() &&
> access("/run/initramfs/shutdown", X_OK) == 0) {
> -
> -if (prepare_new_root() >= 0 &&
> -pivot_to_new_root() >= 0) {
> +
From: Harald Hoyer
removes code duplication
also move switch-root to shared
---
V2:
- Removed all references to "/mnt" in switch_root() and the bogus comment.
V3:
- moved switch-root.[ch] to shared
- added switch to mount MS_MOVE or MS_BIND the old dirs
V4:
- mkdir_p_label() in switch_root()
V
From: Harald Hoyer
removes code duplication
---
Makefile.am| 1 +
src/core/main.c| 2 +-
src/core/shutdown.c| 77 +-
src/core/switch-root.c | 6 ++--
src/core/switch-root.h | 2 +-
5 files changed, 13 insertions(+), 75 d