Hi all

Its done :-)
Belenix 0.7 can boot from ram now!!! :-)
Here's how i did it.(I would like to tell it as a story:-))

I copied the mount binaries to /usr/lib/fs/tmpfs (in the microroot)
but it did not work,got an error saying mount :this operation is not
applicable to the FSType tmpfs
So a little after a little bit of pondering ,tried to execute /sbin/mount
directly and it worked

The next stage was the cp /.cdrom/solaris.zlib /tmp and cp
/.cdrom/solarismisc.zlib /tmp
This was again not working.
So after inumerous boots into the working copy of belenix and comparing the
files of that with those in the microroot, I figured out that the cp
binaries were not present in the microroot either...
So i copied the binaries into appropriate folder (/usr/bin/cp) then executed
it directly and it worked flawlessly!!!!

The third stage was the lofiadm stage ,
Here again with the full enthusiasm i did a lofiadm -a /tmp/solairs.zlib but
again it did not work.
upon careful observation of the live-fs-root ,i found that i made a mistake
of calling it independently without devfsadm .......
So this time i replaced it within the already built up code and whola!!!!

Here are the codes

/sbin/mount -F tmpfs swap /tmp 2>/dev/msglog
if [ $? -eq 0 ];then
echo "successful mount" >/dev/msglog
else
echo "failure" >/dev/msglog
fi
/usr/bin/cp /.cdrom/solaris.zlib /tmp                       (copied the
binaries into /usr/bin first these executed this statement!!)
/usr/bin/cp /.cdrom/solarismisc.zlib /tmp

if [ $? -eq 0 ];then
echo "proceeding to final stage" >/dev/msglog
echo "failed to copy" >/dev/msglog
fi
/usr/sbin/lofiadm -a /dev/lofi/1 /usr 2>/dev/msglog
/usr/sbin/lofiadm -a /dev/lofi/2 /mnt/misc 2>/dev/msglog

Regards
Shampavman
CA, Jssate
Bangalore,INDIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/belenix-discuss/attachments/20080504/81be5c6a/attachment.html>

Reply via email to