Message info
 
To:arch-projects@archlinux.org From:Dave Reisner Subject:[arch-projects] [mkinitcpio][PATCH 16/19] shutdown: convert to late hook Date:Sun, 13 May 2012 13:57:19 -0400
 

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@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