From Fedora Project Wiki
(Created page with "= Add Support to enable GPT in kickstart = == Summary == The cloud image deployment with Btrfs support needs to be able to specify partition table type to GPT in kickstart wi...")
 
(Clean up to remove Btrfs specific info and scope it properly and tighten formatting)
Line 1: Line 1:
= Add Support to enable GPT in kickstart  =
= Add Support to enable GPT in kickstart  =
== Summary ==
== Summary ==
The cloud image deployment with Btrfs support needs to be able to specify partition table type to GPT in kickstart without requiring a pre-installation script.
Add support for configuring GPT partition table in kickstart without requiring a custom pre-installation script or a custom boot script.
[[Category:SystemWideChange]]
[[Category:SystemWideChange]]
   
   
== Owners ==
== Owners ==
* Name: [[User:Davdunc|David Duncan]], [[User:Chrismurphy|Chris Murphy]], [[User:Josef|Josef Bacik]], [[User:Salimma|Michel Alexandre Salim]], [[User:Dcavalca|Davide Cavalca]], [[User:Ngompa|Neal Gompa]], [[User:Dustymabe|Dusty Mabe]], [[User:Malmond|Matthew Almond]]
* Name: [[User:Davdunc|David Duncan]], [[User:Chrismurphy|Chris Murphy]], [[User:Salimma|Michel Alexandre Salim]], [[User:Dcavalca|Davide Cavalca]], [[User:Ngompa|Neal Gompa]], [[User:Dustymabe|Dusty Mabe]]
* Email: davdunc@amazon.com, chrismurphy@fedoraproject.org, michel@michel-slm.name, dcavalca@fb.com, ngompa13@gmail.com, dusty@dustymabe.com  
* Email: davdunc@amazon.com, chrismurphy@fedoraproject.org, josef@toxicpanda.com, michel@michel-slm.name, dcavalca@fb.com, ngompa13@gmail.com, dusty@dustymabe.com, malmond@fb.com
* Products: Fedora Cloud Edition
* Products: Fedora Cloud Edition
* Responsible WGs: Fedora Cloud WG
* Responsible WGs: Fedora Cloud WG
   
   
Line 21: Line 17:
<!-- The Wrangler announces the Change to the devel-announce list and changes the category to Category:ChangeAnnounced (no action required) -->
<!-- The Wrangler announces the Change to the devel-announce list and changes the category to Category:ChangeAnnounced (no action required) -->
<!-- After review, the Wrangler will move your page to Category:ChangeReadyForFesco&#x2026; if it still needs more work it will move back to Category:ChangePageIncomplete-->
<!-- After review, the Wrangler will move your page to Category:ChangeReadyForFesco&#x2026; if it still needs more work it will move back to Category:ChangePageIncomplete-->
<!-- Select proper category, default is Self Contained Change -->
<!-- Select proper category, default is Self Contained Change -->
<!-- -->
<!-- -->
* Targeted release: [[Releases/35 | Fedora Linux 35 ]]
* Targeted release:
* Last updated: <!-- this is an automatic macro — you don't need to change this line -->  {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}  
* FESCo issue: <will be assigned by the Wrangler>  
* Last updated: <!-- this is an automatic macro — you don't need to change this line -->  {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
* Tracker bug: <will be assigned by the Wrangler>  
* FESCo issue: <will be assigned by the Wrangler>
* Tracker bug: <will be assigned by the Wrangler>
* Release notes tracker: <will be assigned by the Wrangler>
* Release notes tracker: <will be assigned by the Wrangler>
   
   
== Detailed Description ==
== Detailed Description ==
Fedora Cloud Edition will switch to using Btrfs for its images and
Fedora Cloud Edition wants to use a GPT partition table; however, it is not possible
require setting the partition table to GPT at build. It would be
to force the creation of an image with the GPT partition table with our current tooling
better if anaconda inst.gpt was supported to set the partition table to
because Anaconda requires setting <code>inst.gpt</code> as a kernel boot parameter
GPT. Currently there is no pykickstart option supporting inst.gpt
to do it. This Change proposes to add a way to declare this via kickstart so
that the Cloud Edition image builds can create images using the GPT partition table
using the current tooling (which is built on Anaconda).
   
   
== Feedback ==
== Feedback ==
   
   
== Benefit to Fedora ==
== Benefit to Fedora ==
Adds support for GPT volume partitions in the kickstart without
Users will be able to install systems with a GPT partition table via kickstart without
requiring and extensive pre-installation script.
requiring an extensive custom pre-installation script or a custom boot script. Disk images
produced using the Anaconda tooling (Oz/ImageFactory, Lorax) can also trivially make
images with GPT partition tables. This makes it possible to create hybrid BIOS+UEFI boot
images, given [[Changes/UnifyGrubConfig|the changes to GRUB configuration from Fedora Linux 34]].
   
   
== Scope ==
== Scope ==
* Proposal Owners
* Proposal Owners
** Review and discuss with the Anaconda maintainers and determine the next steps for support of the inst.gpt in pykickstart
  * Review and discuss with the Anaconda maintainers and determine
** Work with Anaconda maintainers to implement in Anaconda
    the next steps for support of the inst.gpt in pykickstart
   
   
== How to test ==
== How to test ==
Build images using virt-install or os-build and cloud
Build images using virt-install with kickstarts. Verify that the disk partition table is properly configured as GPT.
kickstarts. Verify that the disk PT is properly identified as GPT.
   
   
== User Experience ==
== User Experience ==
* Allows for the use of the standard pykickstart directive for
* Allows for the use of the standard pykickstart directive for specifying the preference for GPT partition.
  specifying the preference for GPT partition.
* Supports automated builds for Cloud images.
   
   
== Dependencies ==
== Dependencies ==
Anaconda [https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#inst-gpt inst.gpt]
* Anaconda [https://anaconda-installer.readthedocs.io/en/latest/boot-options.html#inst-gpt inst.gpt]

Revision as of 12:19, 27 May 2021

Add Support to enable GPT in kickstart

Summary

Add support for configuring GPT partition table in kickstart without requiring a custom pre-installation script or a custom boot script.

Owners

Current Status

  • Targeted release: Fedora Linux 35
  • Last updated: 2021-05-27
  • FESCo issue: <will be assigned by the Wrangler>
  • Tracker bug: <will be assigned by the Wrangler>
  • Release notes tracker: <will be assigned by the Wrangler>

Detailed Description

Fedora Cloud Edition wants to use a GPT partition table; however, it is not possible to force the creation of an image with the GPT partition table with our current tooling because Anaconda requires setting inst.gpt as a kernel boot parameter to do it. This Change proposes to add a way to declare this via kickstart so that the Cloud Edition image builds can create images using the GPT partition table using the current tooling (which is built on Anaconda).

Feedback

Benefit to Fedora

Users will be able to install systems with a GPT partition table via kickstart without requiring an extensive custom pre-installation script or a custom boot script. Disk images produced using the Anaconda tooling (Oz/ImageFactory, Lorax) can also trivially make images with GPT partition tables. This makes it possible to create hybrid BIOS+UEFI boot images, given the changes to GRUB configuration from Fedora Linux 34.

Scope

  • Proposal Owners
    • Review and discuss with the Anaconda maintainers and determine the next steps for support of the inst.gpt in pykickstart
    • Work with Anaconda maintainers to implement in Anaconda

How to test

Build images using virt-install with kickstarts. Verify that the disk partition table is properly configured as GPT.

User Experience

  • Allows for the use of the standard pykickstart directive for specifying the preference for GPT partition.

Dependencies