> The problem arises when, if going on to a brand new machine, that
the
> disk size may be different than the original it is restoring. As
> part of the installer (in the OpenBSD install environment, booted
off
> an openbsd installer CD) I'd like to read the size of the disk and
> partition the disk accordingly. would I need to generate all of
this
> information?
Using your strategy, you would have to generate the info.
Here's a (I think) better idea...
Rather than trying to partition out percentages, just put in what you
need...
/ 100M
swap 512M
/usr 4G
/var 1G
/tmp 100M
...
and so on.
And (here's the shocker) leave the REST OF THE DRIVE UNALLOCATED!