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 found
> a solution for that part: libpam-runtime should be configured before systemd.
> Workaround demonstrate that:
> 
> mmdebstrap --extract-hook='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
> 
> 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:
> 
> ```
> 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
> [...]
> ```
> 
> 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=root. 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 
> > mmdebstrap
> > stopped writing it. For creating chroots for older releases, have a look 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.debian.org.
> > That should be more than sufficient for Ubuntu, no?
> 
> Thanks for this pointer. I tried:
> 
> mmdebstrap trusty trusty.tar "deb [trusted=yes] 
> http://de.archive.ubuntu.com/ubuntu trusty main universe
> deb [trusted=yes] http://de.archive.ubuntu.com/ubuntu trusty-updates main 
> universe" -v --hook-dir=/usr/share/mmdebstrap/hooks/jessie-or-older
> 
> 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.
> 
> 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 paying
> > money for this, then they should pay a person to fix these things. I hope I 
> > was
> > able to give you sufficient feedback for such a thing to happen.
> 
> 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

Attachment: signature.asc
Description: signature

Reply via email to