Article View: linux.debian.bugs.dist
Article #6410Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
From: Johannes Schauer Marin Rodrigues
Date: Fri, 27 Nov 2026 09:20
Date: Fri, 27 Nov 2026 09:20
133 lines
7387 bytes
7387 bytes
--===============7322059123936963596== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Control: tag -1 - ftbfs Quoting Benjamin Drung (2026-11-24 16:40:09) > Yes, that tag is wrong. No idea how I happen to add that. Okay. Removing. > I reported a tracking bug in Ubuntu and thought that I can forward it to > Debian since Debian is affected as well. So it could be in pam or passwd. Okay. We can revisit the topic again if it's indeed mmdebstrap's fault. > Thanks. That was a helpful pointer. I tracked down the upstream change for > pam and tested it: It still did not fix it. After more investigation, I f= ound > a solution for that part: libpam-runtime should be configured before syst= emd. > Workaround demonstrate that: >=20 > mmdebstrap --extract-hook=3D'for f in common-auth common-account common- > session common-password; do printf "auth sufficient > pam_permit.so\naccount sufficient pam_permit.so\nsession sufficient > pam_permit.so\npassword sufficient pam_permit.so\n" > "$1/etc/pam.d/$f"; > done' xenial xenial.tar http://archive.ubuntu.com/ubuntu >=20 > Is this something that should be done by mmdebstrap? Configuration order is selected by apt and dpkg. This is nothing mmdebstrap controls. It just tells apt: here are the packages, install plz. > It now fails at a later stage: >=20 > ``` > I: installing remaining packages inside the chroot... > [...] > Setting up makedev (2.3.1-93ubuntu2~ubuntu16.04.1) ... > grep: /proc/1/environ: Permission denied > mknod: mem-: Operation not permitted > makedev mem c 1 1 root kmem 0640: failed > mknod: kmem-: Operation not permitted > [...] > ``` >=20 > This looks like a bug in the postinst of makedev. makedev has this > check: I think the bug is that you install makedev. ;) Why would you need makedev? > As alternative, mmdebstrap could > create those dev devices before configuring makedev (makedev checks with > "test -e /dev/<dev>"). mmdebstrap does not create /dev/mem nor /dev/kmem. It creates those devices which debootstrap creates to increase compatibility. That makedev wants to create /dev/mem and fails because it cannot mknod is either a problem of makedev itself or that the user who really wants makedev is not executing mmdebstrap with --mode=3Droot. The root mode is the only mode where a real mknod is possible. > > /var/lib/dpkg/available is no longer needed since dpkg 1.17.11, so mmde= bstrap > > stopped writing it. For creating chroots for older releases, have a loo= k at the > > jessie-or-older hooks shipped by mmdebstrap. Using these you can create= chroots > > for Debian unstable going as far back as 2006-08-04 using snapshot.debi= an.org. > > That should be more than sufficient for Ubuntu, no? >=20 > Thanks for this pointer.=C2=A0I tried: >=20 > mmdebstrap trusty trusty.tar "deb [trusted=3Dyes] http://de.archive.ubunt= u.com/ubuntu trusty main universe > deb [trusted=3Dyes] http://de.archive.ubuntu.com/ubuntu trusty-updates ma= in universe" -v --hook-dir=3D/usr/share/mmdebstrap/hooks/jessie-or-older >=20 > The jessie-or-older/extract01.sh scripts fails with dpkg complaining > about a missing awk. Attached a tested patch for mmedebstrap to also try > to install mawk. I successfully tested that the jessie command from the > man page still works. >=20 > With this patch trusty gets as far as the xenial case mentioned above. Thank you, I locally applied that patch to the branch with your other Ubuntu related commits. I still want to clean that up but see the other mail thread about that topic. I think you didn't reply to my review yet? > > I'm not here to volunteer my freetime for Canonical. If somebody is pay= ing > > money for this, then they should pay a person to fix these things. I ho= pe I was > > able to give you sufficient feedback for such a thing to happen. >=20 > Thanks. Your feedback was very helpful to help me move this topic > further. Feedback on my comments above will be appreciated. I hope I addressed all the points. Thanks! cheers, josch --===============7322059123936963596== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmsJSnIACgkQ8sulx4+9 g+FMDQ/9GX6u9fk2Vcw/DkLP4UOiGISVMYg0nMxz+qLNhGeFUH+yJrR/BEJ/o45O 9cs9IJ+np5gM0YYqQTWxdLF5eoBsdGAb5OuhrETp298owz4R+qmYnguY0537KoRe ZW5YE9y3ogQXffaMTHNxmBa7CX9xxj5Q7WcjJj96drxBdFEX6wrYrOqjWyuVNQ83 wSOw2Vfi22Y3JLZGJ+iWTLkXgg7ostRsQrDlnvJHkL0FPpx0MrjodfrfodeaLXEc lfYS1NunjQ+PEawpIB4VDIElvMincGzQz2JnRISc/pNXh1s9VdvViJc5UKX6NANn oq80R0rZVM4gevuToU0PR/zksLDAGuZFVhbm7q4dFrsp9sKcGBqfZ3aIaRfPlLG6 P2foOarI9zxcmKSk9hgIJtiruGloK75UccgGbcuDRPUvCQNon1bZ+u7GrxtBjWFI AfCgCwnxvJmLs7cFZbcCUiEMZCzF4T5nnD8multAwYVXy5Jxq4jEA0WzE9CEJ4Jl r38bvu5TzaeDl0gW2n7fwZI1q67NHDiRJl5mQ+go2kKVQY8y0dXvlT0XVJf+ov7J yPHPch2oI9KQ9ZnvSsAS/cnz5ao8rJApIcZ3bAKGPBRUnX+/MzikpJ/N3Q23kqsm FLtwGYLLmYo6w9SGTR0tyTtINGFt8WqaaAhnaBMcuZuOuYL8nC0= =2T/s -----END PGP SIGNATURE----- --===============7322059123936963596==--
Technical Details
Message-ID:
<O40hz-erfP-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<O1iaZ-cXIu-1@gated-at.bofh.it> <O1p2N-d1rv-3@gated-at.bofh.it> <O30Wl-dTPs-11@gated-at.bofh.it> <O1iaZ-cXIu-1@gated-at.bofh.it> <O30Wl-dTPs-11@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Johannes Schauer Marin Rodrigues <josch@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty Date: Fri, 27 Nov 2026 10:20:01 +0100 Message-ID: <O40hz-erfP-1@gated-at.bofh.it> References: <O1iaZ-cXIu-1@gated-at.bofh.it> <O1p2N-d1rv-3@gated-at.bofh.it> <O30Wl-dTPs-11@gated-at.bofh.it> <O1iaZ-cXIu-1@gated-at.bofh.it> <O30Wl-dTPs-11@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 27 09:19:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Johannes Schauer Marin Rodrigues <josch@debian.org>, 1154510@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: josch@debian.org X-Debian-Pr-Message: followup 1154510 X-Debian-Pr-Package: mmdebstrap X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: mmdebstrap Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============7322059123936963596==" MIME-Version: 1.0 Content-Disposition: inline User-Agent: alot/0.0.0 X-Debian-User: josch X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005359 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 133 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 27 Nov 2026 10:16:34 +0100 X-Original-Message-ID: <179577099471.465360.6492357497625968799@localhost> X-Original-References: <179512456377.1844508.10007620892073787783.reportbug@deep-thought> <179515098240.2951.3635647472516703784@localhost> <91600a9f37efc9aaca21e98d6beb36557bcb6b68.camel@debian.org> <179512456377.1844508.10007620892073787783.reportbug@deep-thought> <91600a9f37efc9aaca21e98d6beb36557bcb6b68.camel@debian.org>