: makes a bootfloppy with more stuff on it
: on cross development system

BDEV=/dev/rboott0
FSDEV=/dev/boot
RFSDEV=/dev/rboot
BOOT=../uts/boot/boot.hd
KERNEL=../uts/iAPX286/unix.f

: install boot sector and boot

format -f 0 -l 4 -i 1 /dev/rboott0
format /dev/rboot

ib -d f -b $BOOT -o boot -s bootsec.f
dd if=bootsec.f of=$BDEV
dd if=boot of=$BDEV seek=1
sync ; sync ; sync
mkfs $FSDEV 1400
sync; sync; sync

fsck $FSDEV
sync ; sync ; sync

labelit $RFSDEV mnt "debug#1"
sync ; sync; sync

mount $FSDEV /mnt

cp $KERNEL /mnt/unix
sync; sync; sync

cpio -pvduma /mnt <<!
/dev
/dev/dsk
/dev/rdsk
/bin
/bin/mkdir
/bin/rsh
/bin/sh
/bin/su
/bin/stty
/bin/sync
/bin/dd
/bin/telinit
/bin/ls
/bin/rm
/bin/od
/etc
/etc/mount
/etc/umount
/etc/fsck
/etc/fsdb
/etc/passwd
/etc/init
/etc/mkfs
/etc/labelit
/etc/layout
/etc/sizepart
/etc/uadmin
/usr
/lib
/tmp
/mnt
/tmp
!
sync; sync; sync;
cp ioctl.syscon profile TIMEZONE group /mnt/etc
cp inittab.s /mnt/etc/inittab
cp /local/bd /mnt/bin
sync; sync; sync
> /mnt/etc/mnttab
sync; sync; sync
: make devnodes on boot floppy

cp dev.mk /mnt/dev
(cd /mnt/dev ; make -f dev.mk bootfloppy )

sync; sync; sync
umount $FSDEV
sync; sync; sync;
fsck $FSDEV
