enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #08382
[Bug 1918209] [NEW] Detection of systemd breaks building in docker
Public bug reported:
apache2ctl detects if systemd is in use by looking at the owner of
/proc/1/exe.
Under docker, however, this cannot be relied on and may simply be the
command being run:
$ docker run --rm --name "apache2-test" 26ff08910bcd ls -l /proc/1/exe
lrwxrwxrwx 1 root root 0 Feb 23 22:07 /proc/1/exe -> /usr/bin/ls
This is seen as causing OCI build failures, with an error such as:
...
Enabling site 000-default.
update-rc.d: error: no runlevel symlinks to modify, aborting!
dpkg: error processing package apache2 (--configure):
installed apache2 package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.33-0ubuntu2) ...
Errors were encountered while processing:
apache2
...
[Proposed Fix]
Another way to look for systemd is [ -d /run/systemd/system ], which may be worth having as a fallback to check if /proc/1 is not systemd.
** Affects: apache2 (Ubuntu)
Importance: High
Assignee: Bryce Harrington (bryce)
Status: In Progress
--
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to apache2 in Ubuntu.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1918209
Title:
Detection of systemd breaks building in docker
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1918209/+subscriptions
Follow ups