2020-07-11 18:13:20 +02:00
|
|
|
#!/usr/bin/env bash
|
2012-02-03 15:13:37 +01:00
|
|
|
|
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
|
2020-07-11 18:13:20 +02:00
|
|
|
and other mount points, dm-snapshot and loopback devices.
|
|
|
|
Mostly useful for persistent dm-snapshot.
|
2011-10-24 02:24:18 +02:00
|
|
|
HELPEOF
|
|
|
|
}
|