Noam Angel 48eac8b899 fix iscsi-boot element exiting build even if dracut-regenerate used
in CentOS build case building an image with "iscsi-boot" and "dracut-regenerate" will exit building because of statement "[ "$found" = 0 ]"

Change-Id: I1a6d60e9ec5f5cb508866c8376465c3e73551a30
2020-02-12 09:09:20 +00:00
..
2018-06-14 08:56:03 +07:00
2018-06-14 08:56:03 +07:00
2018-06-14 08:56:03 +07:00

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 sets ISCSI_AUTO=true within it.
  • Updates the initramfs to apply the changes.
For CentOS7 images:
  • Required dracut-regenerate element when performs disk-image-create.
  • Updates network and iscsi into dracut-regenerate during pre-installs.
  • Updates GRUB_CMDLINE_LINUX_DEFAULT into /etc/default/grub.