I successfully booted to the ram with my customized squash filesystem
My requirement was different. I need to always boot to the ram with the 
customized filesystem so i just added this. 

Based on hardy : Script casper : 
You need to add <Line to add>  under the follwing lines <snip>.
<snip> Find in casper
if [ ! -z "${NETBOOT}" ]; then
        if do_netmount ; then
            livefs_root="${mountpoint}"
        else
            panic "Unable to find a live file system on the network"
        fi
    fi

<snip>

<Line to add>
     mkdir /myfs
     mount -t tmpfs -o size=2G none /myfs 
     mkdir /myfs/casper
     cp /scripts/filesystem.squashfs /store/casper/   # just hardcoded in 
initrd add this and regenerate
     mount -o bind /myfs /cdrom
     livefs_root=/cdrom  # just tell that the filesystem is under cdrom 

<line to add>

You can remove the scanning of devices which will take extra time.

-- 
Unable to boot Ubuntu using TORAM=yes (copy livecd to RAM)
https://bugs.launchpad.net/bugs/25496
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to