Browse Source

plymouth/kernel: cleanup not needed parts for shutdown

remove plymouth and kernel parts from /run/initramfs, which are not
needed at shutdown.

https://bugzilla.redhat.com/show_bug.cgi?id=751189
master
Harald Hoyer 13 years ago
parent
commit
39339512e2
  1. 1
      modules.d/50plymouth/module-setup.sh
  2. 5
      modules.d/50plymouth/plymouth-cleanup.sh
  3. 5
      modules.d/90kernel-modules/kernel-cleanup.sh
  4. 1
      modules.d/90kernel-modules/module-setup.sh

1
modules.d/50plymouth/module-setup.sh

@ -46,6 +46,7 @@ install() { @@ -46,6 +46,7 @@ install() {

inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
inst_hook pre-pivot 10 "$moddir"/plymouth-cleanup.sh
inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
inst readlink
}

5
modules.d/50plymouth/plymouth-cleanup.sh

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

rm -fr /usr/share/plymouth /usr/lib/plymouth /usr/lib64/plymouth

5
modules.d/90kernel-modules/kernel-cleanup.sh

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

rm -fr /lib/modules

1
modules.d/90kernel-modules/module-setup.sh

@ -75,6 +75,7 @@ install() { @@ -75,6 +75,7 @@ install() {
inst_simple "$i"
done
inst_hook cmdline 01 "$moddir/parse-kernel.sh"
inst_hook pre-pivot 20 "$moddir/kernel-cleanup.sh"
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh

for _f in modules.builtin.bin modules.builtin; do

Loading…
Cancel
Save