[packages/linux-pstore] Rel 2; do nothing if there is no mount (vserver guest).
arekm
arekm at pld-linux.org
Wed Mar 1 11:25:57 CET 2023
commit 83bef85bf7071b548280dc6f93dc4ed71e7d8736
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Mar 1 11:25:48 2023 +0100
Rel 2; do nothing if there is no mount (vserver guest).
linux-pstore.py | 2 +-
linux-pstore.spec | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/linux-pstore.spec b/linux-pstore.spec
index fe03820..21d6dc9 100644
--- a/linux-pstore.spec
+++ b/linux-pstore.spec
@@ -1,7 +1,7 @@
Summary: Save pstore logs and make room for future logs
Name: linux-pstore
Version: 0.4
-Release: 1
+Release: 2
License: GPL
Group: Daemons
Source0: %{name}.py
diff --git a/linux-pstore.py b/linux-pstore.py
index 037367c..b219c54 100755
--- a/linux-pstore.py
+++ b/linux-pstore.py
@@ -23,7 +23,7 @@ os.umask(0o077)
def mount_pstore():
try:
- if open('/proc/self/mounts', 'r').read().find('/sys/fs/pstore') >= 0:
+ if not os.path.isfile('/bin/mount') or open('/proc/self/mounts', 'r').read().find('/sys/fs/pstore') >= 0:
return
subprocess.run(["/bin/mount", "none", "/sys/fs/pstore", "-t", "pstore", "-o", "nosuid,nodev,noexec"],
timeout=60, check=True, capture_output=True, text=True)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/linux-pstore.git/commitdiff/83bef85bf7071b548280dc6f93dc4ed71e7d8736
More information about the pld-cvs-commit
mailing list