From 17494fd354ab16b216432e4493ceef0187f92c2b Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Wed, 7 Oct 2009 16:49:11 +0000 Subject: - Fix support for plymouth --- scripts/make-boot-splash-raw | 11 ++++++----- 1 file 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 -- cgit v1.2.1