clean up /proc/cmdline with dracut and allow dracut to boot with secure mode to fix #1261

This commit is contained in:
Josh Burks
2024-06-18 08:08:28 -07:00
committed by Jonathon Anderson
parent 2b82c2074a
commit d62743ee11
4 changed files with 11 additions and 7 deletions

View File

@@ -8,6 +8,8 @@ do
if [ -n "${archive}" ]
then
info "Loading ${archive}"
(curl --silent -L "${archive}" | gzip -d | cpio -im --directory="${NEWROOT}") || die "Unable to load ${archive}"
#Load only runtime overlays from a static privledge port
[[ "$archive" == *"runtime"* ]] && localport="--local-port 986" || localport=""
(curl --silent $localport -L "${archive}" | gzip -d | cpio -im --directory="${NEWROOT}") || die "Unable to load ${archive}"
fi
done