Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion dracut/99kdumpbase/kdump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ kdump_read_conf > $KDUMP_CONF_PARSED

get_kdump_confs() {
while read -r config_opt config_val; do
# remove inline comments after the end of a directive.
# Variable starts and ends with a quote, remove them
case "$config_val" in
\"*\")
config_val="${config_val#?}" # Remove the first character
config_val="${config_val%?}" # Remove the last character
;;
esac

case "$config_opt" in
path)
KDUMP_PATH="$config_val"
Expand Down
Loading