Re: Automatic setup of partitions

2005-08-23 Thread Gaby vanhegan
From Nick Holland: 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

Re: Automatic setup of partitions

2005-08-23 Thread Stuart Henderson
After assigning a default disklabel (to a blank disk), can I just feed disklabel the partition information? ie, just this part: pipe into disklabel -E, perhaps?

Re: Automatic setup of partitions

2005-08-23 Thread Nick Bender
Here's a snippet of something I've been working on along the same lines - this is /bin/csh syntax, and works on raid0 but should work on regular partitions as well: echo get raid size... @ r_tot = `disklabel -p g raid0 | awk '/total bytes/ { print int($3) }'` @ r_root = 1; @ r_tot -= $r_root @

Automatic setup of partitions

2005-08-16 Thread Gaby vanhegan
Hi, I am still working on a nice automated installation CD system. It is partially a custom boot CD and partially a site36.tgz file that installs all the relevant packages, then does a scripted restoration from out backup server. It's intended for bare-metal restores in the event of

Re: Automatic setup of partitions

2005-08-16 Thread Nick Holland
Gaby vanhegan wrote: Hi, I am still working on a nice automated installation CD system. It is partially a custom boot CD and partially a site36.tgz file that installs all the relevant packages, then does a scripted restoration from out backup server. It's intended for bare-metal