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
738 B
738 B
iscsi-boot
Handles configuration for the disk to be capable of serving as a remote root filesystem through iSCSI. Currently, this element can configure Ubuntu/Debian images and CentOS7 images.
It performs the following actions:
- For Ubuntu/Debian images:
-
- Installs the
open-iscsi
package. - Creates the
etc/iscsi/iscsi.initramfs
configuration file and setsISCSI_AUTO=true
within it. - Updates the initramfs to apply the changes.
- Installs the
- For CentOS7 images:
-
- Required
dracut-regenerate
element when performsdisk-image-create
. - Updates
network
andiscsi
intodracut-regenerate
during pre-installs. - Updates
GRUB_CMDLINE_LINUX_DEFAULT
into/etc/default/grub
.
- Required