[Fedora-livecd-list] Grub kills GDM, but isolinux loves GDM !

Chitlesh GOORAH chitlesh at fedoraproject.org
Sat Sep 16 21:18:29 UTC 2006


Hai there,
I've been contacted today to make a bootable livecd with grub :)
I've created my script like a good boy, fired kadischi.

kadischi /rawhide/ /tmp/myimage.iso --text -f
--kickstart=/usr/local/share/kadischi/ks_examples/standard-livecd.cfg

The live cd boots :)

But it is unable to load GDM !!!!
http://www.flickr.com/photo_zoom.gne?id=244808541&size=o

However without the script (i.e with the original isolinux method),
GDM doesn't complain with the same repository and command
kadischi /rawhide/ /tmp/myimage.iso --text -f
--kickstart=/usr/local/share/kadischi/ks_examples/standard-livecd.cfg

My solution was parsing ramdisk_size=65536 to the kernel.
Anyone got  better solution ?

in kadischi.py
i've replaced

        boot = normalize_path([bindir, 'install-boot.sh'])
by
        boot = normalize_path([bindir, 'grub.sh'])

and

        args = ["/usr/bin/mkisofs", "-quiet", "-R",
            "-V", dist,
            "-b", "boot/isolinux/isolinux.bin",
            "-c", "boot/isolinux/boot.cat",
            "-p", myname,
            "-x", "lost+found",
            "-no-emul-boot", "-boot-load-size", "4", "-boot-info-table",
            "-o", isoimage,
            csysdir]
by
        args = ["/usr/bin/mkisofs", "-quiet", "-R",
            "-V", dist,
            "-b", "boot/grub/stage2_eltorito",
            "-p", myname,
            "-x", "lost+found",
            "-no-emul-boot", "-boot-load-size", "4", "-boot-info-table",
            "-o", isoimage,
            csysdir]

Here is the script (grub.sh) I'm using for i386 instead of install-boot.sh
=============
#!/bin/bash
#
# Using grub instead of isolinux

 . /etc/kadischi/kadischi.conf

sysdir=$1
csysdir=$2
kernel=$3

kernel_params='selinux=0'

 . /etc/kadischi/kadischi.conf

[ -x $sysdir/usr/bin/rhgb ] &&  kernel_params="$kernel_params rhgb"

echo "[kadischi]: bootloader configuration"

mkdir -p $csysdir/boot/grub
cp /usr/share/grub/i386-redhat/stage2_eltorito $csysdir/boot/grub/
cp /boot/grub/splash.xpm.gz $csysdir/boot/grub/

cp $sysdir/boot/isolinux/initrd.img $csysdir/boot/
cp $sysdir/boot/vmlinuz-$kernel $csysdir/boot/

cat > $csysdir/boot/grub/grub.conf <<_EOF_
default=0
timeout=10
splashimage=/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core ($kernel)
    root(cd)
    kernel /boot/vmlinuz-$kernel quiet $kernel_params ramdisk_size=65536
    initrd /boot/initrd.img
title Fedora Core ($kernel debug)
    root(cd)
    kernel /boot/vmlinuz INITRD_DBG=x
    initrd /boot/initrd.img
_EOF_
=============

I hope it might be useful to someone too :)

Chitlesh
-- 
http://clunixchit.blogspot.com




More information about the Fedora-livecd-list mailing list