aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/make-boot-splash-raw11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw
index d441e45..52bdd7e 100755
--- a/scripts/make-boot-splash-raw
+++ b/scripts/make-boot-splash-raw
@@ -17,13 +17,14 @@ THEME=$2
if `/bin/zcat $initrd_file 2> /dev/null | /bin/cpio -t &> /dev/null`; then
tmp_dir=`mktemp -d`
- /bin/zcat $initrd_file | cpio-filter --exclude 'usr/share/plymouth|usr/lib/plymouth|usr/lib64/plymouth' > $tmp_dir/initrd
+ /bin/zcat $initrd_file | cpio-filter --exclude 'usr/share/plymouth|usr/lib/plymouth|usr/lib64/plymouth|bin/plymouth|lib/libply|usr/lib/libply|lib64/libply|usr/lib64/libply' > $tmp_dir/initrd
if [ -x /usr/libexec/plymouth/plymouth-populate-initrd ]; then
- /usr/libexec/plymouth/plymouth-populate-initrd -t $tmp_dir/initrd
+ mkdir $tmp_dir/plymouth
+ /usr/libexec/plymouth/plymouth-populate-initrd -t $tmp_dir/plymouth
- (echo /; echo /usr/share/plymouth ; echo /usr/lib/plymouth ; echo /usr/lib64/plymouth ) \
- | perl -MFile::Basename -ne 'm,^/(usr/share/plymouth/.*|usr/lib/plymouth/.*|usr/lib64/plymouth/.*), and print $1 . "\n" . dirname($1) . "\n"' \
- | sort -u | (cd / ; cpio -o -c -L --quiet -O $tmp_dir/initrd --append)
+ cd $tmp_dir/plymouth
+ /bin/find . -print | sed -e 's,\./,,g' | sed -e 's,^\.$,,' | \
+ sort -u | cpio -o -c -L --quiet -O $tmp_dir/initrd --append 2>/dev/null
fi
gzip -c $tmp_dir/initrd > $initrd_file
rm -rf $tmp_dir