From owner-freebsd-stable@freebsd.org Thu Jul 16 23:53:42 2015 Return-Path: Delivered-To: freebsd-stable@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 C7C5A9A326E for ; Thu, 16 Jul 2015 23:53:42 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from m2.gritton.org (gritton.org [162.220.209.3]) (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 A6F6910AD for ; Thu, 16 Jul 2015 23:53:42 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from m2.gritton.org (gritton.org [162.220.209.3]) by m2.gritton.org (8.14.9/8.14.9) with ESMTP id t6GNfKJw012298; Thu, 16 Jul 2015 17:41:20 -0600 (MDT) (envelope-from jamie@freebsd.org) Received: (from www@localhost) by m2.gritton.org (8.14.9/8.14.9/Submit) id t6GNfK0u012297; Thu, 16 Jul 2015 17:41:20 -0600 (MDT) (envelope-from jamie@freebsd.org) X-Authentication-Warning: gritton.org: www set sender to jamie@freebsd.org using -f To: freebsd-stable@freebsd.org Subject: Re: jail: /etc/rc: cannot create /dev/null: Operation not supported X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 16 Jul 2015 17:41:19 -0600 From: James Gritton In-Reply-To: <20150715215253.Horde._Uobbflf4-5sp0TjL7DgCrc@webmail.bsdlabs.com> References: <20150715215253.Horde._Uobbflf4-5sp0TjL7DgCrc@webmail.bsdlabs.com> Message-ID: X-Sender: jamie@freebsd.org User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 23:53:42 -0000 On 2015-07-15 13:52, Per olof Ljungmark wrote: > FreeBSD 10.2-PRERELEASE #0 r284949 > > The jail can be started, but when /etc/rc is executed: > > root@mar:/ # sh -x /etc/rc > + stty status ^T > /etc/rc: cannot create /dev/null: Operation not supported > + trap : 2 > + trap 'echo '\''Boot interrupted'\''; exit 1' 3 > + HOME=/ > + PATH=/sbin:/bin:/usr/sbin:/usr/bin > + export HOME PATH > + [ '' = autoboot ] > + autoboot=no > + _boot=quietstart > + /sbin/sysctl -n vfs.nfs.diskless_valid > /etc/rc: cannot create /dev/null: Operation not supported > ... > > I have done the procedure several times before but never saw this one > before and don't know how to get around it. > > Ideas anyone? Any recent changes that can show up like the above? > > Thanks! If it's trying to create /dev/null, I assume that the jail's /dev isn't mounted when /etc/rc is running. Do you have mount.devfs set in the jail.conf, or jail_foo_devfs_enable in rc.conf (depending on your configuration)? For that matter, can you tell if the jail's /dev is mounted? - Jamie