Pass explicit fstype (ext4) when mounting resource images

This commit is contained in:
Bruce Leidl 2022-09-19 10:00:38 -04:00
parent f175dd1134
commit 94a0fd210c

View File

@ -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))
}