Bug 1230997 - use new Anaconda reqpart command in kickstart snippet for custom partitioning
Summary: use new Anaconda reqpart command in kickstart snippet for custom partitioning
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: general
Version: 20
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 25.0
Assignee: Dan Callaghan
QA Contact: Anwesha Chatterjee
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-12 01:24 UTC by Dan Callaghan
Modified: 2018-03-19 04:19 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-03-19 04:19:07 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1249495 0 medium CLOSED [REGRESSION] rhts_partitions needlessly creates a BIOS boot partition 2021-02-22 00:41:40 UTC

Internal Links: 1249495

Description Dan Callaghan 2015-06-12 01:24:11 UTC
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+.

Comment 1 Dan Callaghan 2015-10-12 04:44:38 UTC
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.

Comment 2 Dan Callaghan 2017-11-07 04:15:56 UTC
https://gerrit.beaker-project.org/5917

Comment 4 Anwesha Chatterjee 2018-01-09 05:01:34 UTC
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`

Comment 5 Roman Joost 2018-03-19 04:19:07 UTC
Beaker 25.0 has been released.

Release notes are available upstream: https://beaker-project.org/docs/whats-new/release-25.html


Note You need to log in before you can comment on or make changes to this bug.