From fcb000bd23fcd49edc482894cde01ae4a506f03e Mon Sep 17 00:00:00 2001 From: torben Date: Mon, 10 Sep 2018 19:00:29 +0200 Subject: Tranfer host name during switch root. Add test wlan network. --- modules.d/dnbd-root-filesystem/configuration/dnbd/alt-servers | 4 ++++ modules.d/dnbd-root-filesystem/hooks/mount-root-device.sh | 1 + 2 files changed, 5 insertions(+) diff --git a/modules.d/dnbd-root-filesystem/configuration/dnbd/alt-servers b/modules.d/dnbd-root-filesystem/configuration/dnbd/alt-servers index fbf3ce6a..7d594399 100644 --- a/modules.d/dnbd-root-filesystem/configuration/dnbd/alt-servers +++ b/modules.d/dnbd-root-filesystem/configuration/dnbd/alt-servers @@ -1,5 +1,9 @@ ; Enforce client to use this proxy only by avoiding to propagate alt-server ; configuration to client. +; Fritzbox wlanboot (LAN) +192.168.188.21 +; Fritzbox wlanboot (W-LAN) +192.168.188.20 ; UNI LAN (external adapter) -10.21.9.111 ; Home Lan diff --git a/modules.d/dnbd-root-filesystem/hooks/mount-root-device.sh b/modules.d/dnbd-root-filesystem/hooks/mount-root-device.sh index 314f8cb9..82be20b6 100755 --- a/modules.d/dnbd-root-filesystem/hooks/mount-root-device.sh +++ b/modules.d/dnbd-root-filesystem/hooks/mount-root-device.sh @@ -31,6 +31,7 @@ bl.exception.try { "$NEWROOT/usr/lib/systemd/system/local-fs.target.wants/systemd-remount-fs.service" \ &>/dev/null || \ true + cat /etc/hostname > "$NEWROOT/etc/hostname" fi } bl.exception.catch { bl.logging.error "$bl_exception_last_traceback" -- cgit v1.2.3-55-g7522