summaryrefslogtreecommitdiffstats
path: root/systemd/mkinitcpio-generate-shutdown-ramfs.service
blob: d5876df2ac0a4a69ebfa645cbb8cd5c35ef84840 (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 -k none -c /dev/null -d /run/initramfs

[Install]
WantedBy=shutdown.target