[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
Thu Sep 1 19:18:03 UTC 2016


Well, that - like I wrote - works. But I do not want to run as root because
this causes preserve-environment not to use the actual users environment
for import, but root's environment. And as soon as I su to any of the
allowd users within schroot, I get the same error.

Cheers,
Marcel

On Wed, Aug 31, 2016 at 10:15 PM, Geert Stappers <stappers at stappers.nl>
wrote:

> On Wed, Aug 31, 2016 at 01:48:05PM +0200, Marcel L. wrote:
> > 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.
>
>
> Replace
>
>   schroot -c xenial:
>
> you mentioned above with
>
>   sudo schroot -c xenial
>
>
> and please report back.
>
>
> > Cheers,
> > Marcel
>
> Groeten
> Geert Stappers
> --
> Leven en laten leven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160901/86694fef/attachment.html>


More information about the Buildd-tools-devel mailing list