summaryrefslogtreecommitdiff
path: root/src/core/switch-root.c
AgeCommit message (Collapse)Author
2012-08-13namespace: rework namespace supportLennart Poettering
- don't use pivot_root() anymore, just reuse root hierarchy - first create all mounts, then mark them read-only so that we get the right behaviour when people want writable mounts inside of read-only mounts - don't pass invalid combinations of MS_ constants to the kernel
2012-08-12switch-root: remount to MS_PRIVATELennart Poettering
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
2012-05-22switch-root: do not use close old_root_fd after rm_rf_children()Harald Hoyer
rm_rf_children() has already closed the fd with closedir().
2012-05-21switch-root: move switch_root() call into its own .c fileLennart Poettering