Don't assume runtime overlay name format

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-07-05 11:49:52 -06:00
parent 7e70e5a2bb
commit c2cc0157ba

View File

@@ -11,7 +11,7 @@ do
# Load runtime overlay from a static privledged port.
# Others use default settings.
localport=""
if [[ "$archive" == *"runtime"* ]]
if [[ "${archive}" == "${wwinit_runtime}" ]]
then
localport="--local-port 1-1023"
fi