Subject: Re: toolchain/35370: installboot breaks with bootxx_cd9660 boot blocks
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 01/07/2007 18:30:02
The following reply was made to PR toolchain/35370; it has been noted by GNATS.

From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/35370: installboot breaks with bootxx_cd9660 boot blocks
Date: Sun, 7 Jan 2007 18:26:54 +0000

 On Sun, Jan 07, 2007 at 06:45:00AM +0000, dogcow@babymeat.com wrote:
 > >Number:         35370
 > >Category:       toolchain
 > >Synopsis:       installboot breaks with bootxx_cd9660 boot blocks
 
 > /home/dogcow/work/nbobj/tools/bin/nbinstallboot  -t raw  -mi386 \
 >     bootxx /home/dogcow/work/nbobj/dd/usr/mdec/bootxx_cd9660
 > nbinstallboot: Reading `bootxx': short read, 2048 bytes (should be 8192)
 > nbinstallboot: Set bootstrap operation failed
 
 It actually fails because that command is all wrong!
 The first 'file' argument is meant to be the disk image, expecting to
 be able to read 8k from there isn't unreasonable!
 
 In this case it seems to already be a copy of the bootxx_cd9660 image
 (freshly made by the makefile), which the 'installboot' program seems to be
 about to overwrite - presumably added in order to modify the boot parameters.
 This would be better done with 'installboot -e ...' which is designed to
 work with files as well as partitions.
 
 I'm about to change Makefile.bootcd.
 
 	David
 
 -- 
 David Laight: david@l8s.co.uk