Skip to content

Commit

Permalink
use $NFSROOT, $FAI_ROOT is not set yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Jun 27, 2021
1 parent d1d90a3 commit 9edbd2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/fai-make-nfsroot
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ if [ -z "$ROOTCMD" ]; then
# check if unshare can be used (e.g. not possible in some container environments)
unshare --pid --fork --kill-child --mount-proc chroot / ls >/dev/null 2>&1
if [ $? -eq 0 ]; then
ROOTCMD="unshare --pid --fork --kill-child --mount-proc chroot $FAI_ROOT"
ROOTCMD="unshare --pid --fork --kill-child --mount-proc chroot $NFSROOT"
else
ROOTCMD="chroot $FAI_ROOT"
ROOTCMD="chroot $NFSROOT"
fi
fi
set -e
Expand Down

0 comments on commit 9edbd2f

Please sign in to comment.