If $tuned_initrd is empty or unset, the initrd will be parsed as "/initramfs-5.14.0-70.13.1.el9_0.ppc64le.img ", with a trailing space. Since this file doesn't exist, trying to boot the entry will fail and report "Error loading initrd".
Add a test case for this. To fix, trim leading and trailing blank space from fields after the grub variables have been expanded.
Consider this line in a BLS config:
If
$tuned_initrd
is empty or unset, the initrd will be parsed as"/initramfs-5.14.0-70.13.1.el9_0.ppc64le.img "
, with a trailing space. Since this file doesn't exist, trying to boot the entry will fail and report"Error loading initrd"
.Add a test case for this. To fix, trim leading and trailing blank space from fields after the grub variables have been expanded.