From owner-freebsd-hackers@freebsd.org Mon Aug 3 00:14:51 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 6678E9B1C49 for ; Mon, 3 Aug 2015 00:14:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (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 3349C1FDA for ; Mon, 3 Aug 2015 00:14:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by ioea135 with SMTP id a135so129958014ioe.1 for ; Sun, 02 Aug 2015 17:14:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=cwYWxr0yRyzIs+f1Giamlkgwj2WtvpWCqvXgML6zj10=; b=j4dOT2vzcMdG9ns2P6FIKECZh5jurrJrn1lIcUSPCjYmM55XRp2rXZdl8tcxRyXnkF Ba3a5vsizAIKssWBqErkksA1cyCIhzAuluqJpEJB6H8uLPyYMt6RiS4eFApfitgpCeAS wQB4rM/M7WBZtOnus7St3Tum1hQtCHlSZopM2ARi9CQpCI9NbdwYCph7+NCr1kbKglGO naRi5pbtauUSyY+GGORyadhds3M+prJ1OMzlBHuWQEV9Xd3j0o5Dy9+Cqwitv7XVCgdP 6hfHwBR5D4p1x+bpNwRZxPQTyLAiOXKcjDpzYnmX/Pd7uOYdO9xGlhX8oycbBEUYKIcA PSQQ== MIME-Version: 1.0 X-Received: by 10.107.169.138 with SMTP id f10mr16767156ioj.75.1438560890594; Sun, 02 Aug 2015 17:14:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 2 Aug 2015 17:14:50 -0700 (PDT) In-Reply-To: <20150613092704.GA37870@brick.home> References: <654E1C53-8536-406D-B218-EA6F20848821@webweaving.org> <20150613092704.GA37870@brick.home> Date: Sun, 2 Aug 2015 17:14:50 -0700 X-Google-Sender-Auth: S4rUOCIkPNcwQlM3XoKhJPkrNqQ Message-ID: Subject: Re: pivot_root() and FreeBSD From: Adrian Chadd To: Dirk-Willem van Gulik , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 00:14:51 -0000 Hi, pivotroot would be nice. I'd like to be able to mount an mfs to free up the rootfs on embedded devices, so I can re-write the kernel/rootfs that we booted from. +1, let's get this going. -a On 13 June 2015 at 02:27, Edward Tomasz Napiera=C5=82a = wrote: > On 0303T1751, 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 per= haps 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=E2=80=99** ? > > I have something similar in purpose in the works: > > https://reviews.freebsd.org/D2698 > > Perhaps you could take a look to see if it fits your use case? The code > needs a rewrite, but the usage should stay the same. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= "