In Fedora/RISC-V case kernel and bootloader (BBL - Berkeley Boot Loader)
are external to the image. The image only delivers rootfs. Thus our
kickstart has bootloader --location=none --disabled.
If user disabled bootloader:
- Allow user to pick partition layout (i.e. do not ignore it).
- Do not write GRUB Legacy config (/boot/grub/grub.conf)
The changes were successfully used for Fedora RISC-V (riscv64) disk
images.
Tested on Fedora 29/x86_64 with Python 3. I used kickstart file
and appliance-creator execution line from Fedora-Minimal-armhfp-Rawhide-20181114.n.0
compose. Slight changes were made (armhfp to x86_64, removed
some packages), but main one was:
In Fedora/RISC-V case kernel and bootloader (BBL - Berkeley Boot Loader)
are external to the image. The image only delivers rootfs. Thus our
kickstart has
bootloader --location=none --disabled.If user disabled bootloader:
- Allow user to pick partition layout (i.e. do not ignore it).
- Do not write GRUB Legacy config (
/boot/grub/grub.conf)The changes were successfully used for Fedora RISC-V (riscv64) disk
images.
Tested on Fedora 29/x86_64 with Python 3. I used kickstart file
and appliance-creator execution line from Fedora-Minimal-armhfp-Rawhide-20181114.n.0
compose. Slight changes were made (armhfp to x86_64, removed
some packages), but main one was:
I used guestfish to verify that
/boot/grub/grub.confis gone andgdisk for GPT partition layout check on disk image.
Obsoletes: https://pagure.io/appliance-tools/pull-request/4
Signed-off-by: David Abdurachmanov david.abdurachmanov@gmail.com