From 03deaed9f3f5b0c0537eb65e8f1862f53bc21fec Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Tue, 15 Nov 2011 09:25:20 -0500 Subject: shutdown: add new hook This adds functionality to pivot to back to the initramfs on shutdown, thereby allowing the system to unmount the real root device. This will be necessary for anyone with /usr as a separate partition. --- hooks/shutdown | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hooks/shutdown (limited to 'hooks') diff --git a/hooks/shutdown b/hooks/shutdown new file mode 100644 index 0000000..7c5d9e8 --- /dev/null +++ b/hooks/shutdown @@ -0,0 +1,7 @@ +#!/usr/bin/ash + +run_hook() { + cp -ax / /run/initramfs +} + +# vim: set ft=sh ts=4 sw=4 et: -- cgit v1.2.3-24-g4f1b