1 # This file is part of systemd.
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.
9 Description=Restore /run/initramfs on shutdown
10 Documentation=man:dracut-shutdown.service(8)
13 Before=systemd-reboot.service shutdown.target
14 DefaultDependencies=no
15 ConditionPathExists=/run/initramfs/.need_shutdown
16 ConditionPathExists=!/run/initramfs/bin/sh
20 ExecStop=/usr/lib/dracut/dracut-initramfs-restore