diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-07-25 16:37:59 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-07-25 16:37:59 +0000 |
commit | abe3a416a98281fe419551006235ab13561aa57f (patch) | |
tree | 86f593f79c302ab7604a6d67d81717d6750f2f2f /scripts | |
parent | 5404e80b7197c94c6d0153be2bd539d954bec69c (diff) | |
download | bootsplash-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-x | scripts/make-boot-splash-raw | 16 |
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 |