From owner-freebsd-stable@freebsd.org Tue Apr 19 10:40:06 2016 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 75C6DB14DF2 for ; Tue, 19 Apr 2016 10:40:06 +0000 (UTC) (envelope-from melissa-freebsd@littlebluecar.co.uk) Received: from filter.blacknosugar.com (filter.blacknosugar.com [212.13.204.214]) (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 3B9441099; Tue, 19 Apr 2016 10:40:05 +0000 (UTC) (envelope-from melissa-freebsd@littlebluecar.co.uk) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=littlebluecar.co.uk; s=dkim; h=Subject:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Mime-Version:Content-Type; bh=ulcPs4k/HPBSFKZU6a9Snq/v5e4CsQlP+FWJV9scaF8=; b=KhQ0w+NcsL7qVL1xSObhFZ6uD 9Jafd8VKZGAzJo4fSD5cLeFm1zWC9QyDkXRAw52JYimkbkqvBstwev8Zs3Q+ek3XpshkgkUAPrN7j 9Cz5o2SWsTaOr6P0eQ+X/UJxUW; Received: from [212.250.79.109] (helo=[192.168.6.47]) by filter.blacknosugar.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.86_2 (FreeBSD)) (envelope-from ) id 1asT4b-0008P5-Oc; Tue, 19 Apr 2016 11:40:02 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Melissa Jenkins In-Reply-To: <5716064E.3080005@grosbein.net> Date: Tue, 19 Apr 2016 11:39:57 +0100 Cc: freebsd-stable@freebsd.org, Edward Tomasz Napierala Content-Transfer-Encoding: quoted-printable Message-Id: <629567AE-280D-481A-833C-3946612D8381@littlebluecar.co.uk> References: <45B67BCE-540F-432A-9AA2-192B20312D27@littlebluecar.co.uk> <5715F73F.7050208@grosbein.net> <5716064E.3080005@grosbein.net> To: Eugene Grosbein X-Mailer: Apple Mail (2.3124) X-SA-Exim-Connect-IP: 212.250.79.109 X-SA-Exim-Mail-From: melissa-freebsd@littlebluecar.co.uk X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on filter.blacknosugar.com X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 Subject: Re: 10.3 and reboot -r (reroot) X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on filter.blacknosugar.com) X-Testing: Hello! X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2016 10:40:06 -0000 Will do - it behaves the same even without PXE. I believe the issue is that kern.proc.pathname does not exist on any of = my systems Mel > On 19 Apr 2016, at 11:19, Eugene Grosbein wrote: >=20 > CCing Edward Tomasz Napierala, "Root Remount" project contact. >=20 > On 19.04.2016 16:42, Melissa Jenkins wrote: >> My apologies: >>=20 >> [root@test:~]# sysctl -A kern.proc.pathname >> [root@test:~]# kenv vfs.root.mountfrom >> nfs:nfsserver:/bootenv/10.3 >> [root@test:~]# kenv vfs.root.mountfrom=3Dzfs:test/root_role >> vfs.root.mountfrom=3D"zfs:test/root_role" >> [root@test:~]# reboot -r >> [root@test:~]#=20 >>=20 >> Apr 19 09:35:28 test reroot: rerooted by melissa >> Apr 19 09:35:28 test init: failed to get kern.proc.pathname: No such = file or directory >> Apr 19 09:35:28 test init: reroot failed; going to single user mode >> Apr 19 09:35:28 test root: /etc/rc: WARNING: could not store hostuuid = in /etc/hostid. >> Apr 19 09:35:31 test root: /etc/rc: WARNING: failed to start dev >>=20 >> It actually doesn't do seem to either drop to single user mode or = actually kill anything off. If you reroot to the existing directory it = seems to panic though I don't have a crash file from this. >>=20 >> The machine has been booted from a vanilla 10.3 PXE boot. I've then = created a zfs file system on local disks, installed the operating system = in it and would like to 'restart the system into' this new file system. = Normally I'd use the init_script and init_chroot kenv flags but = rerooting seems cleaner and may allow chroots to work better >=20 > It seems, reroot currently does not work for PXE-booted systems. > You should fill a PR. >=20