diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-12-16 17:19:50 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-12-16 17:19:50 +0100 |
commit | ef6b2509bd5f0c141b68799e52965db38eab2148 (patch) | |
tree | ce0622eeced3054c0ececb3aa5f9952c43e816f7 | |
parent | b8a1fee4086a90418c1e5b56ca4d99b978be2814 (diff) |
clarify that rootfs is a squashfs
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 03785a6..81dc480 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,7 @@ fn write_mbr_partition_table(file: &mut std::fs::File, dev_size: u64) -> anyhow: const INVALID_CHS: &[u8] = &[0xFF, 0xFF, 0xFE]; // Causes sector values to be used const FAT: &[u8] = &[0xc]; const LINUX: &[u8] = &[0x83]; + const SQUASHFS: &[u8] = LINUX; const SIGNATURE: &[u8] = &[0x55, 0xAA]; #[allow(non_upper_case_globals)] @@ -62,7 +63,7 @@ fn write_mbr_partition_table(file: &mut std::fs::File, dev_size: u64) -> anyhow: // Partition 2 rootfs file.write_all(INACTIVE)?; file.write_all(INVALID_CHS)?; - file.write_all(LINUX)?; + file.write_all(SQUASHFS)?; file.write_all(INVALID_CHS)?; file.write_all(&(2048 + 256 * MiB / 512).to_le_bytes())?; file.write_all(&(dev_size as u32 / 512 - 8192 - 256 * MiB / 512).to_le_bytes())?; |