Date: Mon, 30 Nov 2009 12:51:31 +0100 From: Ivan Voras <ivoras@freebsd.org> To: freebsd-hackers@freebsd.org Subject: Re: [patch] Improved jail fstab functionality inside rc.d (needs testers and review) Message-ID: <hf0bjr$3no$1@ger.gmane.org> In-Reply-To: <op.u35yya1v4534sa@localhost> References: <op.u35yya1v4534sa@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
Merijn Verstraaten wrote: > My apologies if these are the wrong lists for this sort of thing but it > was unclear to me where else to go with additions like this. > > I just finished hacking /etc/rc.d/jail to fix my two pet peeves, > currently the rc framework only accepts a single fstab file per jail and > (worse!) there is no way to specify the mountpoints in these fstab files > relative to the jails root. This makes sharing of mounts (for example > all my jails nullfs mounting the same ports tree) very cumbersome. > > This patch should allow you to specify multiple fstab files in the > jail_fstab and jail_<name>_fstab variables and mount these in order. In > addition the patch mangles the fstab files in such a way that any > mountpoint in the fstab files starting with the text "ROOT" will have > "ROOT" replaced with the jails rootdir. For example the following > situation: > rc.conf: > jail_test_rootdir="/usr/jails/test" > jail_test_fstab="/usr/jails/fstab /usr/jails/fstab.test" Ah, so you want a single fstab file to be usable for multiple jails, which have identical fs structures. Nice idea.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hf0bjr$3no$1>