Error handling for /newroot mount during single-stage boot

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2026-03-09 21:23:26 -06:00
parent 7b5d2de6ad
commit f78f761be9
2 changed files with 4 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Allow whitespace to be trimmed for wwdoc comments. #2109
- update go-chi to 5.2.5 to fix CVE-2025-69725
- Prevented profile `comment` field from being inherited by nodes. #2078
- Error handling for /newroot mount during single-stage boot
- Bugfix for command-line arguments during single-stage image unpacking
### Added

View File

@@ -52,9 +52,10 @@ else
else
mount ${WWROOT} /newroot
fi
mountpoint -q /newroot || die "warewulf: ERROR: failed to mount ${WWROOT} at /newroot"
info "warewulf: copying image to /newroot..."
tar -cf - --exclude ./proc --exclude ./sys --exclude ./dev --exclude --exclude ./newroot . | tar -xf - -C /newroot
tar -cf - --exclude ./proc --exclude ./sys --exclude ./dev --exclude ./newroot . | tar -xf - -C /newroot
mkdir /newroot/proc /newroot/dev /newroot/sys 2>/dev/null