I just wanted to point out that these are completely different scenarios... khayyam's method is by far easier (at least in the long run, update wise, as you can just download newer isos), but it relies completely on grub2. (I wrote that linuxrc-trick a few years ago, see
https://bugs.gentoo.org/show_bug.cgi?id=294268)
RobertS's method of booting the squashfs directly is also possible, but a bit more complex...
As you can see, it tries all partitions on /dev/sr0 as well as /dev/sda... so its not a problem if its not a cdrom actually.
But it will search for the file /livecd on the partitions!
You should not set real_root as boot parameter, but you should set root=/dev/ram0!
Something like this should do it
Code: Select all
title=LiveCD
kernel /boot/yourkernel root=/dev/ram0 looptype=squashfs loop=/boot/livecd.squashfs udev cdroot
initrd /boot/yourinitramfs