debian-forge-composer/internal/distro/fedora
Christian Kellner b562d144ca distro/*: allow /boot to be customized
Since the LVM support was added to all distros, our disk
related code is adaptive, i.e. we will set the correct BLS
and grub2 prefix if there a `boot` partiton is present in
the layout after all customizations happen, which includes
LVMification.
One thing that was not yet fully working was layouts that
do not yet have a `/boot` partition but allow LVMification.
In that case `NewPartitionTable` and if `/boot` was the
first (or only) customization, would LVMify the partition
which in turn would create the `/boot` partition; but after
`newPT.ensureLVM()` the call to `newPT.createFilesystem`
with `/boot` would try to create another `/boot` mountpoint.
In order to deal with this situation correctly we are now
using a two phase approach: 1) enlarge existing mountpoints
and collect new ones. 2) if there are new ones and LMVify
was allowed, switch to LVM layout. Do a second pass and now
create or enlarge existing partitions, handling `/boot` in
the process.
2022-08-08 18:05:05 +02:00
..
distro.go disk: rename MountpointAllowList -> MountpointPolicies 2022-08-08 18:05:05 +02:00
distro_test.go distro/*: allow /boot to be customized 2022-08-08 18:05:05 +02:00
images.go distro: add oscap packages to build root 2022-08-04 18:19:06 +02:00
package_sets.go manifest/anaconda: pull in biosdevname if enabled 2022-07-22 16:04:07 +02:00
partition_tables.go distro/fedora: refactor based on RHEL 9.0 code 2022-05-09 12:25:21 +02:00