]> git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/98systemd/dracut-shutdown.service
dracut-shutdown now executes the unpacking on ExecStop
[thirdparty/dracut.git] / modules.d / 98systemd / dracut-shutdown.service
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]
9 Description=Restore /run/initramfs on shutdown
10 Documentation=man:dracut-shutdown.service(8)
11 After=local-fs.target
12 Wants=local-fs.target
13 Before=systemd-reboot.service shutdown.target
14 DefaultDependencies=no
15 ConditionPathExists=/run/initramfs/.need_shutdown
16 ConditionPathExists=!/run/initramfs/bin/sh
17
18 [Service]
19 ExecStart=/bin/true
20 ExecStop=/usr/lib/dracut/dracut-initramfs-restore