Harald Hoyer
3605b48508
shutdown: fixed killall_proc_mountpoint()
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
12 years ago
Harald Hoyer
ab42fe38fd
fixup 3be5d63c2f
...
either test or []
12 years ago
Harald Hoyer
3be5d63c2f
shutdown: redirect output to /dev/console only if it exists
12 years ago
Harald Hoyer
fc4e10a859
shutdown/shutdown.sh: mount --move all basic mounts out of /oldroot
...
After mount moving /dev away, apps like plymouth can do reexec with fd
passing of devices, which they want to keep open until the very end.
12 years ago
Harald Hoyer
d8b627b9dc
shutdown: call "losetup -D" on shutdown
12 years ago
Harald Hoyer
551c2dd71f
shutdown: kill all processes and report remaining ones
12 years ago
Harald Hoyer
ebd1d65a1b
shutdown: source pre-shutdown hook and force quit plymouth before umount
12 years ago
Harald Hoyer
178c189b0b
shutdown/shutdown.sh: failsafe shutdown for kexec
...
copy kexec from the real root, if it is not found in the unpacked
initramfs for shutdown.
Also drop to an emergency shell, if we can't do the ACTION
13 years ago
Harald Hoyer
d65638dacb
shutdown/shutdown.sh: reboot, if no argument was given
13 years ago
Amadeusz Żołnowski
afcebd136f
99shutdown: remove --no-wall argument for reboot, halt, etc...
...
In some distros (Gentoo, for example) these commands don't honor
--no-wall argument.
13 years ago
Harald Hoyer
53fe81e752
modules.d/*/module-setup.sh: combine and specify type for installs
...
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
13 years ago
Harald Hoyer
b4664769dc
99shutdown/shutdown.sh: export PATH
13 years ago
Will Woods
bd3bf2ce41
shutdown: use emergency_shell from dracut-lib
13 years ago
Will Woods
317191848a
shutdown: fix PATH
...
Some systems might not use /bin:/sbin in their paths anymore, but we're
still using it in initramfs, so make sure our PATH is correct.
13 years ago
Harald Hoyer
c3d81de59b
remove openvt and use "setsid -c", if possible
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
13 years ago
Harald Hoyer
81dcf7c90a
99shutdown/shutdown: don't do console_init on shutdown emergency
13 years ago
Harald Hoyer
59feafc6c7
use "openvt" for emergency shell
13 years ago
Harald Hoyer
de247618e7
init/shutdown: use "command -v" instead of "type"
13 years ago
Michal Soltys
4401925c82
Add job control support to emergency shell
...
Option --ctty will optionally add setsid binary to dracut's image.
During runtime, if rd.ctty is set and is a character device,
emergency shells will be spawned with job control.
in case no ctty was provided, shell was spawned without caring about
/dev/console. Also, the ctty is more opportunistic. If the image was
generated with --ctty, we will fallback to /dev/tty1 if rc.ctty is
invalid or missing. Otherwise we spawn standard shell on /dev/console
[dyoung@redhat.com: Rebased to usrmove branch]
Signed-off-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: Dave Young <dyoung@redhat.com>
13 years ago
Harald Hoyer
f47e023498
shutdown: fixed check_shutdown loop
14 years ago
Harald Hoyer
2560da6be2
enable shutdown module by default
14 years ago
Harald Hoyer
168fa7e571
base: add shutdown script to be called from systemd
14 years ago