diff options
author | Thomas Bächler <thomas@archlinux.org> | 2013-11-19 23:10:28 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-11-24 02:57:13 +0100 |
commit | 2fa0eb25d47c920c18e7d2498c647a801d836596 (patch) | |
tree | 13b6adfc9d791e25fb9d6b1b5cae1dc7150de011 /install/sd-shutdown | |
parent | 88129397a4f4c714195d2a100b851ecf7d0b0e85 (diff) | |
download | mkinitcpio-2fa0eb25d47c920c18e7d2498c647a801d836596.tar.gz mkinitcpio-2fa0eb25d47c920c18e7d2498c647a801d836596.tar.xz |
Add mkinitcpio-generate-shutdown-ramfs.service
When enabled, this service generates an "initramfs" that systemd
pivots to on shutdown to ensure clean umounting and shutdown of
loop and dm devices.
The actual work is done by systemd-shutdown.
Diffstat (limited to 'install/sd-shutdown')
-rw-r--r-- | install/sd-shutdown | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/install/sd-shutdown b/install/sd-shutdown new file mode 100644 index 0000000..7e86dad --- /dev/null +++ b/install/sd-shutdown @@ -0,0 +1,14 @@ +#!/bin/bash + +build() { + add_binary /usr/lib/systemd/systemd-shutdown /shutdown +} + +help() { + cat <<HELPEOF +This hook adds systemd-shutdown to the initramfs. This is only +if the image is extracted to /run/initramfs before shutdown. +HELPEOF +} + +# vim: set ft=sh ts=4 sw=4 et: |