From 484965dbae53f2ace70bc7571c9ab9dac2d22084 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Thu, 27 Nov 2025 23:05:13 +0000 Subject: [PATCH] IPv6: /etc/exports overlay Signed-off-by: Timothy Middelkoop --- overlays/host/internal/host_test.go | 4 ++-- overlays/host/rootfs/etc/exports.ww | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/overlays/host/internal/host_test.go b/overlays/host/internal/host_test.go index 92aa7ce3..7fd16573 100644 --- a/overlays/host/internal/host_test.go +++ b/overlays/host/internal/host_test.go @@ -314,8 +314,8 @@ const host_exports string = `backupFile: true writeFile: true Filename: etc/exports # This file is autogenerated by warewulf -/home 192.168.0.0/255.255.255.0(rw,sync) -/opt 192.168.0.0/255.255.255.0(ro,sync,no_root_squash) +/home 192.168.0.0/255.255.255.0(rw,sync) 2001:db8::/64(rw,sync) +/opt 192.168.0.0/255.255.255.0(ro,sync,no_root_squash) 2001:db8::/64(ro,sync,no_root_squash) ` diff --git a/overlays/host/rootfs/etc/exports.ww b/overlays/host/rootfs/etc/exports.ww index b8c44fff..d783829a 100644 --- a/overlays/host/rootfs/etc/exports.ww +++ b/overlays/host/rootfs/etc/exports.ww @@ -1,9 +1,8 @@ {{ if .Nfs.Enabled -}} # This file is autogenerated by warewulf -{{- $network := .Network }} -{{- $netmask := .Netmask }} {{- range .Nfs.ExportsExtended }} -{{ .Path }} {{ $network }}/{{ $netmask }}({{ .ExportOptions }}) +{{ .Path }} {{ $.Network }}/{{ $.Netmask }}({{ .ExportOptions }}) + {{- if $.Ipv6 }} {{ $.NetworkCIDR6 }}({{ .ExportOptions }}){{ end }} {{- end }} {{- else }} {{ abort }}