From owner-freebsd-questions@freebsd.org Wed Sep 20 05:31:00 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 A1B68E2351D for ; Wed, 20 Sep 2017 05:31:00 +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 83A07803D2 for ; Wed, 20 Sep 2017 05:31:00 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: by mailman.ysv.freebsd.org (Postfix) id 7FF61E2351C; Wed, 20 Sep 2017 05:31:00 +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 7FA1DE2351B for ; Wed, 20 Sep 2017 05:31:00 +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 34296803D1 for ; Wed, 20 Sep 2017 05:30:59 +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 654CAD7883; Wed, 20 Sep 2017 12:24:08 +0700 (ICT) Authentication-Results: mail.cs.ait.ac.th (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=cs.ait.ac.th 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 :subject:subject:from:from:received:received:received; s= selector1; t=1505885047; x=1507699448; bh=OaMmAglWF14LLUwkDyTVcY y1XZGat6s0/YBIK5tmwcA=; b=PgxT0h4y0h0fxKAi6NXPVMas2fI1N/BXG5QI4s VGmKg6f4JnPMQaWb4foLyR6O1eSCSEtf18mk208LGwyK1RmwchTtZ8N9NmhZgNPx BdmjIpNBmM/cBPCT6DYig5Sw1s5HS4oZLyZbNo5+lZB3bQPjXr3Fo7xeap0Y2HU4 km3eU= 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 Bp_8fIlBsZW5; Wed, 20 Sep 2017 12:24:07 +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 C2103D7881; Wed, 20 Sep 2017 12:24:07 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id v8K5O7so000327; Wed, 20 Sep 2017 12:24:07 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Olivier Cc: questions@freebsd.org Subject: Mount devfs in a chroot'd environment at boot Date: Wed, 20 Sep 2017 12:24:07 +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 05:31:00 -0000 Hi, 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? TIA, Olivier --