summaryrefslogtreecommitdiff
path: root/stage1
diff options
context:
space:
mode:
authorRene Klootwijk <rene@klootwijk.org>2019-10-26 12:49:30 +0200
committerXECDesign <XECDesign@users.noreply.github.com>2019-11-05 17:21:33 +0000
commitd30343f626916a5b6f23cec67df919bd5a5b643a (patch)
tree5ebb1522f6300f4e4eb0cb14ec496ad45c948d18 /stage1
parent19c0188798f39149e5a82f70a3f96b96cfdaa7d9 (diff)
Added hostname parameter
Diffstat (limited to 'stage1')
-rwxr-xr-xstage1/02-net-tweaks/00-run.sh2
-rw-r--r--stage1/02-net-tweaks/files/hostname1
2 files changed, 1 insertions, 2 deletions
diff --git a/stage1/02-net-tweaks/00-run.sh b/stage1/02-net-tweaks/00-run.sh
index a49b4b0..8637edc 100755
--- a/stage1/02-net-tweaks/00-run.sh
+++ b/stage1/02-net-tweaks/00-run.sh
@@ -1,5 +1,5 @@
#!/bin/bash -e
-install -m 644 files/hostname "${ROOTFS_DIR}/etc/hostname"
+echo "${HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname"
ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link"
diff --git a/stage1/02-net-tweaks/files/hostname b/stage1/02-net-tweaks/files/hostname
deleted file mode 100644
index 41757af..0000000
--- a/stage1/02-net-tweaks/files/hostname
+++ /dev/null
@@ -1 +0,0 @@
-raspberrypi