On 2017-01-26, Tinker <[email protected]> wrote:
> When reaching the "Which disk is your root disk?" question in the
> installer, it will suggest the first physical disk available, normally
> sd0 or wd0 .
>
> then, it could be a good idea to simply prefill this question with "sd1"
> (the softraid's device name) instead of sd0.
>
> If the user mistakenly would go on with sd0 he'd wipe his softraid setup
> and bring the system into an inconsistent state.
Are you talking about (I)nstall or (U)pgrade?
Upgrade doesn't issue any destructive fdisk/disklabel/newfs commands,
so there is no way to "wipe [one's] softraid setup". Here's what
happens if you just hit RETURN:
...
Terminal type? [vt220]
Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd0]
sd0 is not a valid root disk.
Available disks are: sd0 sd1.
Which disk is the root disk? ('?' for details) [sd1]
Checking root filesystem (fsck -fp /dev/sd1a)...OK.
...
--
Christian "naddy" Weisgerber [email protected]