[Bug 1948713] Re: focal: backport patch to allow mk-sbuild within Docker

Łukasz Zemczak 1948713 at bugs.launchpad.net
Tue Nov 23 17:01:50 UTC 2021


Hello Dan, or anyone else affected,

Accepted debootstrap into hirsute-proposed. The package will build now
and be available at
https://launchpad.net/ubuntu/+source/debootstrap/1.0.123ubuntu6.2 in a
few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed.  Your feedback will aid us getting this
update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
hirsute to verification-done-hirsute. If it does not fix the bug for
you, please add a comment stating that, and change the tag to
verification-failed-hirsute. In either case, without details of your
testing we will not be able to proceed.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance for helping!

N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.

** Changed in: debootstrap (Ubuntu Hirsute)
       Status: In Progress => Fix Committed

** Tags added: verification-needed verification-needed-hirsute

** Changed in: debootstrap (Ubuntu Focal)
       Status: In Progress => Fix Committed

** Tags added: verification-needed-focal

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debootstrap in Ubuntu.
https://bugs.launchpad.net/bugs/1948713

Title:
  focal: backport patch to allow mk-sbuild within Docker

Status in debootstrap package in Ubuntu:
  Fix Released
Status in debootstrap source package in Focal:
  Fix Committed
Status in debootstrap source package in Hirsute:
  Fix Committed
Status in debootstrap package in Debian:
  Fix Released

Bug description:
  Debian bug #968927 is present in the version of debootstrap in focal,
  which means that mk-sbuild cannot execute successfully within a Docker
  environment.

  https://salsa.debian.org/installer-
  team/debootstrap/-/commit/87cdebbcad6f4e16ba711227cbbbd70039f88752 is
  the fix for this.  It's included in the version of debootstrap in
  impish+, and we've been using a patched debootstrap (including only
  this patch on top of focal's debootstrap) for a couple of months
  without issue.

  [Impact]

  Without this patch, using debootstrap via mk-sbuild within a Docker
  environment produces this error:

    ln: failed to create symbolic link '/dev/stdin': File exists
    E: 10mount: E: Failed to open mount file ‘/proc/mounts’: No such file or directory
    E: focal-amd64-6433640d-7654-4238-b872-e8f1acd4b717: Chroot setup failed: stage=setup-stop

  This means that Ubuntu users either have to perform their mk-
  sbuild'ing outside of Docker (which may not be possible in corporate
  settings), or they have to maintain debootstrap downstream of Ubuntu
  (which either requires superseding the versions in Ubuntu entirely, or
  rebasing this patch onto the new version which appears in focal as
  each new release is opened).

  [Test Plan]

  Launch a Docker container (privileged so mk-sbuild can perform overlay
  mounting) with:

    docker run --privileged -it --rm ubuntu:focal

  and then within the container:

    apt-get update
    apt-get install ubuntu-dev-tools sbuild

    # Convince mk-sbuild to run as root
    touch /root/.sbuildrc
    usermod -a -G sbuild root
    newgrp sbuild

    # Run mk-sbuild
    mk-sbuild focal

  After much output, the above-described error will be output.  Using a
  patched debootstrap causes the mk-sbuild to complete successfully.

  Regression testing of regular use of debootstrap (outside of Docker,
  as used in Ubuntu's image building) should be performed: the image
  content should be unchanged.

  [Where problems could occur]

  debootstrap is a fundamental piece of the Debian/Ubuntu image building
  infrastructure, and any change to it could have an impact on how
  Ubuntu images are built.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/1948713/+subscriptions




More information about the foundations-bugs mailing list