Revert "kdump-lib.sh: Remove is_atomic"
Resolves: bz1974638 Upstream: Fedora Conflict: None commit017903c3c4
Author: Kairui Song <kasong@redhat.com> 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 commitff46cfb19e
. Signed-off-by: Kairui Song <kasong@redhat.com> Acked-by: Baoquan He <bhe@redhat.com> Signed-off-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
parent
e45a51c995
commit
80c1913e4a
@ -331,6 +331,11 @@ kdump_get_persistent_dev() {
|
|||||||
echo $(get_persistent_dev "$dev")
|
echo $(get_persistent_dev "$dev")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is_atomic()
|
||||||
|
{
|
||||||
|
grep -q "ostree" /proc/cmdline
|
||||||
|
}
|
||||||
|
|
||||||
is_ipv6_address()
|
is_ipv6_address()
|
||||||
{
|
{
|
||||||
echo $1 | grep -q ":"
|
echo $1 | grep -q ":"
|
||||||
|
Loading…
Reference in New Issue
Block a user