kexec-boot, functions: Restore eval and DO_WITH_DEBUG that were deleted

`eval "$kexeccmd"` should become `DO_WITH_DEBUG eval "$kexeccmd"` when
adding DO_WITH_DEBUG, command invocation is still the same, still needs
eval.

Restore DO_WITH_DEBUG in front of kexec-parse-boot that had been
removed.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2024-04-19 13:35:17 -04:00
parent d8810b7032
commit d3656bbe65
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ if [ "$dryrun" = "y" ]; then exit 0; fi
echo "Loading the new kernel:"
echo "$kexeccmd"
DO_WITH_DEBUG "$kexeccmd" \
DO_WITH_DEBUG eval "$kexeccmd" \
|| die "Failed to load the new kernel"
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then

View File

@ -763,7 +763,7 @@ scan_boot_options() {
if [ -r $option_file ]; then rm $option_file; fi
for i in $(find $bootdir -name "$config"); do
kexec-parse-boot "$bootdir" "$i" >>$option_file
DO_WITH_DEBUG kexec-parse-boot "$bootdir" "$i" >>$option_file
done
# FC29/30+ may use BLS format grub config files
# https://fedoraproject.org/wiki/Changes/BootLoaderSpecByDefault