diff options
author | Harald Hoyer <harald@redhat.com> | 2012-02-10 11:14:42 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-02-13 07:08:08 +0100 |
commit | fb67e4aa36948b3ed1208bf963da5569d1b13409 (patch) | |
tree | 2f848d3801846e5183cb003427fade92c58e7921 /dracut-shutdown.service | |
parent | 4cfd24d1799fafacf6624c9638454de93dd6f331 (diff) | |
download | dracut-fb67e4aa36948b3ed1208bf963da5569d1b13409.tar.gz dracut-fb67e4aa36948b3ed1208bf963da5569d1b13409.tar.bz2 dracut-fb67e4aa36948b3ed1208bf963da5569d1b13409.zip |
shutdown on demand
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
Diffstat (limited to 'dracut-shutdown.service')
-rw-r--r-- | dracut-shutdown.service | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dracut-shutdown.service b/dracut-shutdown.service new file mode 100644 index 00000000..4f06e350 --- /dev/null +++ b/dracut-shutdown.service @@ -0,0 +1,18 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=Restore /run/initramfs +After=getty@tty1.service prefdm.service +Before=reboot.service +DefaultDependencies=no +ConditionPathExists=/run/initramfs/.need_shutdown + +[Service] +ExecStart=/usr/lib/dracut/dracut-initramfs-restore +Type=oneshot +RemainAfterExit=yes |