diff options
| author | Serge Schneider <serge@raspberrypi.org> | 2019-12-05 16:25:18 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.org> | 2020-01-21 17:45:22 +0000 |
| commit | 24bb01dec280f568ac59cdd1253a33a6d30ac4c4 (patch) | |
| tree | 28ad72d0b1af676502c9053adcee6274bbc98039 /stage1 | |
| parent | f8f3d6fe93a6709f02f63f3a203a38bcd33a0c0d (diff) | |
Rename HOSTNAME variable to TARGET_HOSTNAME
Bash sets the HOSTNAME variable, overriding our default
Diffstat (limited to 'stage1')
| -rwxr-xr-x | stage1/02-net-tweaks/00-run.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stage1/02-net-tweaks/00-run.sh b/stage1/02-net-tweaks/00-run.sh index fc9e763..4943cab 100755 --- a/stage1/02-net-tweaks/00-run.sh +++ b/stage1/02-net-tweaks/00-run.sh @@ -1,6 +1,6 @@ #!/bin/bash -e -echo "${HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname" -echo "127.0.1.1 ${HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts" +echo "${TARGET_HOSTNAME}" > "${ROOTFS_DIR}/etc/hostname" +echo "127.0.1.1 ${TARGET_HOSTNAME}" >> "${ROOTFS_DIR}/etc/hosts" ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link" |
