bento: recreate the state file for every rebuild

This commit is contained in:
Solene Rapenne 2022-12-08 00:09:02 +01:00
parent 88f124b5b1
commit d8c28c8ebd
1 changed files with 9 additions and 5 deletions

14
bento
View File

@ -738,13 +738,17 @@ then
deploy_files "$i" "$i"
fi
# the states files is used for the status function
# we need to update it after each rebuild so if a
# system updates while other configurations are building
# the status will be correct
if [ -f ../states.txt ]
then
cp ../states.txt "${CHROOT_DIR}/states.txt"
fi
done
# the states files is used for the status function
if [ -f ../states.txt ]
then
cp ../states.txt "${CHROOT_DIR}/states.txt"
fi
exit 0
fi