[PATCH builds.sr.ht] images/freebsd: fix networking and sshd

Details
Message ID
<GB1yEg0tCXq7qY4Kh_gZv_LxqO094Ck8s9lM0yTW1iwvSsH4bwgqNsiP7i_1zKSzmL5qQWlyVOKXj19jnhCe3s-agI4RTGIg0g6mdR6MvYU=@emersion.fr>
Download raw message
Patch +3 -1
From: emersion <contact@emersion.fr>

---
 images/freebsd/genimg | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/images/freebsd/genimg b/images/freebsd/genimg
index 620ce0b..089e01a 100755
--- a/images/freebsd/genimg
+++ b/images/freebsd/genimg
@@ -45,7 +45,8 @@ cat >>/mnt/etc/rc.conf <<EOF
 ntpd_enable=YES
 sshd_enable=YES
 growfs_enable=YES
-ifconfig_em0="inet 10.0.2.15 netmask 255.255.255.0"
+hostname="build"
+ifconfig_DEFAULT="inet 10.0.2.15 netmask 255.255.255.0"
 defaultrouter="10.0.2.2"
 EOF
 echo "nameserver 1.1.1.1" >/mnt/etc/resolv.conf
@@ -55,6 +56,7 @@ cat >>/mnt/etc/ssh/sshd_config <<EOF
 PermitRootLogin yes
 PasswordAuthentication yes
 PermitEmptyPasswords yes
+UsePAM no
 EOF
 
 mkdir -p /mnt/usr/local/etc/pkg/repos/
-- 
2.20.1