Re: How to make /etc/fstab "portable"?

2016-02-18 Thread Ignatios Souvatzis
Hi, On Mon, Feb 08, 2016 at 12:03:57PM +0100, Benny Siegert wrote: > This may be a stupid question but: Is there a way to make the entry > for the root filesystem in /etc/fstab just match whatever the kernel > used as the root FS? use /kern/rootdev, after mounting kernfs on /kern Caveat: this

Re: How to make /etc/fstab "portable"?

2016-02-17 Thread Ryo ONODERA
Hi, Thank you very much for your explanation! It is very interesting. Could you write this to the NetBSD guide? Thanks again. From: mlel...@serpens.de (Michael van Elst), Date: Mon, 8 Feb 2016 18:10:29 + (UTC) > ryo...@yk.rim.or.jp (Ryo ONODERA) writes: > >>However I have no experience

How to make /etc/fstab "portable"?

2016-02-08 Thread Benny Siegert
Hi! This may be a stupid question but: Is there a way to make the entry for the root filesystem in /etc/fstab just match whatever the kernel used as the root FS? I prepared a NetBSD image using Anita. When I transfer it to a different hypervisor, the root FS is on sd0a, not wd0a, so the boot

Re: How to make /etc/fstab "portable"?

2016-02-08 Thread Ryo ONODERA
Hi, From: Benny Siegert , Date: Mon, 8 Feb 2016 12:03:57 +0100 > Hi! > > This may be a stupid question but: Is there a way to make the entry > for the root filesystem in /etc/fstab just match whatever the kernel > used as the root FS? > > I prepared a NetBSD image using

Re: How to make /etc/fstab "portable"?

2016-02-08 Thread coypu
Might be interesting to you https://mail-index.netbsd.org/tech-userlevel/2013/03/13/msg007449.html --

Re: How to make /etc/fstab "portable"?

2016-02-08 Thread Michael van Elst
ryo...@yk.rim.or.jp (Ryo ONODERA) writes: >However I have no experience about non-GPT disk. >And I do not understand naming rule about non-GPT disk partitions. There are two cases: Without DKWEDGE_METHOD_BSDLABEL There are no wedges for this disk, but NAME matches dk_name +

Re: How to make /etc/fstab "portable"?

2016-02-08 Thread Greg Troxel
mlel...@serpens.de (Michael van Elst) writes: > This doesn't help for a 'portable' name. You can only have names if you > use wedges and you must assign a name to be 'portable', i.e. independent > of the driver name. > > I.e.: you use a kernel with DKWEDGE_METHOD_BSDLABEL, use the disklabel >