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.
This commit is contained in:
parent
0cff00ae68
commit
f91026bf46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user