[buildd-tools-devel] Bug#675788: Additional info

Martín Ferrari tincho at debian.org
Tue Jan 6 17:44:34 UTC 2015


Hi,

While debugging a similar issue (I was trying to run skype inside a
chroot without sharing my home directory), I found this bug report, and
I think I can give the missing information to solve it.

When running skype, I was getting errors about not being able to create
directories under /run/user. Then I found this webpage that lists all
the needed locations that need to be replicated:
http://www.freedesktop.org/wiki/Software/PulseAudio/FAQ/#index36h3
(although I did not share ~/.pulse and it still worked).

In particular, pulseaudio needed the $XDG_RUNTIME_DIR location, which is
in /run/user when using systemd. I tried at first to bind mount /run,
but that did not work: each user has a tmpfs with special mount options
to force the UID which do not seem to be replicated when bind mounting
the parent dir, so the files appear as owned by root.

The problem now is that schroot does not seem to have any way to tell it
to mount directories based on environment variables.. I don't know the
code to suggest a workaround, but maybe one option would be to add a
configuration value that enables automatic mounting of the user's XDG_*
directories?

-- 
Martín Ferrari (Tincho)



More information about the Buildd-tools-devel mailing list