Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2021 14:00:38 GMT
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c87050f027a4 - stable/13 - Improve example install scripts, making them simpler and more robust.
Message-ID:  <202104121400.13CE0cnZ064170@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by nwhitehorn:

URL: https://cgit.FreeBSD.org/src/commit/?id=c87050f027a4e1ebad365222ab3eb4969806a7db

commit c87050f027a4e1ebad365222ab3eb4969806a7db
Author:     Nathan Whitehorn <nwhitehorn@FreeBSD.org>
AuthorDate: 2021-03-22 14:08:55 +0000
Commit:     Nathan Whitehorn <nwhitehorn@FreeBSD.org>
CommitDate: 2021-04-12 13:58:49 +0000

    Improve example install scripts, making them simpler and more robust.
    
    In particular:
    - There is no need to do anything with gpart (the installer does that
      for you).
    - There is no need to specify the network interface, since we have
      an option for defaults.
    
    (cherry picked from commit f91026bf462f9a636735cafafd29a1232b2a525b)
---
 usr.sbin/bsdinstall/bsdinstall.8 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/usr.sbin/bsdinstall/bsdinstall.8 b/usr.sbin/bsdinstall/bsdinstall.8
index ba261ce7301d..53bf25b3b070 100644
--- a/usr.sbin/bsdinstall/bsdinstall.8
+++ b/usr.sbin/bsdinstall/bsdinstall.8
@@ -458,8 +458,7 @@ PARTITIONS=ada0
 DISTRIBUTIONS="kernel.txz base.txz"
 
 #!/bin/sh
-gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
-sysrc ifconfig_em0=DHCP
+sysrc ifconfig_DEFAULT=DHCP
 sysrc sshd_enable=YES
 pkg install puppet
 .Ed
@@ -472,7 +471,7 @@ export ZFSBOOT_DISKS=ada0
 export nonInteractive="YES"
 
 #!/bin/sh
-echo "ifconfig_em0=DHCP" >> /etc/rc.conf
+echo "ifconfig_DEFAULT=DHCP" >> /etc/rc.conf
 echo "sshd_enable=YES" >> /etc/rc.conf
 pkg install puppet
 .Ed



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