[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#606227: addining multiple issue (was: Re: cdset broken)



George Danchev writes:
>  On Thu, 30 Dec 2010 15:41:47 +0000, Steve McIntyre <steve@einval.com>
> 
>  wrote:
> > On Thu, Dec 30, 2010 at 11:09:56PM +1300, Philip Charles wrote:
> >>On Thu, 30 Dec 2010, you wrote:
> >>> Hi Philip,
> >>> 
> >>> On Thu, Dec 30, 2010 at 10:33:32PM +1300, Philip Charles wrote:
> >>> >When an additional discs of an installation disc set is scanned
> >>> 
> >>> the
> >>> 
> >>> >follow appears
> >>> >
> >>> >"The CD or DVD with the following label has been scanned"
> >>> >
> >>> >			[blank line]
> >>> >
> >>> >The result is the same if one attempts to scan other discs of the
> >>> 
> >>> set
> >>> 
> >>> >"Go back"  moves one back to "configure apt" and the system locks
> >>> 
> >>> up.
> >>> 
> >>> >The current weekly build i386 and amd64 iso images were used.
> >>> 
> >>> Both CD
> >>> 
> >>> >and DVD images.
> >>> 
> >>> Hmmm. What does .disk/info say on those discs?
> >>
> >>Debian GNU/Linux testing "Squeeze" - Official Snapshot i386 CD
> >>
> >> Binary-2
> >>
> >>20101227-19:42
> >>
> >>All correct
> >>
> > Ok, that's odd. I'm not sure where to go next to debug that,
> > then. Any of the d-i folks with suggestions?
> 
>  Hi Steve,
> 
>  It seems that an issue with similar symptoms of 'missing label in
>  menus' and
>  'installation hanged later on' have already been reported on Dec 07 and
>  was claimed
>  to be reproducible, though I haven't managed to check that myself.
> 
>  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606227

Some more info to the multiple-cd issue (#606227, #602421, #607467...) 
gathered with the help of elmig from #debian-boot.

The trouble appears to come from:

http://svn.debian.org/wsvn/d-i/trunk/packages/apt-setup/generators/41cdset

1) The file .disk/cd_type is only present on the 1st CD; and the script exits 
quite early while walking additional discs (btw, .disk/cd_type is not present 
on CD>1 with release 5.0.7 images, too).

if [ ! -e /cdrom/.disk/cd_type ] || [ ! -e /var/lib/install-cd.id ]; then
        exit 0
fi
# multi-arch CDs have cd_type 'non_complete'
# KDE/Xfce CDs and multi-arch DVDs have '/single' postfix in cd_type
cd_type=$(cat /cdrom/.disk/cd_type)
if [ "$cd_type" != full_cd ] && [ "$cd_type" != dvd ]; then
        exit 0
fi


I'm not sure whether lack of .disk/cdtype on CD>1 is intentional; it would 
rather seem like a bug to me.


2) Next, apt-setup uses apt-cdrom ident to identify the additionally supplied 
CDs. According to elmig from #debian-cd, apt-cdrom from debian 5.0.7 release 
correctly scans squeeze discs, while apt-cdrom from squeeze's cdrom only 
detects the checksum on the second disc. This change seems relevant:

apt (0.8.4) unstable; urgency=low

  * apt-pkg/contrib/cdromutl.cc:
    - if apt-cdrom is used on writable media (like usb-sticks), do
      not use the root directory to identify the medium (as all 
      changes there change the ident id). Use the .disk directory 
      instead

-- 
pub 4096R/0E4BD0AB <people.fccf.net/danchev/key pgp.mit.edu>



Reply to: