aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-07-25 16:37:59 +0000
committerOlivier Blin <oblin@mandriva.com>2008-07-25 16:37:59 +0000
commitabe3a416a98281fe419551006235ab13561aa57f (patch)
tree86f593f79c302ab7604a6d67d81717d6750f2f2f /scripts
parent5404e80b7197c94c6d0153be2bd539d954bec69c (diff)
downloadbootsplash-abe3a416a98281fe419551006235ab13561aa57f.tar
bootsplash-abe3a416a98281fe419551006235ab13561aa57f.tar.gz
bootsplash-abe3a416a98281fe419551006235ab13561aa57f.tar.bz2
bootsplash-abe3a416a98281fe419551006235ab13561aa57f.tar.xz
bootsplash-abe3a416a98281fe419551006235ab13561aa57f.zip
add support for splashy themes inclusion in ext2 initrd (used by One build process)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-boot-splash-raw16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw
index 2ec07ab..9c201c0 100755
--- a/scripts/make-boot-splash-raw
+++ b/scripts/make-boot-splash-raw
@@ -42,7 +42,21 @@ if `/bin/zcat $initrd_file 2> /dev/null | /bin/cpio -t &> /dev/null`; then
else
$splash_dir/scripts/remove-boot-splash $initrd_file
- if [[ -x /sbin/splash ]]; then
+ if [ -x /sbin/splashy ]; then
+ tmp_initrd=`mktemp`
+ tmp_dir=`mktemp -d`
+ gzip -dc $initrd_file > $tmp_initrd
+ mount -o loop $tmp_initrd $tmp_dir
+ rm -rf $tmp_dir/etc/splashy
+ for f in `/usr/sbin/splashy_find_files | grep ^/etc/splashy`; do
+ d=`dirname $f`
+ mkdir -p $tmp_dir$d
+ cp -aL $f $tmp_dir$d
+ done
+ umount $tmp_dir
+ gzip -c $tmp_initrd > $initrd_file
+ rm -f $tmp_initrd
+ elif [[ -x /sbin/splash ]]; then
/sbin/splash -s -f $config >> $initrd_file
fi
fi