Hello Ken,
On 28-10-10 12:46, Kenneth R Westerback wrote:
> Perhaps a bit more context, like describing your vnd creation process, etc.
Our script does roughly:
----
dd if=/dev/zero of=disk.img count=...
vnconfig -c svnd0 disk.img
fdisk -e svnd0
reinit, update, [optional: create FAT32 partition], write
disklabel -E svnd0
create 'a'
newfs /dev/rsvnd0a
mount -t ffs -o rw /dev/svnd0a /mnt
cp bsd.rd /usr/mdec/boot /mnt
/usr/mdec/installboot -r /mnt/boot /usr/mdec/biosboot svnd0
umount
vnconfig -u
dd if=disk.img of=/dev/sd1c
----
Once you know about 'installboot's tricky undocumented assumption, you
can also work around it by using the 'e' command in 'disklabel -E' to
some other disk type, e.g. SCSI, or making a custom entry in
/etc/disktab and using 'disklabel -w'.
But patching that assumption out is nicer.
Does that help?
+++chefren