Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bare systemd doesn't start anymore #18

Open
ghedo opened this issue Sep 21, 2017 · 1 comment
Open

bare systemd doesn't start anymore #18

ghedo opened this issue Sep 21, 2017 · 1 comment

Comments

@ghedo
Copy link
Owner

ghedo commented Sep 21, 2017

 % sudo build/pflask --chroot=$HOME/local/rootfs -- /lib/systemd/systemd 
[✘] Child was terminated by signal '9'

Weirdly enough, running it inside bash works fine:

 % sudo build/pflask --chroot=$HOME/local/rootfs -- bash
root@pinky:/# /lib/systemd/systemd --system
systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
Detected virtualization container-other.
Failed to write /run/systemd/container, ignoring: No such file or directory
Detected architecture x86-64.

Welcome to Debian GNU/Linux 9 (stretch)!

Set hostname to <pinky>.
Couldn't move remaining userspace processes, ignoring: Input/output error
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Audit Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice System Slice.
[...]

I suspect this might have something to do with how we setup the pty.

@arno01
Copy link

arno01 commented Jun 18, 2018

Failed to write /run/systemd/container, ignoring: No such file or directory

systemd is likely unable to write to /run. I had the same error and what helped to solve was to make sure /run (and /run/lock) is a tmpfs and user that is running systemd is a root user (uid:gid 0:0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants