forked from pool/warewulf4
- 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
72 lines
2.4 KiB
Diff
72 lines
2.4 KiB
Diff
diff --git a/etc/grub/grub.cfg.ww b/etc/grub/grub.cfg.ww
|
|
index f7ecac23..859d2d51 100644
|
|
--- a/etc/grub/grub.cfg.ww
|
|
+++ b/etc/grub/grub.cfg.ww
|
|
@@ -1,3 +1,4 @@
|
|
+{{ if .ContainerName }}
|
|
echo "================================================================================"
|
|
echo "Warewulf v4 now http booting grub: {{.Fqdn}} ({{.Hwaddr}})"
|
|
echo "================================================================================"
|
|
@@ -89,3 +90,12 @@ menuentry "System shutdown" {
|
|
echo "System shutting down..."
|
|
halt
|
|
}
|
|
+{{ else }}
|
|
+echo "================================================================================"
|
|
+echo " Warewulf v4:"
|
|
+echo " No node image/container defined for this node ({{.Fqdn}})."
|
|
+echo " Rebooting in 30s."
|
|
+echo "================================================================================"
|
|
+sleep 30
|
|
+reboot
|
|
+{{ end }}
|
|
diff --git a/etc/ipxe/default.ipxe b/etc/ipxe/default.ipxe
|
|
index 7db56e27..dbe10ed7 100644
|
|
--- a/etc/ipxe/default.ipxe
|
|
+++ b/etc/ipxe/default.ipxe
|
|
@@ -1,5 +1,5 @@
|
|
#!ipxe
|
|
-
|
|
+{{ if .ContainerName }}
|
|
echo
|
|
echo ================================================================================
|
|
echo Warewulf v4 now booting: {{.Fqdn}} ({{.Hwaddr}})
|
|
@@ -106,3 +106,12 @@ echo There was an error, rebooting in 15s...
|
|
echo
|
|
sleep 15
|
|
reboot
|
|
+{{ else }}
|
|
+echo ================================================================================
|
|
+echo Warewulf v4:
|
|
+echo No node image/container defined for this node ({{.Fqdn}}).
|
|
+echo Rebooting in 30s.
|
|
+echo ================================================================================
|
|
+sleep 30
|
|
+reboot
|
|
+{{ end }}
|
|
diff --git a/etc/ipxe/dracut.ipxe b/etc/ipxe/dracut.ipxe
|
|
index 4336b01e..7ae3b77e 100644
|
|
--- a/etc/ipxe/dracut.ipxe
|
|
+++ b/etc/ipxe/dracut.ipxe
|
|
@@ -1,5 +1,5 @@
|
|
#!ipxe
|
|
-
|
|
+{{ if .ContainerName }}
|
|
echo
|
|
echo ================================================================================
|
|
echo Warewulf v4 now booting via dracut: {{.Fqdn}} ({{.Hwaddr}})
|
|
@@ -44,3 +44,12 @@ echo There was an error, rebooting in 15s...
|
|
echo
|
|
sleep 15
|
|
reboot
|
|
+{{ else }}
|
|
+echo ================================================================================
|
|
+echo Warewulf v4:
|
|
+echo No node image/container defined for this node ({{.Fqdn}}).
|
|
+echo Rebooting in 30s.
|
|
+echo ================================================================================
|
|
+sleep 30
|
|
+reboot
|
|
+{{ end }}
|
|
\ No newline at end of file
|