- # setup writable /etc /root and nfs stat dir if ISO is ROOT
- if [ -f $ID ] ;then
- /bin/mount -t $VFSTYPE -o $OPTIONS $ROOT $MOUNT/mnt/cdrom
- cd $MOUNT/mnt/cdrom
- #set up writeable /dev
- echo "Setting up writeable /dev for the udevness"
- /bin/mount -t tmpfs tmpfs $MOUNT/dev
- $MOUNT/bin/cp -a --parents dev $MOUNT
-
- for i in tmp etc root var/log var/lib/nfs ;do
- echo "Setting up writable /$i for install"
- /bin/mount -t tmpfs tmpfs $MOUNT/$i
- $MOUNT/bin/cp -a --parents $i $MOUNT
- done
- cd $MOUNT
- /bin/umount $MOUNT/mnt/cdrom
-
- # Installer needs this to do its "eject CD" magic
- echo "$ROOT" >$MOUNT/etc/cddev
- fi
-
cd $MOUNT
if [ -d initrd ]; then
@@ -146,7 +125,7 @@ main() {