e86981fd59ed8bb3b729343cbde6571fcd692128
When editing an overlay, the temporary file was created within the overlay directory structure. This could lead to the temporary file being included in the overlay if not cleaned up properly. This change modifies the behavior to create the temporary file in the system's default temporary directory, avoiding any potential issues with the overlay itself. Not using this change the temporary file can be seen in the overlay: DEBUG : Using temporary file /usr/share/warewulf/overlays/host/ww-overlay-edit-2879742493 DEBUG : Checking if path exists as a file: /usr/share/warewulf/overlays/host/rootfs/etc/hosts.ww DEBUG : ExecInteractive(tee, [/usr/share/warewulf/overlays/host/ww-overlay-edit-2879742493]) # find /srv | grep ww-overlay /srv/warewulf/overlays/host/ww-overlay-edit-2879742493 With this patch applied: DEBUG : Using temporary file /tmp/ww-overlay-edit-266752840 DEBUG : Checking if path exists as a file: /usr/share/warewulf/overlays/host/rootfs/etc/hosts.ww DEBUG : ExecInteractive(tee, [/tmp/ww-overlay-edit-266752840]) # find /srv | grep ww-overlay Assisted-by: Gemini 2.5 Pro Signed-off-by: Adrian Reber <areber@redhat.com>
Warewulf v4
Warewulf is a stateless, network-boot cluster provisioning system designed primarily for use in HPC clusters.
Description
Languages
Go
94.1%
Shell
4%
Makefile
1.2%
Python
0.4%
Dockerfile
0.3%
