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
+
+
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.)
=== X11 ===
=== X11 ===
Line 60:
Line 68:
See the talk page for more secure alternatives.
See the talk page for more secure alternatives.
−
−
=== 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, ''outside the chroot'', we need to
−
−
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.)
=== Running Sugar ===
=== Running Sugar ===
Line 73:
Line 73:
Then, inside the chroot, you can happily run sugar as user 'sugar' with something like
Then, inside the chroot, you can happily run sugar as user 'sugar' with something like