From 0f44abebfc901152d45f70e5a975cfc03fe9e17f Mon Sep 17 00:00:00 2001 From: Andrew Sichevoi Date: Tue, 5 Jun 2012 09:35:49 +0400 Subject: [PATCH] Added initramfs hook script for removing plymouth --- initramfs/remove-plymouth | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 initramfs/remove-plymouth diff --git a/initramfs/remove-plymouth b/initramfs/remove-plymouth new file mode 100755 index 0000000..b67ce7c --- /dev/null +++ b/initramfs/remove-plymouth @@ -0,0 +1,32 @@ +#!/bin/sh + +### +### This script is distributed in the terms of GNU GPL v3.0+ +### (c) Andrew Sichevoi, http://thekondor.net +### +### Name: remove-plymouth +### Description: Initramfs HOOK script to remove plymouth from the final image +### Notes: The script does not modifies scripts' contents even they depend on ``plymouth'' +### +### Arguments +### none +### + +PREREQ="plymouth" +prereqs() +{ + echo "$PREREQ" +} + +case $1 in +prereqs) + prereqs + exit 0 + ;; +esac + +[ -z "${DESTDIR}" ] && exit 1 + +find ${DESTDIR} -name 'plymouth*' | xargs rm -rf + +exit 0 -- 2.20.1