[arch-projects] [mkinitcpio][PATCH 16/19] shutdown: convert to late hook
Dave Reisner
dreisner at archlinux.org
Sun May 13 13:57:19 EDT 2012
Run this later in early init where we can delete the modules from the
ramfs before copying the image over to /run/initramfs.
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
hooks/shutdown | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hooks/shutdown b/hooks/shutdown
index 7c5d9e8..5b7778c 100644
--- a/hooks/shutdown
+++ b/hooks/shutdown
@@ -1,6 +1,7 @@
#!/usr/bin/ash
-run_hook() {
+run_latehook() {
+ rm -rf /usr/lib/modules
cp -ax / /run/initramfs
}
--
1.7.10.2
More information about the arch-projects
mailing list