a4648872ba
This patch adds an element that handles the configuration for creating a disk capable of being a remote root filesystem through iSCSI on CentOS images. Tested on Fujitsu Server and boot with BIOS and UEFI mode successfully. - Tested Boot-From-Volume + EFI for centos7 with following elements: "centos7 vm devuser cloud-init-datasources dhcp-all-interfaces iscsi-boot dracut-regenerate block-device-efi" Co-authored-By: Nguyen Van Trung <trungnv@vn.fujitsu.com> Change-Id: Ia1f23d722dced6f254fd7aee86abe8066a72fa42
13 lines
281 B
Bash
Executable file
13 lines
281 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [[ $DISTRO_NAME = "centos7" ]]; then
|
|
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
|