Subject: pkg/8011: mkisofs generates bad images: corrupted files
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thesing@cs.uni-sb.de>
List: netbsd-bugs
Date: 07/16/1999 07:35:41
>Number:         8011
>Category:       pkg
>Synopsis:       mkisofs builds ISO images in which files are corrupted and differ from the original (NetBSD/i386)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 16 07:35:00 1999
>Last-Modified:
>Originator:     Stephan Thesing
>Organization:
Saarland University, Compiler Research Group
>Release:        NetBSD-current Jun 18 1999
>Environment:
System: NetBSD gargoyle.cs.uni-sb.de 1.4D NetBSD 1.4D (Gargoyle) #0: Fri Jun 18 11:35:16 CEST 1999 root@gargoyle.cs.uni-sb.de:/usr/src/sys/arch/i386/compile/Gargoyle i386

mkisofs-1.11.3, pkgsrc version May 7 1999


>Description:
	When building an ISO 9660 image of the NetBSD-1.4 release,
 with binary and source archives in a directory 'sets', the image
 includes only the first four files in that directory correctly, all other
 files are corrupted in the image.
 
 This does also happen with  mkisofs-1.12b5, build from sources (no NetBSD 
  patches)

 This does NOT happen on Linux, with mkisofs-1.12b4.

     
>How-To-Repeat:
  mkdir NetBSD NetBSD/sets
  gather the 1.4 binaries,sources in NetBSD/sets, copy install floppy 
  boot.fs to NetBSD/boot.fs,

  type 
    mkisofs -P "NetBSD Foundation" -A "NetBSD 1.4" -b boot.fs -c boot.catalog -a -r -T -o cdimage.iso NetBSD

  burn the image to CD, or mount it via vnconfig -c vnd0 cdimage.iso 2048/100/1/738
  mount -tcd9660 /dev/cd0a (or /dev/vnd0a) /cd

  do a diff of /cd/sets/*.tgz NetBSD/sets/*.tgz

  remark that the fifth, sixth, ... files differ

  This remains true, when making an image with fewer files (e.g. when
   removing the first file, then still the fifth file in the image is corrupted,
   which was the sixth file in the original setting, while the fourth file, 
   which was the first corrupted file in the former case, is now uncorrupted)

  The corruption does also happen without making the image bootable (-b ..)
  The corruption does also happen without the -r , -T flags...

  I don't know, if this happens too on other architectures than i386.

>Fix:
 Workaround: run mkisofs on a Linux box :-(
>Audit-Trail:
>Unformatted: