From owner-freebsd-hackers@freebsd.org Mon Aug 3 07:11:56 2015 Return-Path: Delivered-To: freebsd-hackers@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 A52379B22CC for ; Mon, 3 Aug 2015 07:11:56 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E2141BD3; Mon, 3 Aug 2015 07:11:56 +0000 (UTC) (envelope-from etnapierala@gmail.com) Received: by wicgj17 with SMTP id gj17so91389430wic.1; Mon, 03 Aug 2015 00:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=c5o6VJcLXQeioAdE8RPGveza3rwFwQOmrGPSp/bDqfU=; b=fLcFl0GjcUDTBoeJ6KPZuicm8ECi5PQyO6zSTUh9VSA3jXENJFFvP21aLXrC0NuvUK L0L7LjDbhEulHKdhsN4wxVNZyVgD2DdDDdQCOzKfxw9RCObB2iUgIyZto3R0E5NtLXgu 62S4t9vlTVdYJ/D7dhX8Jlzst+a4ij22ApONaY2f/IiZmr9MzBQSzM7Lkjr++e+tR8Ws XlJBb0Ao2dk/uJv0hEmalgc26ynuxgFLFltYCNj1MGF9KSlg5ZXzVGfgPsvicriYszq6 /gbhqlAJSP7+kPfAKgANzqbgsyyRcNpKQiQThc9WynjHMUL8v/g48g8xno4Ft+DYVJq/ LzZg== X-Received: by 10.180.19.65 with SMTP id c1mr30074893wie.15.1438585914688; Mon, 03 Aug 2015 00:11:54 -0700 (PDT) Received: from brick.home (abpz208.neoplus.adsl.tpnet.pl. [83.8.67.208]) by smtp.gmail.com with ESMTPSA id l2sm12012186wib.11.2015.08.03.00.11.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 00:11:53 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Date: Mon, 3 Aug 2015 09:11:50 +0200 From: Edward Tomasz =?utf-8?Q?Napiera=C5=82a?= To: Julian Elischer Cc: Dirk-Willem van Gulik , freebsd-hackers@freebsd.org Subject: Re: pivot_root() and FreeBSD Message-ID: <20150803071150.GA6116@brick.home> Mail-Followup-To: Julian Elischer , Dirk-Willem van Gulik , freebsd-hackers@freebsd.org References: <654E1C53-8536-406D-B218-EA6F20848821@webweaving.org> <55BEE4A5.40107@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55BEE4A5.40107@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 07:11:56 -0000 On 0803T1148, Julian Elischer wrote: > On 3/4/15 12:51 AM, Dirk-Willem van Gulik wrote: > > I am trying to do, in effect an PXE boot/install on a local volume - and would like the machine to cut over into normal running without a reboot*. > > > > So effectively I would like to do the equivalent of pivot_root() and perhaps something special for init(8), and then jettison md, nfs and what not. > > > > Is there any way to do this on 10.1 or -current ? Or has anyone recently done work on Adrian Steinmann his 'Pivot Root for BSD’** ? > > > > Thanks, > there is SOME work going on on a similar thing.. It was in the recent > project status. > > https://www.freebsd.org/news/status/report-2015-04-2015-06.html#Root-Remount > > Also have you tried simply using a small memory filesystem loaded with > the kernel? Note that this functionality is kind of broken as well: https://reviews.freebsd.org/D3204