Date: Fri, 5 Sep 2014 11:06:37 +0700 From: Victor Sudakov <vas@mpeks.tomsk.su> To: Adam Vande More <amvandemore@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: /etc on a separate filesystem ? Message-ID: <20140905040637.GB54562@admin.sibptus.tomsk.ru> In-Reply-To: <CA%2BtpaK0o-Pci2Bp%2B63=S_XTV1AM2rEQvS1%2B099xQTvy-uVY6oQ@mail.gmail.com> References: <20140904150739.GA42707@admin.sibptus.tomsk.ru> <CAHu1Y73Uv=mVpqUkGv5OvGtQj9hGK1bqx41q1RLzAipBymHQ_A@mail.gmail.com> <20140904153042.GA42968@admin.sibptus.tomsk.ru> <448ulz5ps3.fsf@be-well.ilk.org> <CA%2BtpaK3oxf=eCJnBGG9cVQx9EKOd8Dzd4re=2GEtGcb6cbMXnw@mail.gmail.com> <20140905030813.GA52942@admin.sibptus.tomsk.ru> <CA%2BtpaK0o-Pci2Bp%2B63=S_XTV1AM2rEQvS1%2B099xQTvy-uVY6oQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Adam Vande More wrote: > > > > > > > > > Michael Sierchio wrote: > > > > >> > Is it possible to keep /etc on a separate filesystem? > > > > >> No. /etc/fstab, among other things > > > > > > > > > > That's why I am asking. > > > > > > > > It kind of depends on *why* you're asking. > > > > > > > > > Sounds an awful lot like an XY problem to me. > > > > That's fair. Let me explain my purpose. I have created a LiveUSB for > > testing and hardware diagnostics with dualboot: FreeBSD amd64 and > > i386. I was looking for a way for them to share a common /etc. > > > > If there is no easy way, I can rsync changes of /etc from one system > > to another on shutdown, or find something else. > > > That is a better description. If this tool is going to be confined to a > network you have control over, doing a diskless mount on /etc may be > sufficient. Otherwise unison does FS synchronization, What FS synchronization? Remember, I don't need to synchronize the whole root fs, just /etc. > or you could take a > more targeted approach with rcs(1). Whatever means can be used to synchronize two copies of /etc (certainly more than one), they are still two copies which can fall out of sync eventually. One common copy would be a KISS solution. Who exactly reads /etc/fstab? The kernel, I suppose, before it even looks for init? Can the kernel be modified to look for it somewhere else, like in /boot/fstab ? Or could I just redefine vfs.root.mountfrom to a small partition with a minimum set of files, and then have init look for /etc/rc in the real /etc ? -- Victor Sudakov, VAS4-RIPE, VAS47-RIPN sip:sudakov@sibptus.tomsk.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140905040637.GB54562>