commit | f543dd52c78184a1da4067efb421a830d67f2382 | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Wed Apr 05 17:15:05 2023 -0700 |
committer | William A. Kennington III <wak@google.com> | Mon Apr 10 22:39:05 2023 +0000 |
tree | c8d76f318e02a41dd8cafaeb2541a5ad7bef301a | |
parent | ca1730f040d9427616f2042363d0f239115a77dc [diff] |
meta-google: gbmc-log-ramoops: Delete pstore files after consumption Otherwise, subsequent reboots will still have the file. Change-Id: I16eed02d615759e785b978aef9550b203ae01090 Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service b/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service index 474ed6f..27aba05 100644 --- a/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service +++ b/meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service
@@ -2,7 +2,7 @@ Type=oneshot SyslogIdentifier=gbmc-log-ramoops SyslogLevelPrefix=true -ExecStart=/usr/bin/find /sys/fs/pstore -name '*-*' -print -exec cat {} \; +ExecStart=/usr/bin/find /sys/fs/pstore -name '*-*' -print -exec cat {} \; -exec rm -f {} \; [Install] WantedBy=multi-user.target