Skip to content

Commit

Permalink
save /persist/status for debug
Browse files Browse the repository at this point in the history
Signed-off-by: eriknordmark <erik@zededa.com>
  • Loading branch information
eriknordmark authored and rvs committed Mar 9, 2021
1 parent 8b916b1 commit 8861268
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/pillar/scripts/device-steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ if [ -d /persist/checkpoint ]; then
cp -rp /persist/checkpoint $PERSIST_AGENT_DEBUG/
fi

# Save any existing /persist/status directory for debugging
rm -rf $PERSIST_AGENT_DEBUG/status
if [ -d /persist/status ]; then
echo "$(date -Ins -u) Saving copy of /persist/status in /persist/agentdebug"
cp -rp /persist/status $PERSIST_AGENT_DEBUG/
fi

echo "$(date -Ins -u) Configuration from factory/install:"
(cd $CONFIGDIR || return; ls -l)
echo
Expand Down

0 comments on commit 8861268

Please sign in to comment.