Re: mount -o union rekursiv

From: Oliver Fromme <olli(at)secnetix.de>
Date: Mon, 17 Mar 2003 21:32:33 +0100 (CET)

Clemens Hermann <haribeau(at)gmx.de> wrote:
> gibt es eine Möglichkeit, mount_nfs davon zu überzeugen, einen union-mount
> rekursiv durchzuführen?

Nein, das geht nicht. Es wirkt nur auf das Wurzelverzeich-
nis des Mounts. Eine Alternative wäre UNIONFS, aber damit
gibt es bekannte Stabilitätsprobleme.

> unter /usr/jails/jail1 residiert ein jail, welches die Welt (ab / ) per nfs
> loopback mount bekommt. /usr/jails/jail1/usr/local/etc/customconfig.cf ist
> eine spezielle Konfigurationsdatei, die nur jail1 braucht. Mit
> einem "mount -o union localhost:/export /usr/jails/jail1" verschwindet die
> Konfigurationsdatei aber, weil das leere /usr/local (ohne etc) aus /export
> gemounted wird und die Konfigurationsdatei verdeckt.

Das Problem habe ich mit Symlinks gelöst.

Z.B. gibt es in den Jails ein /etc und ein /etc.local (ana-
log /var und /var/local). /etc ist shared und read-only
gemountet. Alles, was darin jail-spezifisch und/oder ver-
änderbar sein muß, ist per Symlink nach /etc.local verlegt.
(Dazu mußte ich allerdings pw patchen, damit es nicht ver-
sucht, seine Temporärdateien in /etc anzulegen, was relativ
behämmert ist. Wenn die Benutzer ihre passwd-Daten nicht
selbst ändern können sollen, ist das natürlich egal.)

Wie Du die Verzeichnisse nennst, ist natürlich Dir überlas-
sen (im nachhinein finde ich *.local eher suboptimal, bin
aber zu faul, das jetzt überall wieder zu ändern).

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"In headlines today, the dreaded killfile virus spread across the
country adding aol.com to people's usenet kill files everywhere.
The programmer of the virus still remains anonymous, but has been
nominated several times for a Nobel Peace Prize." -- Mark Atkinson
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 17 Mar 2003 - 21:32:44 CET

search this site