DIB: Add custom block-device-efi element 83/1983/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 14 Nov 2019 16:50:25 +0000 (17:50 +0100)
committerAlex Antone <Alexandru.Antone@enea.com>
Thu, 28 Nov 2019 14:02:37 +0000 (14:02 +0000)
commit9c647747fb6487004d7952e419d71aa8e2008bda
treede28f16b3c1950e824488cf278c603b7dcada3fb
parent70d3938ad1476456184331860b847503a0da6653
DIB: Add custom block-device-efi element

Upstream block-device-efi DIB element hardcodes the root partition
filesystem type to 'ext4', hence ignoring our FS_TYPE env var
during image building. Although the image builds successfully,
booting the resulting ISO will run into various issues, especially
since most of our scripts assume an XFS root partition.

To allow overriding the rootfs type, provide our own block-device-efi
DIB element, identical to upstream [1] apart from hardcoding
mkfs.type for /. Our override will take precedence during image
building.

$ diff -Naur \
  ../diskimage-builder/diskimage_builder/elements/block-device-efi/
  ./dib_elements/block-device-efi/
@@ -22,7 +22,6 @@
         type: '8300'
         size: 100%
         mkfs:
-          type: ext4
           mount:
             mount_point: /
             fstab:

[1] https://github.com/openstack/diskimage-builder/tree/2.29.1/ \
    diskimage_builder/elements/block-device-efi

Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: Ic611bfcf00ad38e8a8a7332a64562f615096207a
dib_elements/block-device-efi/README.rst [new file with mode: 0644]
dib_elements/block-device-efi/block-device-default.yaml [new file with mode: 0644]
dib_elements/block-device-efi/element-provides [new file with mode: 0644]
dib_elements/block-device-efi/environment.d/15-block-device.bash [new file with mode: 0644]