Article View: linux.debian.bugs.dist
Article #6413Bug#1154510: mmdebstrap fails to build images for Ubuntu xenial and trusty
From: Johannes Schauer Marin Rodrigues
Date: Fri, 27 Nov 2026 09:50
Date: Fri, 27 Nov 2026 09:50
132 lines
7639 bytes
7639 bytes
--===============4642153419017021443== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, thank you for these patches! I see you updated 0001-hooks-jessie-or-older-also-install-maw. I locally rewrote history to instead contain the patch from this mail. Thank you for being verbose in yo= ur commit message. In your hooks, could you put your name and copyright in form of a SPDX head= er at the top? Quoting Benjamin Drung (2026-11-27 00:24:40) > thanks for your help. Attached three patches to add/enhance hooks to make > xenial and trusty building: >=20 > mmdebstrap xenial /dev/null http://archive.ubuntu.com/ubuntu --hook-dir= =3D./hooks/xenial/ --hook-dir=3D./hooks/skip-makedev/ > mmdebstrap trusty /dev/null http://archive.ubuntu.com/ubuntu --hook-dir= =3D./hooks/jessie-or-older/ --hook-dir=3D./hooks/skip-makedev/ Cool! > What is your opinion to auto-add those hooks when detecting suites that n= eed > it? mmdebstrap could gain a parameter to disable that behaviour. The situation is much better today but when mmdebstrap started, debootstrap= was full of crazy stunts to work around all kinds of distro-specific behaviour.= The fact that it's only "old" ubuntu releases which require these workaround sh= ows me that the time I spent back then to file patches against apt, dpkg and ot= her offending packages did have an effect and these days, the 13-line shell scr= ipt from the mmdebstrap is indeed sufficient to create a Debian chroot. This was not the case 10 years ago. So I also see mmdebstrap as my motivation to make sure that Debian does not regress and that it is possible to create a distro chroot without the bootstrapping tool implementing workarounds. If anything like a workaround = is needed, then that has to go into the packages themselves or in the package managers like apt or dpkg in a declarative format. This is to follow the id= eas of component-based software engineering. If I add package-specific workarou= nds into mmdebstrap, then that would be like fixing a bug in gcc by adding a ch= ange to apt which fixes that bug. We don't do that. We expect gcc to carry the f= ix and not the installation tool. That being said, old distros still require a lot of workarounds and most of them can no longer be fixed. This is what the jessie-or-older hook is for. = It contains all the hacks which used to be necessary and which debootstrap wor= ked around by manually selecting installation order and some such. Since debootstrap existed we were complacent and there was no pressure to fix the= se things in the respective packages because the bootstrapping tool took care = of papering over them. This bugged me, so I filed patches and for modern derivatives, the jessie-or-older hook is no longer required. Since I want to keep it that way, I would be very much against adding any command line options which enable or disable distro-specific hacks. Those options do then have to be carried forever. I want to go the opposite direction: fix packages so that hacks never have to be used again by a bootstrapping tool. For old distros: that's what the hooks are for. They allow you to implement= any hack you desire (as you now can confirm). About auto-adding those, did you have a look at the maybe-jessie-or-older h= ook? That one implements the auto-add behaviour that you are asking for. If you don't know what distro you are bootstrapping and if you want the hacks for = old distros to automatically be applied if your distro is too old, then the maybe-jessie-or-older hook will do the auto-detection and run the jessie-or-older hooks only if necessary. Also, would you prefer to keep the existing skip-makedev and xenial hooks w= hich you proposed or would you rather write a hook called ubuntu which then does= the auto-detection of which ubuntu-release is currently being bootstrapped and = then does the right thing depending on the ubuntu version? Then you could use --hook-dir=3D./hooks/ubuntu for both trusty and xenial w= ithout having to remember which one of them needed the skip-makedev hook for examp= le. Thanks! cheers, josch --===============4642153419017021443== 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+EFAmsJT30ACgkQ8sulx4+9 g+ExGQ/+LLTy7tmCd9kll9lk8YdxWkxQ4rTykVdDHaq6iGUDo0Ej0+82mWf11NUX jrRO/RkEyG2crmTJsJGYgT1d+XGzbezbirqtqZYN9G7jDIXykPbpgm9ybjPArH0y mwnkdAZML49zFQu57DkiQk1HNc7g38IMdlWpf9wqs0p6n5aCrObJffXVw5bdzfiU SvifbCr4FygcRwksYhHrHstG4yerSuC5Pdc8MJZNkNuMOqoCxQMzeeprRv+1VHQ5 d1nQcsJIPcJWgbN/kO+1ZAfNUIz+TFhWtRLa1iXEiQpKbD71kRpwMdVOm8toTbay HR4oorb7C8M9EJAjQmNHvcLJ6DO2/B/pkfhDk5aEF2+SGbKxdQ14XU0r4HVH1+n7 7Wgyd/bQAHmYe8aplu6NsX/4fiejSFASMxAcCmZSNHJLGHWPPNrU8V/7eUxHkkNg C0qj2BrwBHMFjcPTiF/3Ux28UciXpe+QqusZSU+4mYJ6DJoBp9LdZ4oNKJFXlzRd T+ig9fUYTgfUClWyeJfjocc/B63nlOm/bzmUwvLe1Gvay0bGSAtTKqITZ/9lqoT3 bUAFL64nA1wWdAiEP3CQn4sUieBxwEmTrTJfqS23cut6i/Y2gMKKVG/nnELvmvlV oX+ogk/SPy32aBuqo+LFQeH8gsZBGwOw61JToRzQtPoeJllw+ww= =y6U0 -----END PGP SIGNATURE----- --===============4642153419017021443==--
Technical Details
Message-ID:
<O40KB-erqq-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.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> <O3R4B-elS5-5@gated-at.bofh.it> <O1iaZ-cXIu-1@gated-at.bofh.it> <O3R4B-elS5-5@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.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:50:01 +0100 Message-ID: <O40KB-erqq-3@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> <O3R4B-elS5-5@gated-at.bofh.it> <O1iaZ-cXIu-1@gated-at.bofh.it> <O3R4B-elS5-5@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 27 09:41: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-Source: mmdebstrap Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============4642153419017021443==" 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/2005361 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 132 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 27 Nov 2026 10:38:09 +0100 X-Original-Message-ID: <179577228992.465360.10957437817714957818@localhost> X-Original-References: <179512456377.1844508.10007620892073787783.reportbug@deep-thought> <179515098240.2951.3635647472516703784@localhost> <91600a9f37efc9aaca21e98d6beb36557bcb6b68.camel@debian.org> <179512456377.1844508.10007620892073787783.reportbug@deep-thought> <ec81773a180eb5a54446c60a2ee6252c0918c648.camel@debian.org> <179512456377.1844508.10007620892073787783.reportbug@deep-thought> <ec81773a180eb5a54446c60a2ee6252c0918c648.camel@debian.org>