Lucas C. Villa Real wrote:
> On 2/16/07, Jonatan Liljedahl <[EMAIL PROTECTED]> wrote:
>> Jonatan Liljedahl wrote:
>> ...big snip...
>>> And now everything seems to work (it's running ProfileInstall right now...)
>> Update:
>>
>> Well, the LiveCD with kernel 2.6.20 booted fine, and could handle my
>> brand new SATA motherboard, etc... But since I didn't replace the
>> "installed" kernel inside the squashfs image, the system then booted old
>> 2.6.17.11, which doesn't support my SATA, so it panics when it can't
>> mount the root fs!
>>
>> And, since the LiveCD boots with another kernel than the one installed
>> in the LiveCD, I can't modprobe any drivers to get in touch with the
>> outside world to copy in the new 2.6.20 kernel... At least I thought so,
>> until I found my external CD-writer for my laptop! =)
>>
>> So I copied over the new kernel and the KernelPackage script to my root
>> partition, chrooted to it and installed the new kernel. Voila!
>>
>> What a journey... Looking forward to some sleep.
> 
> Wow! Congratulations! :-))

Thanks for all the help!

> I'd like to take your initrd script and put it, together with an
> updated squashfs for the kernel image, as an alternative for those
> having problems on the current 013. I'll be here this weekend, not
> full time, but I'll certainly reserve some time to do that.
> 
> Thanks for your persistence! :-)

I wrote a small HOWTO of how to replace stuff in the LiveCD (attached),
feel free to add the steps of how to replace the kernel in the squashfs
image and put it up on the gobolinux knowledge base.

-- 
/Jonatan - http://kymatica.com
How to replace the kernel and initrd image on the 013 LiveCD
------------------------------------------------------------

first I mounted the official 013 image:
# mount /dev/cdrom /Mount/CDROM

then I set up a union mount for this:
# mkdir ~/LiveCD.rw
# mkdir ~/LiveCD
# mount -t unionfs -o dirs=/Users/root/LiveCD.rw=rw:/Mount/CDROM=ro \
  none ~/LiveCD

replace the kernel
# cp /path/to/new/kernel ~/LiveCD/isolinux/kernel

copy the contents of the old initrd
# mount -t cramfs -o loop ~/LiveCD/isolinux/initrd /Mount/foo
# mkdir ~/initrd_wd
# (cd /Mount/foo && tar cpf - .) | (cd ~/initrd_wd && tar xpf -)
# umount /Mount/foo

change what you need to change in ~/initrd_wd... like replacing
the startGoboLinux script...

create a new initrd:
# mkfs.cramfs ~/initrd_wd ~/new_initrd

put it in place:
# cp ~/new_initrd ~/LiveCD/isolinux/initrd

create the new ISO image:
# mkisofs -R -b isolinux/isolinux.bin -c isolinux/boot.cat \
  -no-emul-boot -boot-load-size 4 -boot-info-table -o 013-fixed.iso ~/LiveCD

unmount the union and official image
# umount ~/LiveCD
# umount /Mount/CDROM

burn the new ISO:
# cdrecord -v dev=/dev/cdrw -data 013-fixed.iso
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to