Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 2019 15:02:10 +0000 (UTC)
From:      Benedict Reuschling <bcr@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r53124 - head/en_US.ISO8859-1/books/handbook/jails
Message-ID:  <201906081502.x58F2ARC059353@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bcr
Date: Sat Jun  8 15:02:10 2019
New Revision: 53124
URL: https://svnweb.freebsd.org/changeset/doc/53124

Log:
  Add a small section about fetching the archive files directly when jails are
  created.
  
  Submitted by:		Albert Dengg
  Reviewed by:		bcr@
  Event:			Vienna Hackathon 2019
  Differential Revision:	https://reviews.freebsd.org/D20557

Modified:
  head/en_US.ISO8859-1/books/handbook/jails/chapter.xml

Modified: head/en_US.ISO8859-1/books/handbook/jails/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/handbook/jails/chapter.xml	Sat Jun  8 14:21:53 2019	(r53123)
+++ head/en_US.ISO8859-1/books/handbook/jails/chapter.xml	Sat Jun  8 15:02:10 2019	(r53124)
@@ -214,8 +214,17 @@
     <para>Mount the install media as covered in &man.mdconfig.8;
       when using the install ISO:</para>
 
-    <screen>&prompt.root; <userinput>mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt</userinput></screen>
+    <screen>&prompt.root; <userinput>mount -t cd9660 /dev/`mdconfig -f cdimage.iso` /mnt</userinput>
+&prompt.root; <userinput>cd /mnt/usr/freebsd-dist/</userinput></screen>
 
+    <para>Alternatively, download the tarballs from a mirror:</para>
+
+    <screen>&prompt.root; <userinput>sh</userinput>
+&prompt.root; <userinput>export DESTRELEASE=<replaceable>12.0-RELEASE</replaceable></userinput>
+&prompt.root; <userinput>export DESTARCH=<replaceable>`uname -m`</replaceable></userinput>
+&prompt.root; <userinput>export SOURCEURL=<replaceable>http://ftp.freebsd.org/pub/</replaceable>FreeBSD/releases/$DESTARCH/$DESTRELEASE/</userinput>;
+&prompt.root; <userinput>for set in base ports; do fetch $SOURCEURL/$set.txz ; done</userinput></screen>
+
     <para>Extract the binaries from the tarballs on the install media
       into the declared destination.  Minimally, only the base set
       needs to be extracted, but a complete install can be performed
@@ -223,11 +232,11 @@
 
     <para>To install just the base system:</para>
 
-    <screen>&prompt.root; <userinput>tar -xf /mnt/usr/freebsd-dist/base.txz -C $DESTDIR</userinput></screen>
+    <screen>&prompt.root; <userinput>tar -xf base.txz -C $DESTDIR</userinput></screen>
 
     <para>To install everything except the kernel:</para>
 
-    <screen>&prompt.root; <userinput>for set in base ports; do tar -xf /mnt/usr/freebsd-dist/$set.txz -C $DESTDIR ; done</userinput></screen>
+    <screen>&prompt.root; <userinput>for set in base ports; do tar -xf $set.txz -C $DESTDIR ; done</userinput></screen>
 
     <para>The &man.jail.8; manual page explains the procedure for
       building a jail:</para>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906081502.x58F2ARC059353>