#820 Configure Fedora Cloud with GPT with Hybrid Boot
Merged 4 years ago by siosm. Opened 4 years ago by ngompa.
ngompa/fedora-kickstarts f35-gpt-hybridboot  into  main

file modified
+1 -1
@@ -9,7 +9,7 @@ 

  # Don't show bootloader as it's impossible for the user to get to it in time

  # So we might as well not waste the 1 second on each boot.

  # https://cloud.google.com/compute/docs/import/import-existing-image

- bootloader --timeout=0 --append="no_timer_check net.ifnames=0 console=ttyS0,38400n8d"

+ bootloader --timeout=0 --location=mbr --append="no_timer_check net.ifnames=0 console=ttyS0,38400n8d"

  

  # redefine `services` here to drop cloud-init systemd unit enablements from

  # fedora-cloud-base.ks since we don't use them.

file modified
+1 -1
@@ -19,7 +19,7 @@ 

  # even on VirtualBox virt, we get a primary network device with "eth0" as the name

  # This simplifies things and allows a single disk image for both supported Vagrant

  # platforms (virtualbox and kvm)

- bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"

+ bootloader --timeout=1 --location=mbr --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"

  

  %packages

  # The default koji Vagrantfile configuration uses rsync to sync files between

file modified
+14 -4
@@ -32,13 +32,19 @@ 

  firewall --disabled

  

  # We pass net.ifnames=0 because we always want to use eth0 here on all the cloud images.

- bootloader --timeout=1 --append="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8"

+ bootloader --timeout=1 --location=mbr --append="no_timer_check net.ifnames=0 console=tty1 console=ttyS0,115200n8"

  

  services --enabled=sshd,cloud-init,cloud-init-local,cloud-config,cloud-final

  

- zerombr

- clearpart --all

- autopart --type=btrfs --noswap

+ # Configure for gpt with bios+uefi

+ clearpart --all --initlabel --disklabel=gpt

+ part biosboot  --size=1    --fstype=biosboot

+ part /boot/efi --size=100  --fstype=efi

+ part /boot     --size=500  --fstype=ext4 --label=boot

+ part btrfs.007 --size=2000 --fstype=btrfs --grow

+ btrfs none --label=fedora btrfs.007

+ btrfs /home --subvol --name=home LABEL=fedora

+ btrfs /     --subvol --name=root LABEL=fedora

  

  %include fedora-repo.ks

  
@@ -87,6 +93,10 @@ 

  ##### begin kickstart post ###########################################

  %post --erroronfail

  

+ # Blivet sets pmbr_boot flag erroneously and we need to purge it

+ # otherwise it'll fail to boot

+ parted /dev/vda disk_set pmbr_boot off

+ 

  # linux-firmware is installed by default and is quite large. As of mid 2020:

  #   Total download size: 97 M

  #   Installed size: 268 M

Fedora Cloud is now set up so that it builds the disk with
GPT partitioning and has a specific partitioning layout so
that the resulting images are equipped to boot either with
legacy BIOS or UEFI.

Reference: https://fedoraproject.org/wiki/Changes/FedoraCloudHybridBoot

Requires: https://pagure.io/fedora-comps/pull-request/664

rebased onto a859cc04bc42b210a1dc3b141b2cd2a130059116

4 years ago

rebased onto cfde2dd8cbf03eefe02a784a5acc302de2b40327

4 years ago

rebased onto 4cd70112c8e86660fa4e89543664cd67f5a89db0

4 years ago

rebased onto 353d61ad995c07b5799e978656b4afdcda520d9f

4 years ago

rebased onto 5ad14831afe670af500492a08fa154feb81b8ad9

4 years ago

rebased onto b069129b6f2de78614c8331bb8d2f89ea6d9e0f8

4 years ago

rebased onto 611edda

4 years ago

You do not mention the cloud-bootloader-tools group here. Where do you make use of it?

You do not mention the cloud-bootloader-tools group here. Where do you make use of it?

We pull it in through cloud-server-environment group.

Pull-Request has been merged by siosm

4 years ago