summaryrefslogtreecommitdiffstats
path: root/mkinitcpio-generate-shutdown-ramfs.service
blob: 36c2508fb3c6cd6c4b9c6d8a2fcfe3ef1685bd51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=Generate shutdown-ramfs
DefaultDependencies=no
Before=shutdown.target
ConditionFileIsExecutable=!/run/initramfs/shutdown

[Service]
Type=oneshot
# /tmp could be umounted at this point
# use /run as temporary directory
Environment=TMPDIR=/run
ExecStart=/usr/bin/mkinitcpio -A sd-shutdown -c /dev/null -d /run/initramfs

[Install]
WantedBy=shutdown.target