Harald Hoyer
e148ac5a6c
core/main.c: do_switch_root(): do not remove the old root if not in initrd
...
Only recursively remove the old root, if we have been in an
initrd/initramfs.
2012-05-21 18:50:29 +02:00
Harald Hoyer
d03bc1b814
core/main.c: add "--switchedroot" parameter
...
If systemd serializes from a switch_root, it adds "--switchedroot" to
the systemd in the real root.
If "--switchedroot" is found, then we do not skip all the stuff, which
is skipped for normal rexecs.
2012-05-21 18:50:06 +02:00
Harald Hoyer
f67cc036ba
main: corrected do_switch_root()
...
do_switch_root now mount moves "/dev", "/proc", "/sys", "/run" and
removes the old root recursively.
2012-05-21 18:45:10 +02:00
Lennart Poettering
b8f8323268
main: try a bit harder to find an init process to execute after reexec/switch-root
2012-05-21 17:26:19 +02:00
Michal Schmidt
b809bd0940
main: fix uninitialized variable
2012-05-09 11:20:35 +02:00
Michal Schmidt
e564a98237
main: fix assertion failure due to use of ELEMENTSOF on a non-array
2012-05-09 11:13:26 +02:00
Lennart Poettering
664f88a7e6
manager: introduce SwitchRoot bus call for initrd/main transition
2012-05-09 01:24:50 +02:00
Lennart Poettering
a5d87bf0ea
main: simplify+unify logic for parsing runtime booleans
2012-05-08 23:36:55 +02:00
Kay Sievers
bbc98d3256
util: split-out hwclock.[ch]
2012-05-08 01:57:17 +02:00
Lennart Poettering
8d8e945624
manager: drop MountAuto= and SwapAuto= options
...
The ability to set MountAuto=no and SwapAuto=no was useful during the
adoption phase of systemd, so that distributions could stick to their
classic mount scripts a bit longer. It is about time to get rid of it
now.
2012-04-24 13:53:34 +02:00
Lennart Poettering
a0a3844815
main: log to the journal in container mode, by default
2012-04-20 12:40:01 +02:00
Kay Sievers
e9a5ef7cdd
selinux: unify systemd and udev code
2012-04-17 16:05:28 +02:00
Lennart Poettering
9f28b98ec6
main: unset some more env vars
2012-04-13 18:52:53 +02:00
Lennart Poettering
b6e661357c
main: we want all setup functions to be in files called xxx-setup.[ch]
2012-04-12 14:29:29 +02:00
Kay Sievers
78a825f216
rename machine-id-main.c tomacht the binary and move main.c to core/
2012-04-12 13:12:06 +02:00