|
From: Serge L. <sma...@us...> - 2009-02-20 04:38:46
|
Update of /cvsroot/devil-linux/build/config/etc/initrd In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv30995/d/d/d Modified Files: linuxrc Log Message: - the partition with DL image should be accessable in case of initrd and iniramfs Index: linuxrc =================================================================== RCS file: /cvsroot/devil-linux/build/config/etc/initrd/linuxrc,v retrieving revision 1.104 retrieving revision 1.105 diff -u -d -r1.104 -r1.105 --- linuxrc 29 Jan 2009 02:56:54 -0000 1.104 +++ linuxrc 20 Feb 2009 04:38:37 -0000 1.105 @@ -460,10 +460,17 @@ echo "Mounting SHM FS on /cdrom/shm" mount -n --move /shm /cdrom/shm -#umount /shm -echo -n "Unmounting " +# move the mountpoint of /cd to /var/adm/boot +# this will allow the administrator to install updates later +if grep "/dev/loop" /proc/mounts > /dev/null ; then + if [ -f /cd/bootcd.iso -o -f /cd/bootcd.squash ] ; then + mkdir -p /cdrom/shm/var/adm/boot + mount --move -o ro /cd /cdrom/shm/var/adm/boot + fi +fi +echo -n "Unmounting " # unmount proc because the final system will mount it again $GREEN; echo " proc"; $NORMAL umount /proc |