From cc07060b08d5686b3493d5e2cf566c510383bf2e Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 14 May 2024 17:16:19 -0400 Subject: [PATCH] install/baseline: Make `/boot` the same fs type as `/` Let's not hardcode a fs type. Signed-off-by: Colin Walters --- lib/src/install/baseline.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/src/install/baseline.rs b/lib/src/install/baseline.rs index 6e79c823c..9d6e92f6b 100644 --- a/lib/src/install/baseline.rs +++ b/lib/src/install/baseline.rs @@ -360,12 +360,11 @@ pub(crate) fn install_create_rootfs( } }; - // TODO: make this configurable - let bootfs_type = Filesystem::Ext4; - - // Initialize the /boot filesystem + // Initialize the /boot filesystem. Note that in the future, we may match + // what systemd/uapi-group encourages and make /boot be FAT32 as well, as + // it would aid systemd-boot. let bootdev = &findpart(BOOTPN)?; - let boot_uuid = mkfs(bootdev, bootfs_type, "boot", []).context("Initializing /boot")?; + let boot_uuid = mkfs(bootdev, root_filesystem, "boot", []).context("Initializing /boot")?; // Initialize rootfs let root_uuid = mkfs(&rootdev, root_filesystem, "root", [])?;