SHA256
1
0
forked from pool/warewulf4
warewulf4/issue-motd.patch
Christian Goll 70b45730b3 - Update to version 4.6.0rc3 what is a major upgrade with following
highlights:
  * renamed container to images
  * "sprig" functions in overlays
  * support for yaml and json formatted output
  * completely re-designed kernel selection support
  * nested profiles
  * arbitrary node and profile data in new "resources" structure
  * moved NFS mount options to resources / fstab overlay
  * split overlays by function
  * split overlays, site vs distribution
  * replaced defaults.conf with settings on default profile
  * improved tabular output
  * parallel overlay build
  * improved networking functionality (static route, vlans, and bonds)
  * kernel arguments as a list
  * non-zero exit codes on wwctl errors
  * fixed argument parsing for wwctl image exec
  * Defined menu for ipxe boot
  * Re-order SSH key types to make ed25519 default.
- The configuation files nodes.conf and warewulf.conf will be updated
  on upgrade and the unmodified configuration files will be saved 
  as nodes.conf.4.5.x and warewulf.conf.4.5.x

OBS-URL: https://build.opensuse.org/package/show/network:cluster/warewulf4?expand=0&rev=99
2025-02-25 18:44:20 +00:00

30 lines
1.1 KiB
Diff

diff --git a/overlays/wwinit/rootfs/etc/issue.ww b/overlays/wwinit/rootfs/etc/issue.ww
index d526a2b6..f7cd4e86 100644
--- a/overlays/wwinit/rootfs/etc/issue.ww
+++ b/overlays/wwinit/rootfs/etc/issue.ww
@@ -6,7 +6,11 @@ Kernelargs: {{.Kernel.Args}}
Network:
{{- range $devname, $netdev := .NetDevs}}
{{$devname}}: {{$netdev.Device}}
- {{$devname}}: {{$netdev.IpCIDR}}
-{{if $netdev.Ipaddr6 }} {{$devname}}: {{$netdev.Ipaddr6}}{{ end -}}
-{{if $netdev.Hwaddr }} {{$devname}}: {{$netdev.Hwaddr}}{{ end -}}
-{{end}}
+ {{$devname}}: \4{{ print "{" }}{{$netdev.Device}}{{ print "}" }}
+{{- if $netdev.Ipaddr6 }}
+ {{$devname}}: \6{{ print "{" }}{{$netdev.Device}}{{ print "}" }}
+{{- end }}
+{{- if $netdev.Hwaddr }}
+ {{$devname}}: {{$netdev.Hwaddr}}
+{{- end }}
+{{- end}}
diff --git a/overlays/wwinit/rootfs/etc/motd.d/ww4.ww b/overlays/wwinit/rootfs/etc/motd.d/ww4.ww
new file mode 100644
index 00000000..dad912db
--- /dev/null
+++ b/overlays/wwinit/rootfs/etc/motd.d/ww4.ww
@@ -0,0 +1,3 @@
+warewulf Node: {{.Id}}
+Container: {{.Container}}
+Kernelargs: {{.Kernel.Args}}