kexec-tools/spec
Philipp Rudo 0ff44ca6e8 kdumpctl: fix is_dracut_mod_omitted
The function is pretty broken right now. To start with the -o/--omit
option allows a quoted, space separated list of modules. But using 'set'
breaks quotation and thus only considers the first element in the list.
Furthermore dracut uses getopt internally. This means that it is also
possible to pass the list via --omit=.

Fix the function by making use of getopt for parsing the dracut_args.
While at it also add a test cases to cover the functions.

Signed-off-by: Philipp Rudo <prudo@redhat.com>
Reviewed-by: Coiby Xu <coxu@redhat.com>
2023-04-17 14:49:51 +08:00
..
support unit tests: add tests for "kdumpctl reset-crashkernel" 2022-04-14 11:45:08 +08:00
kdump-lib_spec.sh unit tests: add tests for prepare_cmdline 2023-01-30 17:37:23 +08:00
kdump-lib-initramfs_spec.sh unit tests: add tests for kdump_get_conf_val in kdump-lib-initramfs.sh 2022-04-14 11:45:18 +08:00
kdumpctl_general_spec.sh kdumpctl: fix is_dracut_mod_omitted 2023-04-17 14:49:51 +08:00
kdumpctl_reset_crashkernel_spec.sh unit tests: add tests for "kdumpctl reset-crashkernel" 2022-04-14 11:45:08 +08:00