Revert "kdump-lib.sh: Remove is_atomic"

Now we need this helper again, for `reset-crashkernel`

This reverts commit ff46cfb19e.

Signed-off-by: Kairui Song <kasong@redhat.com>
Acked-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
Kairui Song 2021-06-25 03:42:19 +08:00
parent 97930d3cca
commit 017903c3c4

View File

@ -341,6 +341,11 @@ kdump_get_persistent_dev() {
echo $(get_persistent_dev "$dev")
}
is_atomic()
{
grep -q "ostree" /proc/cmdline
}
is_ipv6_address()
{
echo $1 | grep -q ":"