From owner-freebsd-questions@freebsd.org Wed Sep 20 06:18:57 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 00FB5E25299 for ; Wed, 20 Sep 2017 06:18:57 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D717D81925 for ; Wed, 20 Sep 2017 06:18:56 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: by mailman.ysv.freebsd.org (Postfix) id D644BE25298; Wed, 20 Sep 2017 06:18:56 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5D1AE25297 for ; Wed, 20 Sep 2017 06:18:56 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8A2A281924 for ; Wed, 20 Sep 2017 06:18:55 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 0BB51D7883; Wed, 20 Sep 2017 13:18:53 +0700 (ICT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1505888333; x=1507702734; bh=auQ00B6fA w4K0LVm8MafTrDrFp5HL47unzTbeaH1KA8=; b=momFrZqcXy0uv85zb78AzgBPI frMSI8GlVz0IuoJsaoEnljIwmUEdXTH0THFdQ5jjsUvSQi/jIOd7RvjtsHBqrqx8 GSgDtwkK9KANoxD+zuCqWi5SEmGxtG8UZaXWsR+Qa/6QbP4hm9Mnp+S9+TDFeKQI IGciZ3jPb2Uj08JdvY= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lBKcYnh63L83; Wed, 20 Sep 2017 13:18:53 +0700 (ICT) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 71B4ED7881; Wed, 20 Sep 2017 13:18:53 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id v8K6Ir7j002072; Wed, 20 Sep 2017 13:18:53 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Adam Vande More Cc: questions@freebsd.org Subject: Re: Mount devfs in a chroot'd environment at boot In-Reply-To: (message from Adam Vande More on Wed, 20 Sep 2017 00:51:56 -0500) Date: Wed, 20 Sep 2017 13:18:53 +0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2017 06:18:57 -0000 Thanks Adam, >> I am using FreeRadius as provided in the ports. It has an option to be >> chroot'd, but this option is not implemented in the default ports. >> >> In order to have FreeRadius staring, I need to mount devfs in the >> chroot'd environment, at boot, before FreeRadius is started. >> >> I would prefer to avoid mo0difying /usr/local/etc/rc.d/radiusd (because >> any upgrade of the port will overwrite my modifications), so how can I >> make something in /etc/rc.conf or /etc/rc.local that will mount devfs >> *before* radiusd is started? > man devfs.conf I read the man but saw nothing related to a: mount -t devfs devfs /var/chroot/freeradiusd/dev And I saw nothing related to how to ensure the proper order at startup. But in fact my question was stupid, I just have to add the mount in /etc/fstab Thank you, Olivier --