Bug 1088761
Summary: | rhts_partitions snippet should create /boot/efi for UEFI-based system | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Jun'ichi NOMURA <junichi.nomura> |
Component: | lab controller | Assignee: | Dan Callaghan <dcallagh> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 0.16 | CC: | aigao, asaha, dcallagh, kueda, rmancy, tatsu-ab1, tnishimura, xma |
Target Milestone: | 0.17.1 | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-07-18 08:17:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jun'ichi NOMURA
2014-04-17 07:01:26 UTC
I filed bug 1112439 for recording the firmware type in Beaker. In the meantime we can examine the NETBOOT_METHOD key (NETBOOT_METHOD=efigrub means it booted in EFI mode). On Gerrit: http://gerrit.beaker-project.org/3168 "ondisk" line is needed inside "if system.has_efi" block, too. Quoted from Gerrit: +{% if system and system.has_efi %} +{# x86 EFI #} +part /boot/efi --fstype vfat --size 200 --recommended +{% else %} +{# x86 BIOS #} +part /boot --size 200 --recommended --asprimary +{%- if fstype %} --fstype {{ fstype }}{% endif %} +{%- if ondisk %} --ondisk={{ ondisk }}{% endif %} +{% endif %} Expected: +{% if system and system.has_efi %} +{# x86 EFI #} +part /boot/efi --fstype vfat --size 200 --recommended +{%- if ondisk %} --ondisk={{ ondisk }}{% endif %} +{% else %} +{# x86 BIOS #} +part /boot --size 200 --recommended --asprimary +{%- if fstype %} --fstype {{ fstype }}{% endif %} +{%- if ondisk %} --ondisk={{ ondisk }}{% endif %} +{% endif %} (In reply to Jun'ichi NOMURA from comment #4) Well spotted! (In reply to Dan Callaghan from comment #2) > In the > meantime we can examine the NETBOOT_METHOD key (NETBOOT_METHOD=efigrub means > it booted in EFI mode). Do we have to set NETBOOT_METHOD=efigrub key/value pair manually in the inventory system? (In reply to Jun'ichi NOMURA from comment #7) > Do we have to set NETBOOT_METHOD=efigrub key/value pair manually in the > inventory system? It is populated automatically by /distribution/inventory, or you can set it manually. beaker-distribution-inventory-1.2-3 is used in our lab currently but NETBOOT_METDHO=efigrub was not set for EFI system. Does the automatic registration need newer /distribution/inventory? It could be because the NETBOOT_METHOD key is not defined in your Beaker installation. The key was added in 2012, it is created automatically for new Beaker installations, but existing installations would need to add it manually as a non-numeric key type using Admin -> Key Types. Unfortunately we didn't have proper release notes back then, so this step was never noted anywhere. I've added this for you Jun'ichi. Notes for verification: * This bug only affects recipes which use custom partitioning. When no custom partitions are defined, Beaker uses 'autopart' in the kickstart which tells Anaconda to figure out the right partitions itself. To trigger custom partitioning, you can just add a small custom partition with any mount point, for example <partition fs="ext4" name="mnt" size="1" />. * You can search on the NETBOOT_METHOD key-value to find BIOS or EFI systems. NETBOOT_METHOD=pxe is x86 BIOS, NETBOOT_METHOD=efigrub is x86 EFI. IBM x3250 m4 systems have EFI firmware, KVM guests have BIOS firmware. * x86 EFI is only supported on RHEL6+ and Fedora. Suggested test cases: * Check that Beaker recipes using custom partitioning run successfully on an x86 EFI system using RHEL6, RHEL7, and Fedora. Verify that /boot/efi partition is defined in the kickstart, and exists after installation. * Check that Beaker recipes using custom partitioning still run successfully on x86 BIOS systems. (In reply to Dan Callaghan from comment #10) > It could be because the NETBOOT_METHOD key is not defined in your Beaker > installation. > > The key was added in 2012, it is created automatically for new Beaker > installations, but existing installations would need to add it manually as a > non-numeric key type using Admin -> Key Types. Unfortunately we didn't have > proper release notes back then, so this step was never noted anywhere. After NETBOOT_METHOD key is added and re-running /distribution/inventory, NETBOOT_METHOD=efigrub is added to the EFI system. Thank you. Beaker 0.17.1 has been released. |