From 2f9ef2a98de81a9126e4e7112f164c561c2a7cbd Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 12 May 2012 09:47:55 -0400 Subject: 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 --- hooks/shutdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3-24-g4f1b