447354f933
This use the same workaround as element bootloader's[1] to fix CentOS 8.3 partition image building error with iscsi-boot: ... 2021-01-12 07:11:02.439 | + grub2-mkconfig -o /boot/grub2/grub.cfg 2021-01-12 07:11:02.654 | /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory. 2021-01-12 07:11:02.665 | Generating grub configuration file ... 2021-01-12 07:11:03.112 | /usr/bin/grub2-editenv: error: cannot rename the file /boot/grub2/grubenv.new to /boot/grub2/grubenv: No such file or directory. ... [1]: https://review.opendev.org/c/openstack/diskimage-builder/+/750279 Closes-Bug: 1911120 Change-Id: I2de5444f7e1a145df9abb03fa4c367e8bb914e03 |
||
---|---|---|
.. | ||
environment.d | ||
extra-data.d | ||
finalise.d | ||
post-install.d | ||
element-deps | ||
package-installs.yaml | ||
README.rst |
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 setsISCSI_AUTO=true
within it. - Updates the initramfs to apply the changes.
- Installs the
- For CentOS 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