Skip to content

Commit

Permalink
... create uefi via templates, not automatically via code.
Browse files Browse the repository at this point in the history
  • Loading branch information
guettli committed Mar 1, 2024
1 parent 8ef74a9 commit ca74781
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/services/baremetal/host/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ SWRAID %v`, autoSetupInput.hostName, installImageSpec.Swraid)
SWRAIDLEVEL %v`, hostName, installImageSpec.SwraidLevel)
}

// We always create the UEFI partition, even for legacy BIOS.
// This makes the setup easier, if the partition table type should
// get changed later.
partitions := "PART /boot/efi esp 512\n"

var partitions string
for _, partition := range installImageSpec.Partitions {
partitions = fmt.Sprintf(`%s
PART %s %s %s`, partitions, partition.Mount, partition.FileSystem, partition.Size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
image:
path: /root/.oldroot/nfs/install/../images/Ubuntu-2004-focal-64-minimal-hwe.tar.gz
partitions:
- fileSystem: esp
mount: /boot/efi
size: 512M
- mount: /boot
fileSystem: ext4
size: 1024M
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
image:
path: /root/.oldroot/nfs/install/../images/Ubuntu-2004-focal-64-minimal-hwe.tar.gz
partitions:
- fileSystem: esp
mount: /boot/efi
size: 512M
- mount: /boot
fileSystem: ext4
size: 1024M
Expand Down
3 changes: 3 additions & 0 deletions templates/cluster-templates/cluster-class.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,9 @@ spec:
image:
path: /root/.oldroot/nfs/install/../images/Ubuntu-2004-focal-64-minimal-hwe.tar.gz
partitions:
- fileSystem: esp
mount: /boot/efi
size: 512M
- fileSystem: ext4
mount: /boot
size: 1024M
Expand Down

0 comments on commit ca74781

Please sign in to comment.