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

Geert Stappers stappers at stappers.nl
Wed Aug 31 20:15:59 UTC 2016


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



More information about the Buildd-tools-devel mailing list