From: Heiko Z. <he...@zu...> - 2004-05-08 02:00:22
|
Tim Tait wrote: > > The current scripts have an issue when mounting the bootcd.iso file off > of a disk device. The disk is initially mounted under the initrd /mnt > point with rw access. When the /mnt/bootcd.iso is mounted followed by > the chroot, it then makes it it impossible to unmount the disk device > (now on /initrd/mnt) in pre_init, leaving it mounted read/write. I > couldn't find a perfect solution to this, but I think these changes help- > > mount_cdrom: > Remount the disk device ro before mounting the iso. Sure to reduce > filesystem corruption during reboots, less security issues. I also added > a output line to say what version of the bootcd.iso it found - useful if > there was more than one to find - hate to upgrade/downgrade > unintentionally.. > > pre_init: > perform "umount -l" (as in lazy) rather than plain umount. If an actual > umount can't be done, this will prevent further access to that mount, > making it appear unmounted. When/if it is not busy, it will be > unmounted. Probably as good as it can get with current boot method? DONE Heiko |