Bug#123948: b-f cdrom detection
Sun, Feb 17, 2002 at 01:33:29PM -0600 wrote:
> On Feb 15, David Kimdon wrote:
> > The following (untested) patch may give us the behavior we want, I
> > think, any seconds?
> >
> > The only change here is that we are checking the contents of the file.
> > In general the change that I committed for 3.0.19 is to check the
> > contents of any cdrom drives at boot. If there is a debian cdrom in
> > the drive at boot then we assume it will always be available, that is,
> > we don't look for it when is_cdrom_image() is called, but rather check
> > a variable that we set at boot.
> >
> > Note, the recent submitter with the net-install CD could get around
> > the problem experienced by booting with the verbose argument. Needing
> > the verbose argument isn't entirely intuitive, I just noticed it this
> > evening reading the code. However, since one of our goals is to limit
> > prompting the user this is probably a fine way to go.
>
> Searching for the string "Official" seems rather bogus, unless we want
> vendors who create unofficial CD-ROMs to put the string "Not Official"
> in their .disk/info files.
>
I was actually thinking they would put Unofficial, like is suggested
in the debian-cd source CONF.sh, search for OFFICIAL. They get
themselves one more prompt, that is probably ok.
> I suspect searching for the strings "Debian" and "Binary-" would
> suffice to ensure you have a Debian CD of some form in the drive.
It isn't clear what should be in there to me either. The problem at
hand is actually someone who is creating special net install CDs. I
don't know what is in /.disk/info on those disks, but I expect that
both Debian and Binary- are in there. We don't want to net only
install CDs to be detected as an official cdrom since the packages
aren't on the cd.
-David
Reply to: