[Bootcd-user] Re: (no subject)
azajac@vif.com
azajac@vif.com
Tue, 28 Oct 2003 12:09:42 -0500
I am sorry that I originally forgot to include a proper title to my question...
Thank you very much. It works! The hardest part of the whole precess was to
get the script into the initrd. I basically appended the script to the bootcd
script (within bootcdmkinitrd) and re-ran it.
I am not at home so the script is something like:
devices=$(discover --device cdrom)
for s in $devices
do
mount $s /mountpoint
if test -f /mountpoint/bootcddir/file
then echo fount root at $s
pivot_root $s /old
exit
fi
umount /mountpoint
done
echo could not find root!
So this works if I pick scd0. If I chose something else, it cannot find the
root and panics... I think that I should just include one isolinux option for
a root directory and that would be either "/" (if I am allowed to do that) or
"/mountpoint."
My question is regarding the mountpoints.
Right now, /mountpoint and /old exist both in the initrd filesystem as well as
the real filesystem (which ends up on the cdrom) Would this work if both of
these directories only existed in the initrd? I do not have a great enough
understanding of the boot process to know... (I wrote the above script with
help from two internet bash tutorials!)
Thanks!
AZ.