Remove extra spaces from GRUB_CMDLINE_LINUX_DEFAULT

Remove extra spaces from GRUB_CMDLINE_LINUX_DEFAULT in the
/etc/default/grub when there is no boot laber and/or fips
not enabled.

TrivialFix

Change-Id: Ie83781b9ceca16ff63e08e3d1f887aa6d33fec99
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2023-09-15 17:11:22 +03:00
parent 1897b12ee9
commit c2853c6f2c

View File

@ -105,10 +105,10 @@ sed -i 's/\ boot=[0-9A-Za-z/=\-]\+//' /etc/default/grub
# is a separate filesystem, and convey this fact as a boot
# argument so dracut does not halt the system on boot.
BOOT_FS=""
if [[ -n "${DIB_BOOT_LABEL}" ]]; then
BOOT_FS=" boot=LABEL=${DIB_BOOT_LABEL}"
else
BOOT_FS=""
fi
# NOTE(TheJulia): While on the subject of FIPS, if there is not an