From 0aa9fdf0b485c3dd2c75107896da4bd37f3a5ada Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Thu, 11 Mar 2010 13:48:57 -0500 Subject: enable creation of kfreebsd ISOs (i have not gotten them to work with kvm yet) --- di-maker | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/di-maker b/di-maker index 04e4378..5a6d69c 100755 --- a/di-maker +++ b/di-maker @@ -44,18 +44,46 @@ case "$DISTRO" in ;; esac -( cd "$WORKDIR" && wget "$BASEPATH"/{linux,initrd.gz} ) +KERNEL=linux +INITRAMFS=initrd.gz +BOOTINSTRUCTIONS=" + linux /$KERNEL verbose -- console=ttyS0,115200n8 + initrd /$INITRAMFS +" + +case "$ARCH" in + kfreebsd-*) + # FIXME: this discards the requested SUITE, and just pulls the + # latest d-i, because dkg is lazy + SUITE=sid + KERNEL=kfreebsd.gz + BASEPATH="http://d-i.debian.org/daily-images/$ARCH/daily/monolithic/" + BOOTINSTRUCTIONS=' + # this set came from mini.iso + kfreebsd /kfreebsd.gz + kfreebsd_module /initrd.gz type=mfs_root + set kFreeBSD.vfs.root.mountfrom=ufs:/dev/md0 + set kFreeBSD.hw.ata.ata_dma=0 # needed for qemu hard disk # TODO: delete + set kFreeBSD.hw.ata.atapi_dma=0 # needed for qemu cd # TODO: 1 + + # this set came from http://jdc.parodius.com/freebsd/pxeboot_serial_install_7.html + set kFreeBSD.comconsole_speed="115200" + set kFreeBSD.console="comconsole" +' +esac + +( cd "$WORKDIR" && wget "$BASEPATH"/{$KERNEL,$INITRAMFS} ) mkdir -p "$WORKDIR/boot/grub" + cat > "$WORKDIR/boot/grub/grub.cfg" <