From: Heiko Z. <smi...@us...> - 2004-05-08 01:54:15
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19897/scripts/scripts Modified Files: pre_init Log Message: mount media RO when booting from USB stick or other devices like it (Heiko / Tim Tait) Index: pre_init =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/pre_init,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- pre_init 9 Apr 2004 00:47:37 -0000 1.18 +++ pre_init 8 May 2004 01:54:07 -0000 1.19 @@ -43,7 +43,10 @@ echo "Un-Mounting old Filesystems" umount /initrd/dev &> /dev/null umount /initrd/floppy &> /dev/null -umount /initrd &> /dev/null +# 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 echo "Freeing InitRD memory" freeramdisk /dev/rd/0 |