aboutsummaryrefslogtreecommitdiffstats
path: root/create_arm_image.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2020-08-30 01:23:00 +0200
committerJybz <j.biernacki@free.fr>2020-08-30 01:23:00 +0200
commite71c0f3072747f77e455ec14c4ebc0f75d60fcfb (patch)
tree7dbafdca615b2c32c4acc4dfba87a356ac96a396 /create_arm_image.sh
parent1f449b4e6e60e2a3df3a01e02eca7ef36b7111a3 (diff)
downloadmageia4arm-e71c0f3072747f77e455ec14c4ebc0f75d60fcfb.tar
mageia4arm-e71c0f3072747f77e455ec14c4ebc0f75d60fcfb.tar.gz
mageia4arm-e71c0f3072747f77e455ec14c4ebc0f75d60fcfb.tar.bz2
mageia4arm-e71c0f3072747f77e455ec14c4ebc0f75d60fcfb.tar.xz
mageia4arm-e71c0f3072747f77e455ec14c4ebc0f75d60fcfb.zip
add default value for hostname.
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-xcreate_arm_image.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh
index d3ba809..fc72789 100755
--- a/create_arm_image.sh
+++ b/create_arm_image.sh
@@ -310,7 +310,7 @@ function preparechroot()
title "Preparing chrooting in ${BUILD_PATH}"
info "making /etc/hostname"
- echo "${HOSTNAME}" > "${BUILD_PATH}/etc/hostname"
+ echo "${HOSTNAME:="localhost.localdomain"}" > "${BUILD_PATH}/etc/hostname"
info "copying second stage script in ${BUILD_PATH}"
#echo "/usr/bin/cp ${CONFIG_PATH}/second_stage_install.sh ${BUILD_PATH}/"