Prevent debootstrap from umounting /proc
While running sbuild-createchroot, debootstrap would umount the instance's /proc when the instance is called with "--privileged" option. This is reported in Debian's bug tracker as: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968927 To workaround this, we download the debootstrap from Debian Experimental which contains this fix and install it via dpkg when the container is built. Tested locally by building the container and creating an sbuild environment. Story: 2008846 Task: 43625 Signed-off-by: Charles Short <charles.short@windriver.com> Change-Id: I6133dc402995b285614b8520d81ae1c2108f295c
This commit is contained in:
parent
b78277a54c
commit
e7e8a21e81
@ -43,6 +43,13 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||
pip3 install Flask && \
|
||||
sudo sbuild-adduser root
|
||||
|
||||
# workaround for docker debootstrap bug
|
||||
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968927
|
||||
RUN cd /tmp && \
|
||||
wget \
|
||||
http://ftp.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.124_all.deb && \
|
||||
dpkg -i debootstrap_1.0.124_all.deb
|
||||
|
||||
COPY stx/toCOPY/pkgbuilder/app.py /opt/
|
||||
COPY stx/toCOPY/pkgbuilder/debbuilder.py /opt/
|
||||
COPY stx/toCOPY/pkgbuilder/debbuilder.conf /etc/sbuild/sbuild.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user