installboot arguments have changed for OpenBSD 5.5
set offset to 64 like openbsd does, for potential alignment fixup on
4K drives, or not.
make clean after crunchgen, this helps with passing the time_t bump
and will help other times
stage1 and stage2 need to be specificed otherwise they must exist on /usr/mdec in flash (and they won't)
wrong place, we really don't know WTF is going on with the location of a vnd relative to 4K disk sectors right?
set offset for growimg/mkboot to 64 by default like real openbsd does,
for potential sector alignment help
change mfs everywhere to tmpfs now that the superior fs is an option
this also changes mfs/tardir sizes from 512-byte blocks to 1-byte blocks
(or mbyte-sized allocations as used here, 16M, 64M, etc)
vndsize will be in megabytes now, too, just like the tmpfs sizes
no more 512-byte blocks in rc.flashrd.sub!
put a random seed in /etc/random.seed on the flash during initial flashrd
cut and on each boot
random seed perm 600 and silence rc output
look for the presence of random.seed file instead of /etc directory on flash when deciding to create random seed
this should create the random seed after an upgrade
duh, create random seed file before trying to chmod 600
Eric Radman has a better idea :)
Second try at 64 sector offset for the first partition on vnd image.

I'm not sure this really buys us anything (as far as SSD/4K sector alignment) on a vnd image as opposed to a raw disk. But at least the script allows for setting different initial offsets !=0 now.
only reboot if 'onetime' files are actually extracted, otherwise, why ????
this was annoying the piss out of me with the new onetime script
the new onetime script still needs some more thought and documentation
use same spacing convention as other flashrd scripts
assume /bin is part of $PATH
version 1.5
put a new random seed on flash when growimg is used, beats
using an old one if you can help it...
1. Get rid of all vestiges of C/H/S user interface and replace with -l <blocks>
(sectors) for both flashrd and growimg. CHS values are placeholders,
ignored for most purposes

2. Use new fdisk -l <blocks> option whenever the target is an image.
No CHS information will be saved on the image MBR when -l is used ("forces"
LBA mode). In a future release I may switch all fdisk invocation to use -l.
REQUIRES March 3rd or later 5.5 snapshot, OR rebuild fdisk from
recent sources prior to using flashrd/growimg!

3. Set cpg to 1 on disklabels (the kernel has been doing this for a while
anyways, might as well catch up to reality)

4. Block size can be specified to flashrd, growimg with -l blocks -b bytes
but this is not documented and NOT expected to work (just for diddling
at this time, it's not at all clear that fdisk or the OpenBSD kernel is
fully ready for block sizes != 512 bytes although perhaps disklabel and
newfs could be designed for 4K blocks on some devices while fdisk still
uses a sector count representing 512 byte blocks)

5. Stop trying to re-use ANY old disklabel information when converting
images with growimg. (Not sure how I ever thought keeping this was a worthy
idea.)