On Sun, 6 Oct 2019 at 14:03, Rhialto <rhia...@falu.nl> wrote: > > On Sun 06 Oct 2019 at 13:46:03 +0200, orr721 wrote: > > Is there some way how to make the installation disk number > > agnostic? > > Indeed there is! (But it is relativly new and not well advertised; you > can find some documentation for it with `man getfsspecname`). > > In your /etc/fstab, you can use "ROOT." instead of the name of your > disk, and then follow it with the partition letter. "ROOT." stands for > the disk you booted from (or more precise, the disk where your / is). > > So instead of '/dev/sd0a' you would use 'ROOT.a', etc.
If you need to do this on older NetBSD systems you can setup a single element autoconfiguring raidframe device (eg raid6) and have root on raid6a - I've done that one NetBSD7 & 8. (If you are running a new enough release to have ROOT though, don't bother faffing with raidframe for this :-p) David