From 1d1079bfc7599f31f0e6f5807b9edc59f67bb935 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 1 Dec 2019 00:11:42 +0100 Subject: [PATCH] alpine: also setup hostname on boot --- alpine-rebuild-initramfs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/alpine-rebuild-initramfs.sh b/alpine-rebuild-initramfs.sh index 7d50910..6539367 100755 --- a/alpine-rebuild-initramfs.sh +++ b/alpine-rebuild-initramfs.sh @@ -60,6 +60,7 @@ run_root apk add openssh linux-vanilla openrc udev run_root rc-update add udev run_root rc-update add sshd run_root rc-update add networking +run_root rc-update add hostname # Generate iniramfs image (cd $rootfs_tmpdir; find . | cpio -H newc -o | gzip -9 > "$working_directory/alpine-initramfs.gz")