On Thu, Mar 8, 2012 at 3:18 AM, Dmitrij D. Czarkoff <[email protected]> wrote:
> Though OpenBSD installer is not the main feature of OpenBSD for me (it
> is only used to install OS anyway), I wouldn't like it to change in any
> way now, as I just can't think of a way to make it better.
>
Sorry, hate to beat a dead horse... There is one use case where I
would like to see the installer enhanced:
I have a laptop with OpenBSD installed.
I want to install to a flash/USB drive, or SD card, or eSATA drive...
I start the laptop with boot > bsd.rd
Select (I)nstall
Eventually get to the question:
Available disks are: sd0 sd1 sd2
Which one is the root disk? (or 'done') [sd0]
At this point I usually say "oh crap", hit ^c, and go read the dmesg
or `disklabel sd1` to make sure I pick the right disk.
It would be nice if the installer would tell me a little something
about the available disks so I could pick the right one:
sd0: 238418MB, 512 bytes/sector, 488281250 sectors
sd1: 1907MB, 512 bytes/sector, 3905536 sectors
sd2: 3751MB, 512 bytes/sector, 7683072 sectors
Available disks are: sd0 sd1 sd2
Which one is the root disk? (or 'done') [sd0]
--- install.sub.orig Thu Mar 8 16:28:52 2012
+++ install.sub Thu Mar 8 16:30:24 2012
@@ -2134,6 +2134,9 @@
# Get ROOTDISK, ROOTDEV and SWAPDEV.
while :; do
+ for _dk in $(get_dkdevs | sed s,^$,none, ); do
+ dmesg |grep "$_dk:" |sed -n '$p'
+ done
ask_which "disk" "is the root disk" '$(get_dkdevs | sed s,^$,none, )'
[[ $resp == done ]] && exit
[[ $resp != none ]] && break