2018-02-09 08:05:33 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2020-08-19 10:14:27 +00:00
|
|
|
if [[ $DISTRO_NAME =~ "centos" ]]; then
|
2021-01-14 02:05:20 +00:00
|
|
|
if [[ -L /boot/grub2/grubenv ]]; then
|
|
|
|
rm -f /boot/grub2/grubenv
|
|
|
|
fi
|
2018-02-09 08:05:33 +00:00
|
|
|
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
|