|
Harald Hoyer |
83ebbb |
From 39339512e2ea0724de9474a8bdac81e5abaf8c97 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
83ebbb |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
83ebbb |
Date: Mon, 23 Jan 2012 10:41:41 +0100
|
|
Harald Hoyer |
83ebbb |
Subject: [PATCH] plymouth/kernel: cleanup not needed parts for shutdown
|
|
Harald Hoyer |
83ebbb |
|
|
Harald Hoyer |
83ebbb |
remove plymouth and kernel parts from /run/initramfs, which are not
|
|
Harald Hoyer |
83ebbb |
needed at shutdown.
|
|
Harald Hoyer |
83ebbb |
|
|
Harald Hoyer |
83ebbb |
https://bugzilla.redhat.com/show_bug.cgi?id=751189
|
|
Harald Hoyer |
83ebbb |
---
|
|
Harald Hoyer |
83ebbb |
modules.d/50plymouth/module-setup.sh | 1 +
|
|
Harald Hoyer |
83ebbb |
modules.d/50plymouth/plymouth-cleanup.sh | 5 +++++
|
|
Harald Hoyer |
83ebbb |
modules.d/90kernel-modules/kernel-cleanup.sh | 5 +++++
|
|
Harald Hoyer |
83ebbb |
modules.d/90kernel-modules/module-setup.sh | 1 +
|
|
Harald Hoyer |
83ebbb |
4 files changed, 12 insertions(+), 0 deletions(-)
|
|
Harald Hoyer |
83ebbb |
create mode 100755 modules.d/50plymouth/plymouth-cleanup.sh
|
|
Harald Hoyer |
83ebbb |
create mode 100755 modules.d/90kernel-modules/kernel-cleanup.sh
|
|
Harald Hoyer |
83ebbb |
|
|
Harald Hoyer |
83ebbb |
diff --git a/modules.d/50plymouth/module-setup.sh b/modules.d/50plymouth/module-setup.sh
|
|
Harald Hoyer |
83ebbb |
index b78c718..5c9eaee 100755
|
|
Harald Hoyer |
83ebbb |
--- a/modules.d/50plymouth/module-setup.sh
|
|
Harald Hoyer |
83ebbb |
+++ b/modules.d/50plymouth/module-setup.sh
|
|
Harald Hoyer |
83ebbb |
@@ -46,6 +46,7 @@ install() {
|
|
Harald Hoyer |
83ebbb |
|
|
Harald Hoyer |
83ebbb |
inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
|
|
Harald Hoyer |
83ebbb |
inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
|
|
Harald Hoyer |
83ebbb |
+ inst_hook pre-pivot 10 "$moddir"/plymouth-cleanup.sh
|
|
Harald Hoyer |
83ebbb |
inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
|
|
Harald Hoyer |
83ebbb |
inst readlink
|
|
Harald Hoyer |
83ebbb |
}
|
|
Harald Hoyer |
83ebbb |
diff --git a/modules.d/50plymouth/plymouth-cleanup.sh b/modules.d/50plymouth/plymouth-cleanup.sh
|
|
Harald Hoyer |
83ebbb |
new file mode 100755
|
|
Harald Hoyer |
83ebbb |
index 0000000..d6d11e6
|
|
Harald Hoyer |
83ebbb |
--- /dev/null
|
|
Harald Hoyer |
83ebbb |
+++ b/modules.d/50plymouth/plymouth-cleanup.sh
|
|
Harald Hoyer |
83ebbb |
@@ -0,0 +1,5 @@
|
|
Harald Hoyer |
83ebbb |
+#!/bin/sh
|
|
Harald Hoyer |
83ebbb |
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
Harald Hoyer |
83ebbb |
+# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
Harald Hoyer |
83ebbb |
+
|
|
Harald Hoyer |
83ebbb |
+rm -fr /usr/share/plymouth /usr/lib/plymouth /usr/lib64/plymouth
|
|
Harald Hoyer |
83ebbb |
diff --git a/modules.d/90kernel-modules/kernel-cleanup.sh b/modules.d/90kernel-modules/kernel-cleanup.sh
|
|
Harald Hoyer |
83ebbb |
new file mode 100755
|
|
Harald Hoyer |
83ebbb |
index 0000000..d17714d
|
|
Harald Hoyer |
83ebbb |
--- /dev/null
|
|
Harald Hoyer |
83ebbb |
+++ b/modules.d/90kernel-modules/kernel-cleanup.sh
|
|
Harald Hoyer |
83ebbb |
@@ -0,0 +1,5 @@
|
|
Harald Hoyer |
83ebbb |
+#!/bin/sh
|
|
Harald Hoyer |
83ebbb |
+# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
Harald Hoyer |
83ebbb |
+# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
Harald Hoyer |
83ebbb |
+
|
|
Harald Hoyer |
83ebbb |
+rm -fr /lib/modules
|
|
Harald Hoyer |
83ebbb |
\ No newline at end of file
|
|
Harald Hoyer |
83ebbb |
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
83ebbb |
index 46d8591..88f0e2d 100755
|
|
Harald Hoyer |
83ebbb |
--- a/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
83ebbb |
+++ b/modules.d/90kernel-modules/module-setup.sh
|
|
Harald Hoyer |
83ebbb |
@@ -75,6 +75,7 @@ install() {
|
|
Harald Hoyer |
83ebbb |
inst_simple "$i"
|
|
Harald Hoyer |
83ebbb |
done
|
|
Harald Hoyer |
83ebbb |
inst_hook cmdline 01 "$moddir/parse-kernel.sh"
|
|
Harald Hoyer |
83ebbb |
+ inst_hook pre-pivot 20 "$moddir/kernel-cleanup.sh"
|
|
Harald Hoyer |
83ebbb |
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
|
|
Harald Hoyer |
83ebbb |
|
|
Harald Hoyer |
83ebbb |
for _f in modules.builtin.bin modules.builtin; do
|