Date: Tue, 26 Apr 2011 11:18:06 +0300 From: Alexander Motin <mav@FreeBSD.org> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf Message-ID: <4DB67FBE.1050707@FreeBSD.org> In-Reply-To: <20110426080222.GG2472@garage.freebsd.pl> References: <CD028561-B550-4896-BE65-7C827BE6A34A@FreeBSD.org> <20110425134531.GA4391@garage.freebsd.pl> <50385B7B-7EC8-4BC3-8F88-83F9EB4096FB@bsdimp.com> <4DB5A166.9010302@FreeBSD.org> <67F62848-FAA3-4C46-A95A-DA7C82281898@bsdimp.com> <4DB5B0A9.4030805@FreeBSD.org> <20110426070020.GC2472@garage.freebsd.pl> <4DB6721B.3020600@FreeBSD.org> <20110426073517.GF2472@garage.freebsd.pl> <4DB67939.6080301@FreeBSD.org> <20110426080222.GG2472@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
On 26.04.2011 11:02, Pawel Jakub Dawidek wrote: > Now, what about fstab? There is a problem to figure out which disk we > booted from once we enter the kernel. I was wondering if we could detect > that someone is trying to mount root which from 'ad[0-9]+<X>' and > then we could scan all ada[0-9]+<X> looking for UFS file system and > /etc/fstab in there and / entry which matches vfs.root.mountfrom variable. > This should cover 99% of cases. 1% is for cases where another disk have > identical partitioning scheme and /etc/fstab file. There also might be > cases where someone defines vfs.root.mountfrom in /boot/loader.conf and > doesn't really use /etc/fstab. I think it will be unpredictable. Many disks may have s1a and especially s1d. What do you think about this: http://docs.freebsd.org/cgi/mid.cgi?4DB54BA9.5050901 ? I've found that zpool utility don't likes symbolic links, but except this and together with fixing hardcoding problem IMHO it looks not bad. -- Alexander Motin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DB67FBE.1050707>