SHA256
1
0
forked from pool/warewulf4
warewulf4/fix-overlay-built.patch
Christian Goll 7d75360830 Accepting request 1186422 from home:mslacken:pr
- updated to 4.5.5 with following changes:
  * mount `/sys` and `/run` on `wwctl container exec` to enabled
    SUSEConnect (bsc#1227289)
  * don't want on NIS style passwd line (bsc#1227250)
  * wwctl impoer can have `passwd` and `user` argument (bsc#1227340)
  * add net.ifnames=1 to default kernel parameters (bsc#1226654)
- removed wwctl-configure-all-calls-SSH-keys.patch as included
  upstream
- added following not yet accepted upstream patches:
  * empty-container.patch
  * enhanced-cont-list.patch
  * fix-overlay-built.patch
  * oci-vars.patch
  * issue-motd.patch

OBS-URL: https://build.opensuse.org/request/show/1186422
OBS-URL: https://build.opensuse.org/package/show/network:cluster/warewulf4?expand=0&rev=79
2024-07-09 14:28:44 +00:00

18 lines
609 B
Diff

diff --git a/internal/pkg/warewulfd/provision.go b/internal/pkg/warewulfd/provision.go
index 51b8d60e..abfb3275 100644
--- a/internal/pkg/warewulfd/provision.go
+++ b/internal/pkg/warewulfd/provision.go
@@ -145,6 +145,12 @@ func ProvisionSend(w http.ResponseWriter, req *http.Request) {
request_overlays = strings.Split(rinfo.overlay, ",")
} else {
context = rinfo.stage
+ switch context {
+ case "system":
+ request_overlays = node.SystemOverlay.GetSlice()
+ case "runtime":
+ request_overlays = node.RuntimeOverlay.GetSlice()
+ }
}
stage_file, err = getOverlayFile(
node,