Skip to content

Commit

Permalink
install: Hoist out a const for linux partition type
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters authored and jeckersb committed Jul 17, 2024
1 parent f00395c commit 14cf04b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/install/baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ use crate::task::Task;
// This ensures we end up under 512 to be small-sized.
pub(crate) const BOOTPN_SIZE_MB: u32 = 510;
pub(crate) const EFIPN_SIZE_MB: u32 = 512;
/// The GPT type for "linux"
pub(crate) const LINUX_PARTTYPE: &str = "0FC63DAF-8483-4772-8E79-3D69D8477DE4";

#[derive(clap::ValueEnum, Debug, Copy, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case")]
Expand Down Expand Up @@ -307,7 +309,7 @@ pub(crate) fn install_create_rootfs(
rootpn,
root_size,
"root",
Some("0FC63DAF-8483-4772-8E79-3D69D8477DE4"),
Some(LINUX_PARTTYPE),
);
sgdisk.run().context("Failed to run sgdisk")?;
tracing::debug!("Created partition table");
Expand Down

0 comments on commit 14cf04b

Please sign in to comment.