2016-10-11 17:12:38 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
build() {
|
|
|
|
add_binary cp
|
|
|
|
|
|
|
|
add_runscript
|
|
|
|
|
2016-12-06 15:16:17 +01:00
|
|
|
add_file /etc/initcpio/miso_shutdown /shutdown
|
2016-10-11 17:12:38 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help() {
|
|
|
|
cat <<HELPEOF
|
|
|
|
This hook will create a shutdown initramfs in /run/initramfs
|
|
|
|
that we can pivot to on shutdown in order to unmount / and
|
|
|
|
and others mount points, dm-snapshot devices and loopback devices.
|
|
|
|
Mostly usefull for dm-snapshot persistent.
|
|
|
|
HELPEOF
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|