Error handling for /newroot mount during single-stage boot
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user