Subject: Re: problems with (specific) IDE support in 1.6ZE
To: Malcolm Herbert <mjch@mjch.net>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 12/08/2003 09:18:45
This is a multi-part message in MIME format.
--------------010500030509050706040307
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Malcolm Herbert wrote:
> Managed to compile 1.6ZG and create a release CD (non-bootable,

Try the attached script, I'm using that to create my installation CDs.

# cd /usr/pkgsrc/sysutils/cdrecord
# make update

# cdrom status
# cdrom erase
# cdrom image /var/tmp/releasedir /var/tmp/netbsd.iso
# cdrom burn /var/tmp/netbsd.iso

Martti

--------------010500030509050706040307
Content-Type: text/plain;
 name="cdrom"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="cdrom"

#!/bin/sh
#
# Author: Martti Kuparinen <martti.kuparinen@iki.fi>
#
# $Id$
#

MKISOFS="mkisofs"
CDRECORD="cdrecord -dev /dev/rcd0d"

usage() {
	cat << EOF

Usage: `basename $0` command

where command is:

	status				Show the drive status
	erase				Erase the CD-RW disk
	image srcdir output.iso		Create an ISO image
	burn output.iso			Burn the ISO image

EOF
	exit 0
}

status() {
	${CDRECORD} -checkdrive
	exit $?
}

erase() {
	${CDRECORD} blank=fast
	exit $?
}

image() {
	[ $# -ne 3 ] && usage
	BOOT="-b i386/installation/floppy/boot-big.fs -c boot.catalog"
	[ ! -f "${2}/i386/installation/floppy/boot-big.fs" ] && BOOT=

	${MKISOFS} -o "${3}" ${BOOT} -l -J -R -L "${2}"
}

burn() {
	[ $# -ne 2 ] && usage
	${CDRECORD} "${2}"
	exit $?
}

[ $# -eq 0 ] && usage

case "${1}" in
	status)
		status $*
		;;
	erase)
		erase $*
		;;
	image)
		image $*
		;;
	burn)
		burn $*
		;;
	*)
		usage
		;;
esac

--------------010500030509050706040307--