[buildd-tools-devel] schroot wit preserve-environment=true gives: Failed to import environment: Process org.freedesktop.systemd1 exited with stat

Marcel L. mlautenb at gmail.com
Wed Aug 31 11:48:05 UTC 2016


I have configured schroot to run ubuntu xenial in schroot on my debian host
(strech/sid)

With the current setup everything works fine as long as I am root. That is,
as root (or with sudo), I can do schroot -c xenial and after that run xterm
for instance.

But doing the same as a non-root user gives me the following after doing
schroot -c xenial:

<<
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Failed to import environment: Process org.freedesktop.systemd1 exited with
stat
<<

Here is my configuration from schroot.conf:

[xenial]
description=Ubuntu xenial
type=directory
directory=/srv/chroot/xenial
users=marcel
root-users=marcel
groups=marcel,root,lpadmin
root-groups=root,marcel
profile=desktop
personality=linux
preserve-environment=true


To just see what works I played around with groups and users, but nothing
solved the problem.. Maybe this is a PAM issue?

Since I run Gnome, I also uncommented the line for gdm3 and added

/var/run/dbus/ /var/run/dbus/  none    rw,bind         0       0 # Gnome
likes this.

to /etc/schroot/desktop/fstab

What am I missing or doing wrong? I would be happy about any help on this.

Cheers,
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160831/3027e0e4/attachment.html>


More information about the Buildd-tools-devel mailing list