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

@ -62,7 +62,7 @@ The following environment variables are supported:
be built and cached. Note, `WORK_DIR` stores a complete copy of the target
system for each build stage, amounting to tens of gigabytes in the case of
Raspbian.
**CAUTION**: If your working directory is on an NTFS partition you probably won't be able to build. Make sure this is a proper Linux filesystem.
* `DEPLOY_DIR` (Default: `"$BASE_DIR/deploy"`)
@ -82,6 +82,10 @@ The following environment variables are supported:
Default system locale.
* `HOSTNAME` (Default: "raspberrypi" )
Setting the hostname to the specified value.
* `KEYBOARD_KEYMAP` (Default: "gb" )
Default keyboard keymap.

View file

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

View file

@ -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"

View file

@ -1 +0,0 @@
raspberrypi