summaryrefslogtreecommitdiff
path: root/meta-google
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2023-04-06 03:15:05 +0300
committerWilliam A. Kennington III <wak@google.com>2023-04-11 01:39:05 +0300
commitf543dd52c78184a1da4067efb421a830d67f2382 (patch)
treec8d76f318e02a41dd8cafaeb2541a5ad7bef301a /meta-google
parentca1730f040d9427616f2042363d0f239115a77dc (diff)
downloadopenbmc-f543dd52c78184a1da4067efb421a830d67f2382.tar.xz
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>
Diffstat (limited to 'meta-google')
-rw-r--r--meta-google/recipes-google/systemd/files/gbmc-log-ramoops.service2
1 files changed, 1 insertions, 1 deletions
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 474ed6f776..27aba05805 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