Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
systemd-tmpfiles failing in updated lx zone #331
A customer reported that after updating their ubuntu lx zone several services failed to start after reboot, including sshd.
The problem is that the systemd-tmpfiles service fails to start properly and so several temporary directories under /var/run are not created after /run is mounted on tmpfs.
The service log shows several instances of:
and strace shows:
The linux man page for
Since the openat call is opening the
citrus-it@341b374 is a temporary workaround pending further investigation. This modifies lx_openat() so that a file descriptor is returned in this condition. Unlike true linux, the file descriptor points to the link target but has been modified as a result of the O_PATH flag so that it cannot be used for reading and writing. This is enough to satisfy systemd's
With this fix in place, if the returned file descriptor is used for the four functions mentioned in the Linux man page, then:
A hotfix for r151028 is available for this issue:
Since this updates a kernel driver a new boot environment is required. To control the name of that boot environment, add