]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
lxc: Recursively mount vendor_extra
authorAlessandro Astone <ales.astone@gmail.com>
Mon, 2 Oct 2023 18:35:48 +0000 (20:35 +0200)
committerAlessandro Astone <ales.astone@gmail.com>
Mon, 2 Oct 2023 18:35:50 +0000 (20:35 +0200)
HALIUM devices may use bind-mounts to override libraries over the
prebuild read-only vendor image. We want to keep those overrides
in our /vendor_extra mount.

tools/helpers/lxc.py

index 76cfd7440ec25d91df0eecdcdc2f9a82eee5325a..6be7b7dd2142d7da104c3307bc30f8ca347a84c1 100644 (file)
@@ -74,7 +74,7 @@ def generate_nodes_lxc_config(args):
     if args.vendor_type != "MAINLINE":
         if not make_entry("/dev/hwbinder", "dev/host_hwbinder"):
             raise OSError('Binder node "hwbinder" of host not found')
     if args.vendor_type != "MAINLINE":
         if not make_entry("/dev/hwbinder", "dev/host_hwbinder"):
             raise OSError('Binder node "hwbinder" of host not found')
-        make_entry("/vendor", "vendor_extra", options="bind,optional 0 0")
+        make_entry("/vendor", "vendor_extra", options="rbind,optional 0 0")
 
     # Necessary device nodes for adb
     make_entry("none", "dev/pts", "devpts", "defaults,mode=644,ptmxmode=666,create=dir 0 0", False)
 
     # Necessary device nodes for adb
     make_entry("none", "dev/pts", "devpts", "defaults,mode=644,ptmxmode=666,create=dir 0 0", False)