From 88612684512a8f665f6b3303abaa9448279c2c33 Mon Sep 17 00:00:00 2001 From: eriknordmark Date: Mon, 8 Mar 2021 10:39:57 +0100 Subject: [PATCH] save /persist/status for debug Signed-off-by: eriknordmark --- pkg/pillar/scripts/device-steps.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/pillar/scripts/device-steps.sh b/pkg/pillar/scripts/device-steps.sh index b87888b907..818c86ce53 100755 --- a/pkg/pillar/scripts/device-steps.sh +++ b/pkg/pillar/scripts/device-steps.sh @@ -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