summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-12 15:47:55 +0200
committerDave Reisner <dreisner@archlinux.org>2012-05-18 15:39:04 +0200
commit2f9ef2a98de81a9126e4e7112f164c561c2a7cbd (patch)
treed2dfebc19581bf9edf9f36c6824b3b0aef0b6f9a
parent20145c212ea0517a5d48ad222b29deffe8cd09eb (diff)
downloadmkinitcpio-2f9ef2a98de81a9126e4e7112f164c561c2a7cbd.tar.gz
mkinitcpio-2f9ef2a98de81a9126e4e7112f164c561c2a7cbd.tar.xz
shutdown: convert to cleanup hook
Run this later in init where we can delete the modules from the ramfs before copying the image over to /run/initramfs. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--hooks/shutdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/hooks/shutdown b/hooks/shutdown
index 7c5d9e8..ce64caf 100644
--- a/hooks/shutdown
+++ b/hooks/shutdown
@@ -1,6 +1,7 @@
#!/usr/bin/ash
-run_hook() {
+run_cleanuphook() {
+ rm -rf /usr/lib/modules
cp -ax / /run/initramfs
}