Update 'k3os/set_hostname.sh'

This commit is contained in:
2025-10-30 14:38:33 +00:00
parent 42221d7499
commit ead20e3ef0

View File

@@ -58,7 +58,7 @@ set_hostname() {
echo "Warning: Failed to remount $CONFIG_DIR back to read-only. Proceeding..."
fi
echo '$HOSTNAME_ENTRY' > /var/lib/rancher/k3os/hostname
echo -e "$HOSTNAME_ENTRY" > /var/lib/rancher/k3os/hostname
# 4. Report status
if [ $MODIFICATION_STATUS -eq 0 ]; then