From e55098cb5bd3049921cb10db18f5eac49def3df8 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Tue, 11 Nov 2025 15:32:24 -0600 Subject: [PATCH] Skip wwinit module if not root=wwinit* Signed-off-by: Timothy Middelkoop --- CHANGELOG.md | 1 + dracut/modules.d/90wwinit/load-wwinit.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df43f0a7..bd8fb98c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix "address already in use" in `wwclient` when `secure: true`. #2009 - Use device names in netplan bonds. #2013 - Fix ImageDelete API not returning error when checking if image is used by nodes/profiles +- Fix warewulf-dracut to not run the wwinit module if root is not set to `root=wwclient*` ### Dependencies diff --git a/dracut/modules.d/90wwinit/load-wwinit.sh b/dracut/modules.d/90wwinit/load-wwinit.sh index 4bee160c..5bf3c29d 100644 --- a/dracut/modules.d/90wwinit/load-wwinit.sh +++ b/dracut/modules.d/90wwinit/load-wwinit.sh @@ -1,5 +1,7 @@ #!/bin/bash +[ -z "${wwinit_root_device}" ] && return 0 + get_stage() { stage="${1}" info "warewulf: loading stage: ${stage}"