Development Team/Chroot: Difference between revisions

Mstone (talk | contribs)
Mstone (talk | contribs)
Line 54: Line 54:
=== D-Bus ===
=== D-Bus ===


Sugar wants to be able to use global state stored in both HAL and NetworkManager, both of which live on the system bus. Consequently, we need to bind-mount
Sugar wants to be able to use global state stored in both HAL and NetworkManager, both of which live on the system bus. Consequently, ''outside the chroot'', we need to


   mount --bind /var/run/dbus $CHROOT/var/run/dbus
   sudo mount --bind /var/run/dbus $CHROOT/var/run/dbus


before entering the chroot. (Mock uses unshare() to enter a new mount-point namespace since this makes garbage collection of mountpoints much easier.)
before entering the chroot. (Mock uses unshare() to enter a new mount-point namespace since this makes garbage collection of mountpoints much easier.)