Merge "Fix centos 8.3 partition image building error with element iscsi-boot"
This commit is contained in:
commit
3c2d18d33e
@ -8,6 +8,9 @@ set -eu
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ $DISTRO_NAME =~ "centos" ]]; then
|
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
|
sed -i -E 's/(GRUB_CMDLINE_LINUX_DEFAULT=")(.+)(")/\1\2 rd.iscsi.firmware=1"/' /etc/default/grub
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user