Merge "Fix centos 8.3 partition image building error with element iscsi-boot"

This commit is contained in:
Zuul 2021-01-18 06:43:25 +00:00 committed by Gerrit Code Review
commit 3c2d18d33e

View File

@ -8,6 +8,9 @@ set -eu
set -o pipefail
if [[ $DISTRO_NAME =~ "centos" ]]; then
if [[ -L /boot/grub2/grubenv ]]; then
rm -f /boot/grub2/grubenv
fi
sed -i -E 's/(GRUB_CMDLINE_LINUX_DEFAULT=")(.+)(")/\1\2 rd.iscsi.firmware=1"/' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
fi