summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2021-08-13 17:06:54 +0200
committerJonathan Bauer2021-08-13 17:06:54 +0200
commit3d32b5cc49660cf618ab81bb5e3a02e75cb82364 (patch)
tree81eedc79681bd2c3eabb0f1660f311015b8b9bfb
parent[slx-network] more work towards chaos (diff)
downloadsystemd-init-3d32b5cc49660cf618ab81bb5e3a02e75cb82364.tar.gz
systemd-init-3d32b5cc49660cf618ab81bb5e3a02e75cb82364.tar.xz
systemd-init-3d32b5cc49660cf618ab81bb5e3a02e75cb82364.zip
[slx-network] also pass hostname from kcl to udhcpc trigger script
-rwxr-xr-xmodules.d/slx-network/scripts/setup-bootif-network.stage31
1 files changed, 1 insertions, 0 deletions
diff --git a/modules.d/slx-network/scripts/setup-bootif-network.stage3 b/modules.d/slx-network/scripts/setup-bootif-network.stage3
index dfc5adc6..11b9b799 100755
--- a/modules.d/slx-network/scripts/setup-bootif-network.stage3
+++ b/modules.d/slx-network/scripts/setup-bootif-network.stage3
@@ -117,6 +117,7 @@ if [ -n "$SLX_PXE_CLIENT_IP" ] && [ -n "$SLX_PXE_NETMASK" ]; then
ip="$SLX_PXE_CLIENT_IP" \
router="$SLX_PXE_GATEWAY" \
dns="$SLX_PXE_DNS" \
+ hostname="$SLX_PXE_HOSTNAME" \
/usr/local/bin/udhcpc-trigger bound; then
warn "Failed to launch DHCP trigger with KCL configuration - will DHCP."
fi