diff options
author | Michael Janczyk | 2006-06-29 22:57:53 +0200 |
---|---|---|
committer | Michael Janczyk | 2006-06-29 22:57:53 +0200 |
commit | 746fb70b2fc1c041c572413ff1bc737804434b24 (patch) | |
tree | 3ab4be699ba64d067277b2637e970496f51a46a3 /initrd | |
parent | git-svn-id: http://svn.openslx.org/svn/openslx/ld4@260 95ad53e4-c205-0410-b2f... (diff) | |
download | core-746fb70b2fc1c041c572413ff1bc737804434b24.tar.gz core-746fb70b2fc1c041c572413ff1bc737804434b24.tar.xz core-746fb70b2fc1c041c572413ff1bc737804434b24.zip |
bootsplash bugfix
git-svn-id: http://svn.openslx.org/svn/openslx/ld4@261 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initrd')
-rwxr-xr-x | initrd/mkdxsinitrd | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/initrd/mkdxsinitrd b/initrd/mkdxsinitrd index d5df6e1a..1f7c9117 100755 --- a/initrd/mkdxsinitrd +++ b/initrd/mkdxsinitrd @@ -222,27 +222,27 @@ add_splash () { splashsizes="$SPLASH" splashsizes="800x600 1024x768 1280x1024 1400x1050 1600x1200" -splash_bin=$(which splash) +splash_bin=$(chroot $ROOTDIR which splash) splash_image= THEME="SuSE" if [ -n "$splashsizes" -a -n "$splash_bin" ]; then themes_dir= if [ -d "$ROOTDIR/etc/bootsplash/themes" ]; then - themes_dir="$ROOTDIR/etc/bootsplash/themes" + themes_dir="/etc/bootsplash/themes" elif [ -d "$ROOTDIR/usr/share/splash/themes" ]; then - themes_dir="$ROOTDIR/usr/share/splash/themes" + themes_dir="/usr/share/splash/themes" fi echo -ne "Bootsplash:\t" - if [ -n "$themes_dir" -a \ - -d "$themes_dir/$THEME" -o -L "$themes_dir/$THEME" ]; then + if [ -n "$ROOTDIR/$themes_dir" -a \ + -d "$ROOTDIR/$themes_dir/$THEME" -o -L "$ROOTDIR/$themes_dir/$THEME" ]; then for size in $splashsizes; do bootsplash_picture="$themes_dir/$THEME/images/bootsplash-$size.jpg" cfgname="$themes_dir/$THEME/config/bootsplash-$size.cfg" - if [ ! -r $cfgname ] ; then + if [ ! -r $ROOTDIR/$cfgname ] ; then echo "disabled for resolution $size" - elif [ ! -r $bootsplash_picture ] ; then + elif [ ! -r $ROOTDIR/$bootsplash_picture ] ; then echo "no image for resolution $size" else echo -n "${splash_image:+, }$THEME ($size)" @@ -257,7 +257,8 @@ fi # Include bootsplash image for image in $splash_image; do - $splash_bin -s -f $image >> $INSTDIR/bootsplash + # fixme: ugly hack to have the splash binary + chroot $ROOTDIR $splash_bin -s -f $image >> ${INSTDIR}/bootsplash done } |