From 80c1913e4af0ba1850f65cfc25ffc7e940677358 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Fri, 25 Jun 2021 03:42:19 +0800 Subject: [PATCH] Revert "kdump-lib.sh: Remove is_atomic" Resolves: bz1974638 Upstream: Fedora Conflict: None commit 017903c3c4a69e2c4705943bbc1ae10bfb56073f Author: Kairui Song Date: Fri Jun 25 03:42:19 2021 +0800 Revert "kdump-lib.sh: Remove is_atomic" Now we need this helper again, for `reset-crashkernel` This reverts commit ff46cfb19e9bf944a114164e33203b1a532d35f6. Signed-off-by: Kairui Song Acked-by: Baoquan He Signed-off-by: Kairui Song --- kdump-lib.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kdump-lib.sh b/kdump-lib.sh index c2f9c0e..6511c4b 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -331,6 +331,11 @@ kdump_get_persistent_dev() { echo $(get_persistent_dev "$dev") } +is_atomic() +{ + grep -q "ostree" /proc/cmdline +} + is_ipv6_address() { echo $1 | grep -q ":"