From: Friedrich L. <fl...@fl...> - 2004-05-08 20:01:25
|
*Sorry if you have received 2 copies of this mail* I had to stop the sending process to make some last minute changes. Tim Tait wrote on 08.05.2004 21:15 MET: > Friedrich Lobenstock wrote: > >> Tim Tait wrote on 08.05.2004 19:13 MET: >> >>> Friedrich Lobenstock wrote: >>> >>>> >>>> Why don't you change the original mount and add the options >>>> "ro,noatime" >>>> there? >>>> >>>> Just tried it with my local CD-Rom drive to make sure iso9660 >>>> accepts the >>>> "noatime" option. >>>> >>>> # mount /dev/cdrom /mnt/ -o ro,noatime # mount | grep /mnt /dev/sr0 >>>> on /mnt >>>> type iso9660 (ro,noatime) >>> >>> >>> >>> I thought that mounting it read only from the beginning would break >>> the live-update feature, no? >> >> >> >> Then your patch should also break it too, shouldn't it? > > No, because I remount it read-only after the update check is finished - > ie it will have already copied bootcd.iso.new (if it exists) to > bootcd.iso, and thus is ready to continue with the normal mount > sequence, which only requires read access. Ok, were did I have my head. >>> Tho I suppose if is bootcd.iso.new is detected, it could be remounted >>> rw at >>> that time. >> >> Can you please test that and add the necessary remount's there? > > I can, though it will mean 2 remounts - one to make it rw for update, > then another to make ro when update is done. The current situation is using the minimal amount of mount commands. But for sake of cleaner implementation, meaning in the normal case we don't need to run two mounts, I think the other way is better. Updating is a special case anyway and were you have to take special meassures anyway. How about factoring out the update stuff into another file to make the mount_cdrom more readable again? BTW while looking at the update code I think we should also rename/move the /mnt/DEVIL-LINUX file so we know from which version to which we are updating. Heiko!? > > Should the new diff be done against the original, or the last patched > version? I don't see that change in CVS yet. The webinterface seems to be up to date, so you can always get the file from there: http://cvs.sourceforge.net/viewcvs.py/devil-linux/build/config/etc/initrd/mount_cdrom While you are at it, the "if" from before "# generate list of cdroms from devfs" down should be moved down and merged with your addition of "if [ "$3" != "silent" ]". Is shorter and makes the file more readable. And while your are using the "ro,noatime" mount option why not merge the two for-loops into one? Like: for disk in $CDROMS $PARTITIONS do -- MfG / Regards Friedrich Lobenstock ____________________________________________________________________ Friedrich Lobenstock Linux Services Lobenstock URL: http://www.lsl.at/ Email: fl...@fl... ____________________________________________________________________ |