Pass explicit fstype (ext4) when mounting resource images
This commit is contained in:
parent
f175dd1134
commit
94a0fd210c
@ -192,7 +192,7 @@ impl ResourceImage {
|
|||||||
|
|
||||||
util::create_dir(mount_path)?;
|
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))
|
Ok(ResourceMount::new_verity(mount_path, verity_dev))
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -270,7 +270,7 @@ impl ResourceImage {
|
|||||||
|
|
||||||
util::create_dir(mount_path)?;
|
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))
|
Ok(ResourceMount::new_loop(mount_path, loopdev))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user