In bug 1164660 Anaconda gained a new command "reqpart" which acts like autopart but only creates any platform-specific required partitions. Additionally "reqpart --boot" does the same but also creates a suitable /boot partition. We can use this to simplify Beaker's rhts_partitions snippet when the distro supports it. The existing pile of platform-specific partition stuff in that snippet can be replaced by "reqpart --boot". Need to check where exactly this landed but I think it will be F23+, RHEL8+, RHEL7.2+.
According to bug 1164660 the necessary Anaconda patch has been in RHEL 7.2 nightlies since August, and will be therefore be in RHEL 7.2 final as well. Therefore we should be safe to start using this in Beaker for any distros identifying themselves as RHEL7.2 or newer.
https://gerrit.beaker-project.org/5917
Verified with the following steps: * submitted a job XML as follows: ``` <job retention_tag="scratch"> <whiteboard>test for BZ1230997</whiteboard> <recipeSet priority="Normal"> <recipe whiteboard="RHEL-7.2-20151030.0 Server ppc64 STANDALONE" role="None" ks_meta="" kernel_options="" kernel_options_post=""> <autopick random="false"/> <watchdog panic="None"/> <packages/> <ks_appends/> <repos/> <distroRequires> <and> <distro_name op="=" value="RHEL-7.2-20151030.0"/> <distro_variant op="=" value="Server"/> <distro_arch op="=" value="ppc64"/> </and> </distroRequires> <hostRequires> <system_type value="Machine"/> </hostRequires> <partitions> <partition name="lol" fs="xfs" size="100"/> </partitions> <task name="/distribution/install" role="STANDALONE"/> <task name="/distribution/beaker/Sanity/Skip-result" role="STANDALONE"/> <task name="/distribution/beaker/Sanity/reboot-tests" role="STANDALONE"/> </recipe> </recipeSet> </job> ``` * kickstart contains the following line: `reqpart --add-boot`
Beaker 25.0 has been released. Release notes are available upstream: https://beaker-project.org/docs/whats-new/release-25.html