diff options
author | Simon McVittie <smcv@collabora.com> | 2018-06-14 15:15:36 +0100 |
---|---|---|
committer | Andrew Lee (李健秋) <ajqlee@debian.org> | 2018-09-04 18:03:28 +0800 |
commit | f7a9f67bfe7bf8dfdf123effc39100f04ab8ff13 (patch) | |
tree | c34ffa6ba842632acf56c21429e8b4064c5b3483 /debian/patches/series | |
parent | c518f1772c8e843301cad406af1c4305f1889fdc (diff) |
Added policy-rc.d that turns invoke-rc.d into a no-op
The obs-build seems work this way:
The "first-stage bootstrap" (OBS unpacking packages which is what this
patch fixes) and the "second-stage bootstrap" (which just runs
debootstrap).
The problem is that in older versions of Ubuntu, the unpack packageset
from the target distribution to be able to run the second-stage
debootstrap is not very minimal.
In particular, it includes packages like initscripts, udev and procps,
which have initscripts that are started by postinst. In older Ubuntu,
when a postinst runs invoke-rc.d, it communicates with Upstart via a
mechanism that can escape from the chroot and talk to the host system's
Upstart (!); and if it can't, invoke-rc.d will fail and the first-stage
bootstrap will also fail.
The symptom is that on workers whose host OS did not boot using Upstart
(for example Debian stretch, but not Ubuntu trusty), the first-stage
bootstrap fails with:
[ 22s] initctl: Unable to connect to Upstart: Failed to connect to
socket /com/ubuntu/upstart: Connection refused
So here is a patch to provide OBS-level solution that adds a policy-rc.d
that turns invoke-rc.d into a no-op, just like debootstrap does to
prevent processes in deb build chroots from trying to start system
services.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Tested-by: Héctor Orón Martínez <hector.oron@collabora.co.uk>
Signed-off-by: Andrew Lee (李健秋) <ajqlee@debian.org>
Diffstat (limited to 'debian/patches/series')
-rw-r--r-- | debian/patches/series | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series index 08742c6..889d529 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -6,3 +6,4 @@ build-recipe-dsc-don-t-rebuild-the-source-package.patch debootstrap-add-fallback-for-Debian-SID-distro.patch add-debian-unstable-and-jessie-configs.patch +Prevent-processes-in-deb-build-chroots-from-trying-to-sta.patch |