From owner-freebsd-questions@FreeBSD.ORG Tue Apr 6 21:29:56 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE287106564A for ; Tue, 6 Apr 2010 21:29:56 +0000 (UTC) (envelope-from dan.naumov@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id CA61E8FC0A for ; Tue, 6 Apr 2010 21:29:55 +0000 (UTC) Received: by bwz8 with SMTP id 8so333587bwz.3 for ; Tue, 06 Apr 2010 14:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=4LMPqOrByWVSdWJx/of15oO+U5EdcaUXV3erGlZIrkY=; b=cqw0Ug0b3WuquPTURC2gPFfuTOmFVXVlGHw/G9ix7XZBPapBn2W57ZCm6pPd6J32+B NT13HyLbHwl+Dxj5ZWg17oeLVayJGi3DERkqlCxBEENlILq3RzLYPDBTnxXdkUJkcxDW eLkg6EJJaixghir0Fya+zIxampLRQtxo0FrZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gG3T0CpcncMFqR50zJJAoEnLS7pQG0zggKWgGpK0TJTKFUAzL5NpSBz6x8wahTUo3F GadeNqKG4fyFDcZPBw9nSPw4aPLGj/FfVaw5qAvUzOszXNYV2qTMh+Mkot3he6FX86oY pPlCSx1RH6+HB4D7CYU7OWJJ6QOG6CzLV7mmY= MIME-Version: 1.0 Received: by 10.204.116.203 with HTTP; Tue, 6 Apr 2010 14:29:54 -0700 (PDT) Date: Wed, 7 Apr 2010 00:29:54 +0300 Received: by 10.204.134.70 with SMTP id i6mr8336751bkt.74.1270589394468; Tue, 06 Apr 2010 14:29:54 -0700 (PDT) Message-ID: From: Dan Naumov To: freebsd-questions@freebsd.org, freebsd-jail@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: bizarre mount_nullfs issue with jails / ezjail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 21:29:56 -0000 So, I want the basejail to only contain the world and link the ports tree from the host into each individual jail when it's time to update the ports inside them, but I am running into a bit of a bizarre issue: I can mount_nullfs /usr/ports elsewhere on the host just fine, but it doesn't work if I try to mount_nullfs it to /usr/ports inside the jail: mount_nullfs /usr/ports/ /usr/ports2 df -H | grep ports cerberus/usr-ports 34G 241M 34G 1% /usr/ports cerberus/usr-ports-distfiles 34G 0B 34G 0% /usr/ports/distfiles cerberus/usr-ports-packages 34G 0B 34G 0% /usr/ports/packages /usr/ports 34G 241M 34G 1% /usr/ports2 mount | grep ports cerberus/usr-ports on /usr/ports (zfs, local) cerberus/usr-ports-distfiles on /usr/ports/distfiles (zfs, local) cerberus/usr-ports-packages on /usr/ports/packages (zfs, local) /usr/ports on /usr/ports2 (nullfs, local) mount_nullfs /usr/ports/ /usr/jails/semipublic/usr/ports mount_nullfs: /basejail: No such file or directory What is going on here? I also note that the error actually wants a /basejail on the host, which is even more bizarre: mount_nullfs /usr/ports/ /usr/jails/semipublic/usr/ports mount_nullfs: /basejail: No such file or directory mkdir /basejail mount_nullfs /usr/ports/ /usr/jails/semipublic/usr/ports mount_nullfs: /basejail/usr: No such file or directory Yet, this works: mkdir /usr/jails/semipublic/test mount_nullfs /usr/ports/ /usr/jails/semipublic/test umount /usr/jails/semipublic/test Any ideas? - Sincerely, Dan Naumov