On Wed, 17 Sep 2008 13:18:38 -0700, Joe S wrote
> Let me clarify what I'm trying to do.
> 
> I'm not trying to install OpenBSD on a flash drive.
> 
> I'm trying to install OpenBSD on a laptop, with the flash drive being
> the bootable source of the installation, much like a CD.
> 
> I can't PXE and I'm trying to find a way to avoid burning CD's,
> although I may buy some CD-RW's if I have to.

Ah... now I understand.

Warning:  I just typed it up.  Things may fail, as I have not tested it.

Assumption: sd0 is your stick.  You don't care about what's on it. 
Assumption: you're installing 4.3, and have the bootable cd image in your
local directory.  Change the script accordingly.

# mkdir in out
# vnconfig svnd0 cd43.iso
# mount /dev/svnd0c in
# fdisk -iy sd0
# disklabel -E sd0 <create an "a" partition>
# newfs sd0a
# mount -o async,noatime /dev/sd0a out
# (cd in; tar cf - .)|(cd out; tar xpf -)
# cp -p /usr/mdec/boot out
# rm out/etc/boot.conf
# /usr/mdec/installboot -v out/boot /usr/mdec/biosboot sd0
# umount in out
# vnconfig -u vnd0

Reply via email to