Added hostname parameter

This commit is contained in:
Rene Klootwijk 2019-10-26 12:49:30 +02:00 committed by XECDesign
parent 19c0188798
commit d30343f626
4 changed files with 8 additions and 3 deletions

View file

@ -82,6 +82,10 @@ The following environment variables are supported:
Default system locale. Default system locale.
* `HOSTNAME` (Default: "raspberrypi" )
Setting the hostname to the specified value.
* `KEYBOARD_KEYMAP` (Default: "gb" ) * `KEYBOARD_KEYMAP` (Default: "gb" )
Default keyboard keymap. Default keyboard keymap.

View file

@ -161,6 +161,8 @@ export DEPLOY_DIR=${DEPLOY_DIR:-"${BASE_DIR}/deploy"}
export DEPLOY_ZIP="${DEPLOY_ZIP:-1}" export DEPLOY_ZIP="${DEPLOY_ZIP:-1}"
export LOG_FILE="${WORK_DIR}/build.log" export LOG_FILE="${WORK_DIR}/build.log"
export HOSTNAME=${HOSTNAME:-raspberrypi}
export FIRST_USER_NAME=${FIRST_USER_NAME:-pi} export FIRST_USER_NAME=${FIRST_USER_NAME:-pi}
export FIRST_USER_PASS=${FIRST_USER_PASS:-raspberry} export FIRST_USER_PASS=${FIRST_USER_PASS:-raspberry}
export WPA_ESSID export WPA_ESSID

View file

@ -1,5 +1,5 @@
#!/bin/bash -e #!/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" ln -sf /dev/null "${ROOTFS_DIR}/etc/systemd/network/99-default.link"

View file

@ -1 +0,0 @@
raspberrypi