debian-forge-composer/internal/disk
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
..
btrfs.go disk: rename Create{Volume → Mountpoint} 2022-02-28 17:09:30 +01:00
disk.go distro/*: allow /boot to be customized 2022-08-08 18:05:05 +02:00
disk_test.go distro/*: allow /boot to be customized 2022-08-08 18:05:05 +02:00
filesystem.go disk: guard against nil pointer dereferencing 2022-02-22 19:23:41 +00:00
luks.go Simplified installer: add support for encrypted raw images 2022-02-28 23:05:45 +00:00
lvm.go disk: fix Payload cloning bugs 2022-02-28 23:05:45 +00:00
lvm_test.go disk: rename Create{Volume → Mountpoint} 2022-02-28 17:09:30 +01:00
partition.go disk: add partition type helpers 2022-02-27 22:03:36 +01:00
partition_table.go distro/*: allow /boot to be customized 2022-08-08 18:05:05 +02:00
path_policy.go disk: new path policies struct and methods 2022-08-08 18:05:05 +02:00
path_policy_test.go disk: new path policies struct and methods 2022-08-08 18:05:05 +02:00
path_tree_test.go disk: add generic path trie implementation 2022-08-08 18:05:05 +02:00
path_trie.go disk: add generic path trie implementation 2022-08-08 18:05:05 +02:00