: make bootfloppy 1
: 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 "boot#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/cpio
/bin/cp
/bin/mv
/bin/ln
/bin/sync
/bin/dd
/bin/telinit
/bin/find
/bin/rm
/bin/chmod
/etc
/etc/mount
/etc/umount
/etc/fsck
/etc/format
/etc/init
/etc/mkfs
/etc/labelit
/etc/uadmin
/etc/time
/etc/sizepart
/etc/layout
/etc/ib
/etc/rbuf
/etc/tp
/usr
/lib
/mnt
!
sync; sync; sync;
mkdir /mnt/tmp
cp $BOOT ioctl.syscon profile TIMEZONE passwd group fstab checklist \
   layout.* /mnt/etc
cp inittab.s /mnt/etc/inittab
cp inittab /mnt/etc/inittab.m
cp setup.t1 /mnt/bin/setup
cp setup.t2 setup.3 /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
