aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2009-10-07 16:49:11 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2009-10-07 16:49:11 +0000
commit17494fd354ab16b216432e4493ceef0187f92c2b (patch)
tree5f7ba3d5e04395e8af06daf50bce0724270d9e9f /scripts
parent583e14d2059b9035f876a6c3ab0c85a0caaf67e2 (diff)
downloadbootsplash-17494fd354ab16b216432e4493ceef0187f92c2b.tar
bootsplash-17494fd354ab16b216432e4493ceef0187f92c2b.tar.gz
bootsplash-17494fd354ab16b216432e4493ceef0187f92c2b.tar.bz2
bootsplash-17494fd354ab16b216432e4493ceef0187f92c2b.tar.xz
bootsplash-17494fd354ab16b216432e4493ceef0187f92c2b.zip
- Fix support for plymouth
Diffstat (limited to 'scripts')
-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