[RFC] Detecting type of CD image and using that to make apt-setup smarter

2006-11-15 Thread Frans Pop
joeyh, sledge, others, After working with d-cd a lot over the past week, I think I've come up with a solution that will allow us to detect if the user is installing from netinst CD, full CD or DVD. This would allow us to let apt-setup ask the "use a mirror" question based on the type of CD. In

Re: [RFC] Detecting type of CD image and using that to make apt-setup smarter

2006-11-16 Thread Joey Hess
Frans Pop wrote: > In debian-cd/tools/add_debs add something like (pseudocode): > if [ $COMPLETE = 1 ]; then >if [ $DEFBINSIZE -gt 1000]; then > echo "dvd" > .disk/cd_type >else > echo "full_cd" > .disk/cd_type >fi > else >echo "not_complete" > .disk/cd_type > fi I gues

Re: [RFC] Detecting type of CD image and using that to make apt-setup smarter

2006-11-16 Thread Goswin von Brederlow
Frans Pop <[EMAIL PROTECTED]> writes: > joeyh, sledge, others, > > After working with d-cd a lot over the past week, I think I've come up > with a solution that will allow us to detect if the user is installing > from netinst CD, full CD or DVD. > This would allow us to let apt-setup ask the "us

Re: [RFC] Detecting type of CD image and using that to make apt-setup smarter

2006-11-17 Thread Joey Hess
Goswin von Brederlow wrote: > You can install from netinst without networking to get just a base > system. That's a point. > Also don't forget that basically everybody wants to use a > mirror for security no matter what image type he uses. That's irrelivant since the mirror use question does not

Re: [RFC] Detecting type of CD image and using that to make apt-setup smarter

2006-11-17 Thread Goswin von Brederlow
Joey Hess <[EMAIL PROTECTED]> writes: > Goswin von Brederlow wrote: >> You can install from netinst without networking to get just a base >> system. > > That's a point. > >> Also don't forget that basically everybody wants to use a >> mirror for security no matter what image type he uses. > > That

Re: [RFC] Detecting type of CD image and using that to make apt-setup smarter

2006-11-19 Thread Helmut Wollmersdorfer
Goswin von Brederlow wrote: Ok, slightly different point: When etch R1 comes out people will still install R0 and want the updates from the mirror. Which can have a very bad effect: In October 2005 I installed a sarge-R0-netinst.iso using a nearby mirror for additional packages. But the secu

Re: [RFC] Detecting type of CD image and using that to make apt-setup smarter

2006-11-23 Thread Frans Pop
On Tuesday 21 November 2006 18:14, Steve McIntyre wrote: > H. I've been working on a slightly different setup in my devel > branch - specifying the type of media up-front instead of the size, > then setting the size from there. Same overall effect, just slightly > different code. Mine in CONF.s