Description=Ubuntu core (all-snaps) system shutdown helper setup service
DefaultDependencies=false
ConditionKernelCommandLine=|snap_core
ConditionKernelCommandLine=|snapd_recovery_mode
ConditionPathExists=!/usr/bin/finalrd
# don't run if system-shutdown isn't there
ConditionPathExists=/usr/lib/snapd/system-shutdown
# X-Snapd-Snap: do-not-start
ExecStart=/bin/mount /run -o remount,exec
ExecStart=/bin/mkdir -p /run/initramfs
ExecStart=/bin/cp /usr/lib/snapd/system-shutdown /run/initramfs/shutdown