]> git.ipfire.org Git - thirdparty/dracut.git/blame - dracut-shutdown.service
mdraid/mdraid_start.sh: remove mdmon workaround
[thirdparty/dracut.git] / dracut-shutdown.service
CommitLineData
4cfd24d1
HH
1# This file is part of systemd.
2#
3# systemd is free software; you can redistribute it and/or modify it
4# under the terms of the GNU General Public License as published by
5# the Free Software Foundation; either version 2 of the License, or
6# (at your option) any later version.
7
8[Unit]
9Description=Restore /run/initramfs
10After=getty@tty1.service prefdm.service
0d572703 11Before=systemd-reboot.service shutdown.target
4cfd24d1 12DefaultDependencies=no
fb67e4aa 13ConditionPathExists=/run/initramfs/.need_shutdown
e04d02cc 14ConditionPathExists=!/run/initramfs/bin/sh
4cfd24d1
HH
15
16[Service]
fb67e4aa 17ExecStart=/usr/lib/dracut/dracut-initramfs-restore
4cfd24d1 18Type=oneshot
fb67e4aa 19RemainAfterExit=yes