OK. New proposal. 1) Revert currently pending changes to choose-mirror. 2) Split choose-mirror (c-m) into c-m-bin (actual program) and c-m (postinst); c-m depends on c-m-bin. 3) Make cdrom-detect and iso-scan set cdrom/base_installable in debconf database if /cdrom/.disk/base_installable is present. 5) Apply Joey's patch for split of mirror/cdrom suite and codename. 4) Change dependency of apt-setup to c-m-bin (currently depends on c-m). This leaves businesscard CD based installs without configured mirror for base-installation, so make cdrom-detect and iso-scan do an 'anna-install c-m' if cdrom/base_installable is false. (Other installation methods that need it have c-m in the initrd.) 5) Add following functionality in apt-setup postinst if cdrom/base_installable is true: - copy debconf values for suite and codename from cdrom/ to mirror/ - ask new question (with a nice explanation in its description): a) use both normal mirror and mirror for security updates b) use only mirror for security updates c) don't use network mirrors - prio for this question is high with default a); if we can add a good method for detecting full CDs, prio could be dropped to medium with default set to a) for netinst and b) for full CDs - if a), then run choose-mirror with suite selection being skipped (either through a parameter or by checking cdrom/base_installable) - if b) or c), then unset mirror/hostname and mirror/directory - choosing c) makes generator 90security skip the probe for the mirror and add sources for security commented out
This set of changes will leave current situation unchanged for network based and businesscard CD installs: mirror selection takes place just after network configuration. For CD-based installs choose-mirror is dropped from the main menu and instead is shifted to apt-setup, which is a more logical time to ask the question anyway as pkgsel is the first point where a mirror is needed. AFAICT preseeding will just continue to work. Cheers, FJP
pgp2jRgGaERsY.pgp
Description: PGP signature