diskimage-builder/diskimage_builder/elements/iscsi-boot
Xinliang Liu fd850475ea Make iscsi-boot element support centos 8
This patch makes iscsi-boot element support not only just
DISTRO_NAME centos7 but also centos and centos-minimal.

Change-Id: I8db8b01f35b2e572666badd8d2316d24a5e4287a
2020-08-25 09:28:27 +00:00
..
environment.d Make iscsi-boot element support centos 8 2020-08-25 09:28:27 +00:00
extra-data.d Make iscsi-boot element support centos 8 2020-08-25 09:28:27 +00:00
finalise.d Make iscsi-boot element support centos 8 2020-08-25 09:28:27 +00:00
post-install.d Add iscsi-boot element 2018-06-14 08:56:03 +07:00
element-deps Add iscsi-boot element 2018-06-14 08:56:03 +07:00
package-installs.yaml Add iscsi-boot element 2018-06-14 08:56:03 +07:00
README.rst Make iscsi-boot element support centos 8 2020-08-25 09:28:27 +00: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 CentOS 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 CentOS 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``.