focal: backport patch to allow mk-sbuild within Docker
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debootstrap (Debian) |
Fix Released
|
Unknown
|
|||
debootstrap (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Fix Released
|
Medium
|
Brian Murray | ||
Hirsute |
Fix Released
|
Undecided
|
Brian Murray |
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:/
[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-
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.
Changed in debootstrap (Ubuntu): | |
importance: | Undecided → Medium |
Changed in debootstrap (Ubuntu Focal): | |
importance: | Undecided → Medium |
Changed in debootstrap (Ubuntu): | |
status: | New → Fix Released |
Changed in debootstrap (Debian): | |
status: | Unknown → Fix Released |
The attachment "lp1948713.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]