2012-02-03 15:13:37 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-10-24 02:24:18 +02:00
|
|
|
build() {
|
2012-07-17 06:44:43 +02:00
|
|
|
add_binary cp
|
|
|
|
|
2012-05-16 20:52:55 +02:00
|
|
|
add_runscript
|
2012-02-03 15:13:37 +01:00
|
|
|
|
2012-03-05 00:58:58 +01:00
|
|
|
add_file /usr/lib/initcpio/archiso_shutdown /shutdown
|
2011-10-24 02:24:18 +02:00
|
|
|
}
|
|
|
|
|
2012-02-03 15:13:37 +01:00
|
|
|
help() {
|
2011-10-24 02:24:18 +02:00
|
|
|
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
|
|
|
|
}
|
2012-02-03 15:13:37 +01:00
|
|
|
|
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|