Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rhkdump/kdump-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dc13a2cb00c0c8d54591899afc325c631ebd5f9a
Choose a base ref
..
head repository: rhkdump/kdump-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6d119257201146ea39435fadcb9334e15bae101f
Choose a head ref
Showing with 11 additions and 5 deletions.
  1. +11 −5 mkdumprd
16 changes: 11 additions & 5 deletions mkdumprd
Original file line number Diff line number Diff line change
@@ -439,12 +439,18 @@ elif ! is_fadump_capable && \
add_mount "$status_target"
fi

_dracut_add_confdir_option="--add-confdir"
# Use kdump managed dracut profile.
_dracut_add_confdir_option="--confdir"
if dracut --help | grep -q "add-confdir" ; then
_dracut_add_confdir_option="--add-confdir"
fi

# dracut doesn't support --add-confdir before 104, use --confdir instead.
dracut --help | grep "add-confdir" -q
[[ $? -eq 0 ]] || _dracut_add_confdir_option="--confdir"
[[ $kdumpdracutconfdir ]] || kdumpdracutconfdir=/lib/kdump/dracut.conf.d
[ -d "$kdumpdracutconfdir" ] && dracut_args+=("$_dracut_add_confdir_option" "$kdumpdracutconfdir")
if [ -d "$kdumpdracutconfdir" ]; then
dracut_args+=("$_dracut_add_confdir_option" "$kdumpdracutconfdir")
else
dracut_args+=(--add kdumpbase)
dracut_args+=(--omit "rdma plymouth resume ifcfg earlykdump")
fi

dracut "${dracut_args[@]}" "$@"