Replace instable HOSTNM determination by file for installation.

This commit is contained in:
2026-04-30 15:06:47 +02:00
parent f89d0f36f1
commit 29c87be593
4 changed files with 19 additions and 18 deletions
+2 -1
View File
@@ -52,7 +52,8 @@ do_configure() {
echo ""
source "$CONF_FILE"
VARS=("TLDOMAIN" "SERVERFQDN_IPA" "DOMAIN" "SERVERFQDN_NC" "IPAVAULTUSE" "IPAVAULTNAME" "CLIENT_SOFTWARE_SRC" "DISTCONFIGPATH_SRC" "CLIENTADMINGROUP" )
# Currently not possible to change "IPAVAULTNAME" becaue
VARS=("TLDOMAIN" "SERVERFQDN_IPA" "DOMAIN" "SERVERFQDN_NC" "IPAVAULTUSE" "CLIENT_SOFTWARE_SRC" "DISTCONFIGPATH_SRC" "CLIENTADMINGROUP" )
for ELE in "${VARS[@]}"
do
while true; do
+2 -4
View File
@@ -499,14 +499,12 @@ cd "$MOUNT_POINT" || die "Cannot cd to $MOUNT_POINT."
git clone --progress --depth 1 "$REPO_URL" . || die "git clone failed."
# Write hardware UUID to a user-readable per-machine file
mkdir -p "${MOUNT_POINT}/config.d"
dmidecode -t system | grep -i 'UUID' \
| sed 's/UUID: //' | tr '[:upper:]' '[:lower:]' \
| sed 's/[^0-9a-z]*//g' | xargs | tail -c 13 \
> "${MOUNT_POINT}/config.d/machine_uuid.sys"
chmod 0444 "${MOUNT_POINT}/config.d/machine_uuid.sys"
> "./config.d/machine_uuid.sys"
chmod o=rwX . -R # to make changes to the configuration possible after install
chmod o=rwX . -R # to make changes to the configuration possible after install
# ── Done ──────────────────────────────────────────────────────────────────────