Skip to content

Commit

Permalink
save logs to local data partition if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 8, 2023
1 parent 2104b28 commit b139abe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ task_savelog() {

mkdir -p $FAI_ROOT/var/{lib,log}/fai
fai-savelog -l
if [ -d /media/data/ ]; then
mkdir -p /media/data/logs
fai-savelog -l /media/data/logs
fi
[ -f $LOGDIR/FAI_CLASSES ] && cp -pu $LOGDIR/FAI_CLASSES $FAI_ROOT/var/lib/fai
[ -f $LOGDIR/disk_var.sh ] && cp -pu $LOGDIR/disk_var.sh $FAI_ROOT/var/lib/fai
fai-savelog -r
Expand Down

0 comments on commit b139abe

Please sign in to comment.