Skip to content

Commit

Permalink
do not copy fai-make-nfsroot.log into nfsroot if a generic is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Feb 28, 2021
1 parent d5d2efa commit 895b3b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/fai-make-nfsroot
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,9 @@ exit $exitcode
RC=${PIPESTATUS[0]}
umount_dirs
trap "true" EXIT
cp -p /var/log/fai/fai-make-nfsroot.log $NFSROOT/var/tmp
echo "Log file written to /var/log/fai/fai-make-nfsroot.log and $NFSROOT/var/tmp"
if [ $generic = 0 ]; then
cp -p /var/log/fai/fai-make-nfsroot.log $NFSROOT/var/tmp
msg="and $NFSROOT/var/tmp"
fi
echo "Log file written to /var/log/fai/fai-make-nfsroot.log $msg"
exit ${RC}

0 comments on commit 895b3b8

Please sign in to comment.