summaryrefslogtreecommitdiff
path: root/src/core/shutdown.c
AgeCommit message (Collapse)Author
2012-09-05shutdown: in containers, invoke reboot(2), too. Then fallback to exit() if ↵Lennart Poettering
CAP_SYS_BOOT is missing The kernel's PID namespaces support reboot(2) just fine, so let's make use of it if possible.
2012-09-05shutdown: remove explicit sync() invocationsLennart Poettering
The kernel implicitly does sync() anyway, hence there is no need to do that in userspace explicitly. This makes the "-n" switch to halt(8) a noop.
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-08-10shutdown: recursively mark root as private before pivotDave Reisner
Because root is now recursively marked as shared on bootup, we need to recursively mark root as private. This prevents a pivot_root failure on shutdown: Cannot finalize remaining file systems and devices, giving up. pivot failed: Invalid argument
2012-07-17switch-root: don't wait for processesLennart Poettering
When we transition from the initrd to the main system, don't reap processes, so that they can be handled normally after deserialization.
2012-07-16Spelling fixes.Ville Skyttä
2012-07-13shutdown: add missing includeLennart Poettering
2012-07-13container: when shutting down in a container don't detach loop devicesLennart Poettering
We don't do device handling in containers, hence no loop devices either.
2012-07-13core: go on a killing spree when transitioning from initrd to main systemLennart Poettering
2012-07-10switch-root: reopen /dev/console before we switch rootLennart Poettering
2012-05-31mkdir: append _label to all mkdir() calls that explicitly set the selinux ↵Kay Sievers
context
2012-05-08sleep: implement suspend/hibernate as first class targetsLennart Poettering
2012-04-24shutdown: don't complain if we cannot lock memory, to make container ↵Lennart Poettering
shutdowns clean
2012-04-22shutdown: don't try to shut down DM devices in a containerLennart Poettering
2012-04-12shutdown: move shutdown to core since it replaces PID 1Lennart Poettering