From 94a0fd210ca740c0c9496765fa2bec5fbeaaad08 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Mon, 19 Sep 2022 10:00:38 -0400 Subject: [PATCH] Pass explicit fstype (ext4) when mounting resource images --- libcitadel/src/resource.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcitadel/src/resource.rs b/libcitadel/src/resource.rs index 5d744ba..826d530 100644 --- a/libcitadel/src/resource.rs +++ b/libcitadel/src/resource.rs @@ -192,7 +192,7 @@ impl ResourceImage { util::create_dir(mount_path)?; - util::mount(verity_path, mount_path, None)?; + util::mount(verity_path, mount_path, Some("-t ext4"))?; Ok(ResourceMount::new_verity(mount_path, verity_dev)) } @@ -270,7 +270,7 @@ impl ResourceImage { util::create_dir(mount_path)?; - util::mount(&loopdev.device_str(), mount_path, Some("-oro"))?; + util::mount(&loopdev.device_str(), mount_path, Some("-oro -t ext4"))?; Ok(ResourceMount::new_loop(mount_path, loopdev)) }