On Friday 26 October 2007, Joey Hess wrote: > I wonder if you've considered the wrinkle of anna-install being run when > a CD other than the boot CD is in the drive? anna-install is rarely > called after base-installer, but it can happen.
It _does_ happen. In the current flow grub-installer is the first component to run os-prober which loads some new udebs (ntfs/qnx4-modules). Another case where the installation CD must be loaded is when the 50mirror generator is run because it checks files in /cdrom/.disk. > Maybe cdrom-retreiver should store a volume ID of the CD and check that > ID and handling a media change. I do store the ID of the installation CD in the 41cdset generator. That generator, pkgsel and apt-install all make sure that that original CD is reloaded and mounted before they exit (using the new script load-install-cd), so any anna-install call should never find itself with the wrong CD in the drive. Storing the ID could maybe be done in cdrom-retriever. OTOH, I currently use 'apt-cdrom ident' to determine the ID and that is not available at that early stage. Of course, if we do want to implement a check in anna/udpkg that the correct CD is available, this will have to be rethought.
signature.asc
Description: This is a digitally signed message part.