PLATFORM="i386-qemu"
INSTALL_IMAGE='NetBSD-6.1.5-i386.iso'
INSTALL_IMAGE_URL='ftp://iso.fr.netbsd.org/pub/NetBSD/NetBSD-6.1.5/iso/NetBSD-6.1.5-i386.iso'
# torrent: http://ftp.netbsd.org/pub/NetBSD/images/6.1.5/NetBSD-6.1.5-i386.iso.torrent
SETUP_IMAGE='setup-netbsd.iso'
SYSTEM_IMAGE='wd0.img'
DIST_IMAGE='floppy.img'
DISTFILES="
http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
http://ftp.gnu.org/gnu/make/make-3.81.tar.gz
http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz
http://www.cpan.org/src/5.0/perl-5.18.2.tar.gz
http://www.haskell.org/hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz
http://www.erlang.org/download/otp_src_R16B03-1.tar.gz
http://code.call-cc.org/releases/4.8.0/chicken-4.8.0.5.tar.gz
http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
"
if [ "x$DISTREPO_ROOT" = "x" ]; then
DISTREPO_ROOT="https://github.com/catseye/"
fi
DISTREPOS=`cat skel/catseye.catalog`
install_instructions() {
cat <<EOF
* At the boot prompt, select "1. Install NetBSD"
* After it boots, select a language for installation messages, and a keyboard type.
* At the next menu, select "Install NetBSD to hard disk". Then "yes".
* At the "Select your distribution" menu, select "Custom installation".
* At the next menu, arrow up to "Compiler Tools" and hit Enter to select it.
Then arrow back down and select "Install selected sets".
* This is the correct geometry.
* Use the entire disk.
* Yes, install the NetBSD bootcode.
* Use existing partition sizes. Partition sizes ok. Name is irrelevant. Yes, proceed.
* At "Bootblocks selection": Use BIOS console.
* Install from CD-ROM.
* When that's done - don't bother configuring anything.
* When back at the main menu, select "Exit Install System" and type 'shutdown -p now'
EOF
}
setup_instructions() {
cat <<EOF
* Login as root (which will not have a password. You may or may not wish to give it one,
depending on your security needs.)
* As root, run:
mount /cdrom
cp /cdrom/setup-netbsd.sh .
. ./setup-netbsd.sh
* Follow the instructions in the script.
* Once it is finished, log out and log in again as 'user'. (You may or may not wish to
run passwd to give user a password at this point, depending on your security needs.)
* Then run:
sh /cdrom/populate-shelf.sh 2>&1 | tee populate-log.txt
sh /cdrom/build-shelf.sh 2>&1 | tee build-log.txt
EOF
}