kdump-lib: change how ostree based systems are detected

Resolves: bz2174836
Upstream: Fedora
Conflict: None

commit a1ebf0b565
Author: Dusty Mabe <dusty@dustymabe.com>
Date:   Fri Jun 24 09:57:03 2022 -0400

    kdump-lib: change how ostree based systems are detected

    The current recommendation is to check for /run/ostree-booted.

    See https://bugzilla.redhat.com/show_bug.cgi?id=2092012#c0

    Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
    Acked-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Lichen Liu <lichliu@redhat.com>
This commit is contained in:
Lichen Liu 2023-03-07 10:37:37 +08:00
parent e47ec659e9
commit 0cecfa7d45

View File

@ -256,7 +256,7 @@ kdump_get_persistent_dev()
is_ostree()
{
grep -q "ostree" /proc/cmdline
test -f /run/ostree-booted
}
# get ip address or hostname from nfs/ssh config value