On 04/10/15 at 09:31pm, Minfei Huang wrote:
For Atomic system, the cmdline will contain the specific string
"ostree". So we can filter out the "ostree" to judge the system is
Atomic or not.
Signed-off-by: Minfei Huang <mhuang(a)redhat.com>
---
kdump-lib.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/kdump-lib.sh b/kdump-lib.sh
index 4ca0587..f0a61f9 100755
--- a/kdump-lib.sh
+++ b/kdump-lib.sh
@@ -220,3 +220,8 @@ is_ipv6_target()
_server=${_server:-$_server_tmp}
echo $_server | grep -q ":"
}
+
+is_atomic()
+{
+ grep -q "ostree" /proc/cmdline
+}
Would you mind handling check_boot_dir() in kdumpctl too with this
function?
--
1.9.3