Date: Thu, 27 Aug 2020 11:19:59 -0500 From: Kyle Evans <kevans@freebsd.org> To: Andriy Gapon <avg@freebsd.org> Cc: Cy Schubert <Cy.Schubert@cschubert.com>, Cy Schubert <cy@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all <svn-src-all@freebsd.org>, svn-src-head <svn-src-head@freebsd.org> Subject: Re: svn commit: r364817 - head/libexec/rc/rc.d Message-ID: <CACNAnaHw-QM_nFZ%2BjhLwjdUEg9WceybhhcBep6oiiNv-EBH6cQ@mail.gmail.com> In-Reply-To: <5e96ff14-1d81-c42f-21f6-1ae55aa9ce76@FreeBSD.org> References: <202008261313.07QDDwRm040119@repo.freebsd.org> <7e55d429-482b-2277-b340-2b85c687440e@FreeBSD.org> <202008271350.07RDoGqn055838@slippy.cwsent.com> <202008271354.07RDsTeW084744@slippy.cwsent.com> <202008271403.07RE3U56090900@slippy.cwsent.com> <CACNAnaGNJBcBp4tpUL5EK772BwAC02R_dQCMcohqHnzQ50aboA@mail.gmail.com> <CACNAnaFbFd%2BsRigaO5W88LFYXDKgsJC%2BU5rYXZFMqUgMiad4TQ@mail.gmail.com> <5e96ff14-1d81-c42f-21f6-1ae55aa9ce76@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 27, 2020 at 10:59 AM Andriy Gapon <avg@freebsd.org> wrote: > > On 2020-08-27 17:06, Kyle Evans wrote: > > On Thu, Aug 27, 2020 at 9:05 AM Kyle Evans <kevans@freebsd.org> wrote: > >> > >> On Thu, Aug 27, 2020 at 9:03 AM Cy Schubert <Cy.Schubert@cschubert.com> wrote: > >>> > >>> What would you suggest in this case, where /etc/zfs/zpool.cache is newer > >>> than /boot/zfs/zpool.cache? > >>> > >>> slippy$ lh /boot/zfs/zpool.cache /etc/zfs/zpool.cache > >>> -rw-r--r-- 1 root wheel 4.6K Aug 25 07:19 /boot/zfs/zpool.cache > >>> -rw-r--r-- 1 root wheel 4.7K Aug 27 06:20 /etc/zfs/zpool.cache > >>> slippy$ > >>> > >>> Something like, for I in $(ls -t /etc/zfs/zpool.cache > >>> /boot/zfs/zpool.cache) with the break? > >>> > >> > >> /etc/zfs/zpool.cache is the new location and should generally be > >> favored if it exists, I reckon. > > > > I retract the above. :-) ls -t makes sense. > > > > I actually was about to agree with your first suggestion. > I think it's the correct long-term solution, but it kind of depends on what we're thinking now- if we expect one might test-boot a disk on an older FreeBSD/ZFS that's still using /boot, there's a chance it will contain the more recent data.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaHw-QM_nFZ%2BjhLwjdUEg9WceybhhcBep6oiiNv-EBH6cQ>