From owner-svn-src-stable-11@freebsd.org Sun Apr 23 08:36:30 2017 Return-Path: Delivered-To: svn-src-stable-11@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 D2EF0D4A5DA; Sun, 23 Apr 2017 08:36:30 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (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 A2BB6147D; Sun, 23 Apr 2017 08:36:30 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v3N8aT0v071471; Sun, 23 Apr 2017 08:36:29 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v3N8aTia071470; Sun, 23 Apr 2017 08:36:29 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201704230836.v3N8aTia071470@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Sun, 23 Apr 2017 08:36:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r317325 - stable/11/sbin/reboot X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for only the 11-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Apr 2017 08:36:30 -0000 Author: trasz Date: Sun Apr 23 08:36:29 2017 New Revision: 317325 URL: https://svnweb.freebsd.org/changeset/base/317325 Log: MFC r315560: Document how to use reroot with NFS. Sponsored by: DARPA, AFRL Modified: stable/11/sbin/reboot/reboot.8 Directory Properties: stable/11/ (props changed) Modified: stable/11/sbin/reboot/reboot.8 ============================================================================== --- stable/11/sbin/reboot/reboot.8 Sun Apr 23 07:57:30 2017 (r317324) +++ stable/11/sbin/reboot/reboot.8 Sun Apr 23 08:36:29 2017 (r317325) @@ -28,7 +28,7 @@ .\" @(#)reboot.8 8.1 (Berkeley) 6/9/93 .\" $FreeBSD$ .\" -.Dd Dec 12, 2015 +.Dd March 19, 2017 .Dt REBOOT 8 .Os .Sh NAME @@ -152,6 +152,13 @@ Replace current root filesystem with UFS kenv vfs.root.mountfrom=ufs:/dev/ada0s1a reboot -r .Ed +.Pp +This mechanism can also be used with NFS, with a caveat that +it only works with NFSv4, and requires a numeric IPv4 address: +.Bd -literal -offset indent +kenv vfs.root.mountfrom=nfs:192.168.1.1:/share/name +reboot -r +.Ed .Sh SEE ALSO .Xr kenv 1 , .Xr getutxent 3 ,