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>
This commit is contained in:
Dusty Mabe 2022-06-24 09:57:03 -04:00 committed by Coiby Xu
parent 980f10aa40
commit a1ebf0b565
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,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