bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

splashimage wont load


From: Magnus
Subject: splashimage wont load
Date: Wed, 07 Apr 2004 19:11:34 +0200

Hi.

For some time now ive been making CD's / DVD's of my lfs system with the
eltorito bootable standard.

Im using the following code to create a 2,88 MB image:


<Snip>
#!/bin/bash

    # Make a 2,88 MB image

CHROOT="/mnt/dist_chroot"


    # Create the 2,88 MB image
dd if=/dev/zero of=$CHROOT/boot/boot.img bs=1k count=2880

    # Associate the loop with the bootimage
losetup /dev/loop1 $CHROOT/boot/boot.img

    # Create an msdos filesystem on it (was MSDOS)
mkfs -V -t ext2 -L Raven /dev/loop1

    # Mount it in /tmp
mount /dev/loop1 /tmp/loop1

    # Add the dirs and files
mkdir -p /tmp/loop1/boot/grub

cd $CHROOT/boot/
cp vmlinuz-2.6.4 /tmp/loop1/boot/

cd $CHROOT/boot/grub
cp stage1 stage2 splash.xpm.gz /tmp/loop1/boot/grub/

# Not needed 
cp e2fs_stage1_5 /tmp/loop1/boot/grub/

# I assume grub will load any conf specified but.. (splash test)
cp grub.conf /tmp/loop1/boot/grub/menu.lst
cp grub.conf /tmp/loop1/boot/grub/


    # Unmount it
umount /tmp/loop1/


#install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 p
(fd0)/boot/grub/menu.lst

# Setup runs install .......
#setup (fd0) 

#install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 p
(fd0)/boot/grub/menu.lst

    # setup grub in the bootimage
/sbin/grub --batch --device-map=/dev/null << EOF
device (fd0) /dev/loop1
root (fd0)
install /boot/grub/stage1 d (fd0) (fd0)/boot/grub/stage2 0x8000 p
(fd0)/boot/grub/grub.conf
quit
EOF

    # Divorce the loop
losetup -d /dev/loop1

    # show the bootimage properties
ls -l $CHROOT/boot/boot.img
file  $CHROOT/boot/boot.img


echo -e "\n Make sure no error has occured, if so press ctrl+C \n"
sleep 10

    # A selection to make the image can be made here 

case "$1" in
    iso)
        echo -e "\n Making the iso image to burn"
        cd $CHROOT
        ## -D  Deep directory relocation (poseiden=dont use)
        # Make a bootable DVD ISO from the boot.img and the rest of the dist
        if [ -f /tmp/Raven.iso ]; then
           rm -f /tmp/Raven.iso
        fi
        mkisofs -r -l -J -L -P "Raven Linux" -p "Raven Linux" -V Raven -b
boot/boot.img -c boot.cat -o /tmp/Raven.iso $CHROOT
    ;;
    *)
        echo -e "\n Add (iso) to the end to make an iso"
esac

<Snip>


The contents of grub.conf / menu.lst symlink

<Snip>

default=3
timeout=60
#color green/black light-green/blue .. this works ok
splashimage=(fd0)/boot/grub/splash.xpm.gz

title Raven (Linux-2.6.4) DVD Secondary Master
    root (fd0)
    kernel /boot/vmlinuz-2.6.4 ro root=/dev/hdc

<Snip>

The dvd's shows the specified grub and boots but no splashimage is
shown.

Please help.

Sincerely: Magnus-swe






reply via email to

[Prev in Thread] Current Thread [Next in Thread]