zipfuse: supports zip on block device
Add a test case to ensure that zipfuse works with a block device whose
content is backed by a zip file. Fortunately, zip-rs already supports
reading a zip file from a block device: it locates the end of central
directory record by reverse-scanning a file from the end.
Bug: 186377508
Test: cargo test (android test missing because we don't have the
loopdevice crate for Android, which is fine)
Change-Id: I8fbbfd18a2a0df2a550e3f679ba74ba603b59efd
diff --git a/zipfuse/.cargo/config.toml b/zipfuse/.cargo/config.toml
index b87b13a..2fc1783 100644
--- a/zipfuse/.cargo/config.toml
+++ b/zipfuse/.cargo/config.toml
@@ -1,4 +1,3 @@
-# Mounting requires root privilege. The fuse library in crosvm doesn't support
-# fusermount yet.
+# losetup requires root privilege.
[target.x86_64-unknown-linux-gnu]
-runner = 'unshare -mUr'
+runner = 'sudo -E'