View Single Post
 
Old 01-20-2010, 01:57 PM
naksindia naksindia is offline
Cheetah
 
Join Date: Jan 2010
Location: India
Posts: 2
rc.liveboot

Quote:
Originally Posted by peet View Post
Hi, I also faced “unbound variable” problem and here is Galileo’s solution in more detail:

Steps needed:
1) create ramdisk
2) copy rc.liveboot to ramdisk
3) edit rc.liveboot on ramdisk
4) run rc.liveboot from ramdisk
5) exit

More details:

1) to create ramdisk, use lines from rc.liveboot. You view this file using command cat, i.e. writing “cat /etc/rc.liveboot | more”. Using down arrow key scroll nearly to the end of the file where you will see “RAMDisk()”. Now press “q”. The text will remain on the screen but you will be able to write commands. Here are commands you have to execute (one by one). Please note I changed:

- system-image=no in “hdik” line
- ram://51200 in “hdik” line
- $mntpt to /Volumes in “mount” line

Commands to execute:

dev=`hdik -drivekey system-image=no -drivekey eject-upon-logout=no -nomount ram://51200`
newfs $dev #hack to init partition table automatically
newfs_hfs $dev
mount -t hfs -o nosuid,nodev $dev /Volumes

2) If previous step finished without errors you have working ramdisk in /Volumes. Now copy rc.liveboot to it:
cp /etc/rc.liveboot /Volumes

3) To edit rc.liveboot on ramdisk type:
emacs /Volumes/rc.liveboot
Now scroll the file till line 85 and comment this lines (put # before them):
set ${volinfo}
devname=$1
fstype=$2
To save yor changes pres Ctrl+X and then Ctrl+C. Editor will ask you of saving changes, press “y”.

4) To run rc.liveboot from ramdisk:
sh /Volumes/rc.liveboot init 2000000
If everything works fine you should see two lines of text, first saying something like “messed with swap”

5) enter command “exit” and watch as your live Leopard is starting

Hope this helped.

Thank to creators of this great live distro!

I booted the live DVD. Then typed config=live.plist. At root#:, typed cat /etc/rc.liveboot | more.

Then after pressing q, typed the following as said by you:
dev=`hdik -drivekey system-image=no -drivekey eject-upon-logout=no -nomount ram://51200`
newfs $dev #hack to init partition table automatically
newfs_hfs $dev
mount -t hfs -o nosuid,nodev $dev /Volumes

And then typed cp /etc/rc.liveboot /Volumes
It displayed cp: Volumes/rv.liveboot ; read only

Then I typed emacs /Volumes/rc.liveboot
A console opened. NO lines was present in it.
At the bottom, it displayed no such directory. Write Protected.(I don't exactly remember what it said)

What can I do to correct this prblm

Gokul
Reply With Quote