Setup hostname for debian/devuan

This commit is contained in:
Nico Schottelius 2020-06-02 16:46:44 +02:00
parent e4d3062d45
commit b96c39ccb6

View file

@ -30,6 +30,7 @@ echo "deb http://pkgmaster.devuan.org/merged ${suite} main contrib non-free" > $
chroot ${dir} apt update chroot ${dir} apt update
chroot ${dir} apt install -y openssh-server rdnssd linux-image-amd64 firmware-bnx2 chroot ${dir} apt install -y openssh-server rdnssd linux-image-amd64 firmware-bnx2
echo "unconfigured-host" > ${dir}/etc/hostname
cp ${dir}/boot/vmlinuz-* ${kernel} cp ${dir}/boot/vmlinuz-* ${kernel}
@ -67,7 +68,7 @@ ifup "\${dev}"
exit 0 exit 0
EOF 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 # 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 # reason: initramfs is designed to be PRE regular os, so /init usually hands over to /sbin/init