~brandontschaefer/libertine/enable-maliit

« back to all changes in this revision

Viewing changes to python/libertine/LxcContainer.py

  • Committer: Chris Townsend
  • Date: 2016-03-21 19:26:22 UTC
  • mto: This revision was merged to the branch mainline in revision 183.
  • Revision ID: christopher.townsend@canonical.com-20160321192622-sm6fayxtl1h9rffu
Bind-mount /dev/snd inside LXC container to allow Pulse inside the container to work.
Bind-mount /dev/video0 inside LXC container to potentially get some better video performance.
Also, make all bind-mounts optional as they may not exist and we don't want to cause LXC start failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        self.container.append_config_item("lxc.mount.entry", user_dconf_entry)
229
229
 
230
230
        # Setup the mounts for /run/user/$user_id
231
 
        run_user_entry = "/run/user/%s run/user/%s none rbind,create=dir" % (user_id, user_id)
 
231
        run_user_entry = "/run/user/%s run/user/%s none rbind,optional,create=dir" % (user_id, user_id)
232
232
        self.container.append_config_item("lxc.mount.entry", "tmpfs run tmpfs rw,nodev,noexec,nosuid,size=5242880")
233
233
        self.container.append_config_item("lxc.mount.entry",
234
234
                                          "none run/user tmpfs rw,nodev,noexec,nosuid,size=104857600,mode=0755,create=dir")