From b96c39ccb6fe6deb45003747025a2c8d61f4a2c4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 2 Jun 2020 16:46:44 +0200 Subject: [PATCH] Setup hostname for debian/devuan --- debian-devuan-netboot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian-devuan-netboot.sh b/debian-devuan-netboot.sh index d64de5e..5bc2d66 100755 --- a/debian-devuan-netboot.sh +++ b/debian-devuan-netboot.sh @@ -30,6 +30,7 @@ echo "deb http://pkgmaster.devuan.org/merged ${suite} main contrib non-free" > $ chroot ${dir} apt update chroot ${dir} apt install -y openssh-server rdnssd linux-image-amd64 firmware-bnx2 +echo "unconfigured-host" > ${dir}/etc/hostname cp ${dir}/boot/vmlinuz-* ${kernel} @@ -67,7 +68,7 @@ ifup "\${dev}" exit 0 EOF -chmod a+rx ${dir}/etc/rc.local" +chmod a+rx "${dir}/etc/rc.local" # ensure there is /init in the initramfs -> otherwise there is a kernel panic # reason: initramfs is designed to be PRE regular os, so /init usually hands over to /sbin/init