dracut-systemd/*.service: conflict with shutdown target
make reboot/poweroff/halt work also conflict with emergency.targetmaster
parent
8261d2367e
commit
c000a21c25
|
|
@ -16,6 +16,8 @@ Wants=systemd-journald.socket
|
|||
ConditionPathExists=/usr/lib/initrd-release
|
||||
ConditionKernelCommandLine=|rd.cmdline=ask
|
||||
ConditionPathExistsGlob=|/etc/cmdline.d/*.conf
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ ConditionDirectoryNotEmpty=|/lib/dracut/hooks/cmdline
|
|||
ConditionKernelCommandLine=|rd.break=cmdline
|
||||
ConditionKernelCommandLine=|resume
|
||||
ConditionKernelCommandLine=|noresume
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -12,14 +12,15 @@ Description=Dracut Emergency Shell
|
|||
DefaultDependencies=no
|
||||
After=systemd-vconsole-setup.service
|
||||
Wants=systemd-vconsole-setup.service
|
||||
Conflicts=emergency.service emergency.target
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
Environment=NEWROOT=/sysroot
|
||||
WorkingDirectory=/
|
||||
ExecStart=/bin/dracut-emergency
|
||||
ExecStart=-/bin/dracut-emergency
|
||||
ExecStopPost=-/bin/rm -f -- /.console_lock
|
||||
Type=oneshot
|
||||
StandardInput=tty-force
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ Wants=systemd-udev-trigger.service
|
|||
ConditionPathExists=/usr/lib/initrd-release
|
||||
ConditionPathExists=|/lib/dracut/need-initqueue
|
||||
ConditionKernelCommandLine=|rd.break=initqueue
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -15,6 +15,8 @@ After=dracut-initqueue.service dracut-pre-mount.service
|
|||
ConditionPathExists=/usr/lib/initrd-release
|
||||
ConditionDirectoryNotEmpty=|/lib/dracut/hooks/mount
|
||||
ConditionKernelCommandLine=|rd.break=mount
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ After=cryptsetup.target
|
|||
ConditionPathExists=/usr/lib/initrd-release
|
||||
ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-mount
|
||||
ConditionKernelCommandLine=|rd.break=pre-mount
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
[Unit]
|
||||
Description=dracut pre-pivot and cleanup hook
|
||||
Documentation=man:dracut-pre-pivot.service(8)
|
||||
DefaultDependencies=no
|
||||
After=initrd.target initrd-parse-etc.service sysroot.mount
|
||||
After=dracut-initqueue.service dracut-pre-mount.service dracut-mount.service
|
||||
Before=initrd-cleanup.service
|
||||
|
|
@ -23,6 +24,8 @@ ConditionKernelCommandLine=|rd.break=cleanup
|
|||
ConditionKernelCommandLine=|rd.break
|
||||
ConditionPathExists=|/dev/root
|
||||
ConditionPathExists=|/dev/nfs
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ Wants=dracut-pre-udev.service systemd-udevd.service
|
|||
ConditionPathExists=/usr/lib/initrd-release
|
||||
ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-trigger
|
||||
ConditionKernelCommandLine=|rd.break=pre-trigger
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ ConditionKernelCommandLine=|rd.break=pre-udev
|
|||
ConditionKernelCommandLine=|rd.driver.blacklist
|
||||
ConditionKernelCommandLine=|rd.driver.pre
|
||||
ConditionKernelCommandLine=|rd.driver.post
|
||||
Conflicts=shutdown.target emergency.target
|
||||
Before=shutdown.target emergency.target
|
||||
|
||||
[Service]
|
||||
Environment=DRACUT_SYSTEMD=1
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ Description=Emergency Shell
|
|||
DefaultDependencies=no
|
||||
After=systemd-vconsole-setup.service
|
||||
Wants=systemd-vconsole-setup.service
|
||||
Conflicts=shutdown.target
|
||||
Before=shutdown.target
|
||||
|
||||
[Service]
|
||||
Environment=HOME=/
|
||||
|
|
|
|||
Loading…
Reference in New Issue