1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00
systemd/units
Dr. Tilmann Bubeck 80cfe9e163 Do no isolate in case of emergency or severe problems
This patch changes local-fs.target and systemd-fsck to not use
"isolate" when going into emergency.
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=810722

The motivation is, that when something wents wrong, we should
keep everything as it is, to let the user fix the problem. When
isolating we stop a lot of services and therefore change the
system heavily so that it gets harder for the user to fix.

An example is a crypted partition. When the fsck in a crypted
partition fails, it previously used "emergency/start/isolate"
which stops cryptsetup. Therefore if the user tries to fsck
e.g. /dev/mapper/luks-356c20ae-c7a2-4f1c-ae1d-1d290a91b691
as printed by the failing fsck, then it will not find this
device (because it got closed).

So please apply this patch to let the user see the failing
situation.

Thanks!

[zj: removed dead isolate param from start_target().]

https://bugs.freedesktop.org/show_bug.cgi?id=49463
https://bugzilla.redhat.com/show_bug.cgi?id=810722
2013-04-01 23:43:48 -04:00
..
user
.gitignore
basic.target
bluetooth.target
console-getty.service.m4.in
console-shell.service.m4.in
cryptsetup.target
debug-shell.service.in
dev-hugepages.mount
dev-mqueue.mount
emergency.service.in
emergency.target
final.target
getty.target
getty@.service.m4
graphical.target
halt-local.service.in
halt.target
hibernate.target
hybrid-sleep.target
initrd-cleanup.service.in
initrd-fs.target
initrd-parse-etc.service.in
initrd-root-fs.target
initrd-switch-root.service.in
initrd-switch-root.target
initrd-udevadm-cleanup-db.service.in
initrd.target
kexec.target
local-fs-pre.target
local-fs.target Do no isolate in case of emergency or severe problems 2013-04-01 23:43:48 -04:00
Makefile
multi-user.target
network-online.target
network.target
nss-lookup.target
nss-user-lookup.target
paths.target
poweroff.target
printer.target
proc-sys-fs-binfmt_misc.automount
proc-sys-fs-binfmt_misc.mount
quotaon.service.in
rc-local.service.in
reboot.target
remote-fs-pre.target
remote-fs.target
rescue.service.m4.in
rescue.target
rpcbind.target
serial-getty@.service.m4
shutdown.target
sigpwr.target
sleep.target
smartcard.target
sockets.target
sound.target
suspend.target
swap.target
sys-fs-fuse-connections.mount
sys-kernel-config.mount
sys-kernel-debug.mount
sysinit.target
syslog.socket
system-update.target
systemd-ask-password-console.path
systemd-ask-password-console.service.in
systemd-ask-password-wall.path
systemd-ask-password-wall.service.in
systemd-binfmt.service.in
systemd-fsck-root.service.in
systemd-fsck@.service.in
systemd-halt.service.in
systemd-hibernate.service.in
systemd-hostnamed.service.in
systemd-hybrid-sleep.service.in
systemd-initctl.service.in
systemd-initctl.socket
systemd-journal-flush.service.in
systemd-journal-gatewayd.service.in
systemd-journal-gatewayd.socket
systemd-journald.service.in
systemd-journald.socket
systemd-kexec.service.in
systemd-localed.service.in
systemd-logind.service.in
systemd-modules-load.service.in
systemd-poweroff.service.in
systemd-quotacheck.service.in
systemd-random-seed-load.service.in
systemd-random-seed-save.service.in
systemd-readahead-collect.service.in
systemd-readahead-done.service.in
systemd-readahead-done.timer
systemd-readahead-drop.service
systemd-readahead-replay.service.in
systemd-reboot.service.in
systemd-remount-fs.service.in
systemd-shutdownd.service.in
systemd-shutdownd.socket
systemd-suspend.service.in
systemd-sysctl.service.in
systemd-timedated.service.in
systemd-tmpfiles-clean.service.in
systemd-tmpfiles-clean.timer
systemd-tmpfiles-setup.service.in
systemd-udev-settle.service.in
systemd-udev-trigger.service.in
systemd-udevd-control.socket
systemd-udevd-kernel.socket
systemd-udevd.service.in
systemd-update-utmp-runlevel.service.in
systemd-update-utmp-shutdown.service.in
systemd-user-sessions.service.in
systemd-vconsole-setup.service.in
time-sync.target
timers.target
tmp.mount
umount.target
user@.service.in