|
From: Heiko Z. <smi...@us...> - 2006-10-23 21:02:07
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv23069/scripts/scripts Modified Files: pre_init Log Message: - updated busybox to v1.2.1 - if the boot device is not a CD, the mount point of it is moved to /var/adm/boot , because a mount of the device is not possible anymore. execute: mount -o remount,rw /var/adm/boot in order to make changes Index: pre_init =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/pre_init,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- pre_init 9 Oct 2006 14:26:23 -0000 1.26 +++ pre_init 23 Oct 2006 21:02:00 -0000 1.27 @@ -36,7 +36,16 @@ # if boot was from ISO image file on disk, this next umount won't succeed. # Use -l (lazy) to disconnect it from filesystem while preserving existing use, # and clean up when possible to truly unmount it, ie after ISO is unmounted. (Does this happen?) -umount /initrd -l&> /dev/null +if [ -f /initrd/cd/bootcd.iso ]; then + # move the mountpoint of initrd/cd to /var/adm/boot + # this will allow the administrator to install updates later + mkdir -p /shm/var/adm/boot + mount --move -o ro /initrd/cd /shm/var/adm/boot +fi +# umount the initrd +# this won't completely umount, because the loop device is still using it +# that's why we use the lazy option +umount /initrd -l &> /dev/null echo "Freeing InitRD memory" freeramdisk /dev/ram0 |