EFI support for installmedia dracut module 88/1988/10 master
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Fri, 15 Nov 2019 14:19:01 +0000 (15:19 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 9 Dec 2019 14:08:15 +0000 (15:08 +0100)
commit9ae903606e4e36c1dd652279c412b5ef0ab7d762
treec242670be09027ffc72652b030ff733afd263f24
parent06e73ed8bfb037b6e49ceda1c8cb234b57566b47
EFI support for installmedia dracut module

- fix non-printable character in sh script;
- add UEFI and GPT partition table handling:
  * move backup GPT data structures to the end of the disk after
    dumping the image to disk;
  * mount the 3rd partition as root if EFI system partition (ESP) is
    present, while also mounting ESP separately;
  * use the appropiate path for grub.cfg depending on whether UEFI
    is used or not;
  * add a few seconds of delay to allow all GPT partitions to be
    properly discovered before attempting to mount sysroot;
- extend requires to include the full `cloud-utils` package and its
  dependencies (e.g. util-linux, qemu-img-ev, cloud-utils-growpart)
  since the AArch64 base image does not include growpart like the
  x86_64 base image does (x86_64 base image qcow2 being newer than
  its aarch64 counterpart - version 1801 versus 1708);

While at it, fix loading the ipmi_ssif kernel module on AArch64.

Co-authored-by: Jimmy Lafontaine Rivera <lafonj@gmail.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Change-Id: Ibef1b8fc16c3d95eca1ac87ec8cc3b449df1eb0a
dracut/modules/00installmedia/installmedia-lib.sh
dracut/modules/00installmedia/installmedia.sh
dracut/modules/00installmedia/module-setup.sh
image-provision.spec