open images readonly

we don't support any write commands anyways
This commit is contained in:
Yureka 2024-08-01 20:47:05 +02:00
parent b09fe33dd8
commit a1ec0384e7

View file

@ -82,7 +82,6 @@ async fn run() -> Result<()> {
let mut dev = BlockDevice::new(FileBackend::new(
File::options()
.read(true)
.write(true)
.open(image)
.expect("Opening image"),
));