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

Roger Leigh rleigh at codelibre.net
Wed Jan 7 13:34:21 UTC 2015


On Tue, Jan 06, 2015 at 05:44:34PM +0000, Martín Ferrari wrote:
> 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?

Such logic isn't built in to schroot.  But it's easy to add support using
a custom setup script.  It can look at the environment and ensure that
XDG_XXX_DIR is bind mounted into the chroot.  This should probably be done
by default for the desktop profile if it's set.  However, this type of
thing is going to be fraught with problems due to the way systemd
deletes the directory when the session ends, since a schroot session can
persist for much longer.  XDG_XXX_DIR is quite poorly-specified and it's
likely we won't be able to do a good job of supporting it.  That said,
any improvements, even if imperfect, would be welcome.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



More information about the Buildd-tools-devel mailing list