dracut-systemd/dracut-initqueue: only start service if really needed
[dracut.git] / modules.d / 98dracut-systemd / dracut-shutdown.service
blob21c9d298f5678df2abb426c8282bc9a326ea1980
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.
8 [Unit]
9 Description=Restore /run/initramfs on shutdown
10 Documentation=man:dracut-shutdown.service(8)
11 After=local-fs.target boot.mount boot.automount
12 Wants=local-fs.target
13 Conflicts=shutdown.target umount.target
14 DefaultDependencies=no
15 ConditionPathExists=!/run/initramfs/bin/sh
17 [Service]
18 RemainAfterExit=yes
19 Type=oneshot
20 ExecStart=/bin/true
21 ExecStop=/usr/lib/dracut/dracut-initramfs-restore