Skip to content

Commit 420c7c7

Browse files
Johan-Liebert1cgwalters
authored andcommitted
composefs-backend/install: Increase ESP size
We need more space than ostree as we have UKIs and UKI addons We might also need to store UKIs for pinned deployments Signed-off-by: Pragyan Poudyal <[email protected]>
1 parent 0444e6a commit 420c7c7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

crates/lib/src/install/baseline.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ use bootc_mount::is_mounted_in_pid1_mountns;
3636
// This ensures we end up under 512 to be small-sized.
3737
pub(crate) const BOOTPN_SIZE_MB: u32 = 510;
3838
pub(crate) const EFIPN_SIZE_MB: u32 = 512;
39+
/// EFI Partition size for composefs installations
40+
/// We need more space than ostree as we have UKIs and UKI addons
41+
/// We might also need to store UKIs for pinned deployments
42+
pub(crate) const CFS_EFIPN_SIZE_MB: u32 = 1024;
3943
/// The GPT type for "linux"
4044
pub(crate) const LINUX_PARTTYPE: &str = "0FC63DAF-8483-4772-8E79-3D69D8477DE4";
4145
#[cfg(feature = "install-to-disk")]
@@ -277,9 +281,16 @@ pub(crate) fn install_create_rootfs(
277281
let esp_partno = if super::ARCH_USES_EFI {
278282
let esp_guid = crate::discoverable_partition_specification::ESP;
279283
partno += 1;
284+
285+
let esp_size = if state.composefs_options.composefs_backend {
286+
CFS_EFIPN_SIZE_MB
287+
} else {
288+
EFIPN_SIZE_MB
289+
};
290+
280291
writeln!(
281292
&mut partitioning_buf,
282-
r#"size={EFIPN_SIZE_MB}MiB, type={esp_guid}, name="EFI-SYSTEM""#
293+
r#"size={esp_size}MiB, type={esp_guid}, name="EFI-SYSTEM""#
283294
)?;
284295
Some(partno)
285296
} else {

0 commit comments

Comments
 (0)