summaryrefslogtreecommitdiff
path: root/archiso/install/archiso_shutdown
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-13 22:35:30 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-13 22:35:30 -0300
commit4b38c919cbb133c35a06b330e8de9f305c5b4792 (patch)
tree0f995b2f9a80bbe1975bd33e89cb67609c46d144 /archiso/install/archiso_shutdown
parentaaddf796dcaa9c62859c386d81abc4bfb9e02eec (diff)
parent83cebf9e43fb3734c003ae358c4d308728dca7e4 (diff)
Merge branch 'master' of gparabola:archiso
Conflicts: README archiso/Makefile archiso/hooks/archiso archiso/hooks/archiso_loop_mnt archiso/hooks/archiso_pxe_nbd archiso/install/archiso archiso/install/archiso_loop_mnt archiso/install/archiso_pxe_nbd archiso/mkarchiso archiso/testiso configs/baseline/build.sh configs/releng/build.sh configs/releng/packages.i686 configs/releng/packages.x86_64 configs/releng/root-image/etc/hosts configs/releng/root-image/etc/issue configs/releng/root-image/etc/rc.conf configs/releng/syslinux.dual/archiso_pxe32.cfg configs/releng/syslinux.dual/archiso_pxe64.cfg configs/releng/syslinux/archiso_head.cfg configs/releng/syslinux/archiso_pxe.cfg configs/releng/syslinux/archiso_sys.cfg
Diffstat (limited to 'archiso/install/archiso_shutdown')
-rw-r--r--archiso/install/archiso_shutdown18
1 files changed, 18 insertions, 0 deletions
diff --git a/archiso/install/archiso_shutdown b/archiso/install/archiso_shutdown
new file mode 100644
index 0000000..87b8297
--- /dev/null
+++ b/archiso/install/archiso_shutdown
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+build() {
+ SCRIPT="archiso_shutdown"
+
+ add_file /usr/lib/initcpio/archiso_shutdown /shutdown
+}
+
+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: