Debian Patches

Status for mmdebstrap/1.7.0-1

Patch Description Author Forwarded Bugs Origin Last update
0001-tests-skip-tar-in-mknod-fix-failure-when-hooks-other.patch tests/skip-tar-in-mknod: fix failure when hooks other than --setup-hook are present

We also test a similar invocation with the only difference of a

--customize-hook=true

While this looks like a no-op, it leads to different behaviour and different
output:

W: skipping creation of ./dev/fd because it already exists in the target
W: skipping creation of ./dev/stderr because it already exists in the target
W: skipping creation of ./dev/stdin because it already exists in the target
W: skipping creation of ./dev/stdout because it already exists in the target
dpkg-divert: warning: diverting file '/usr/sbin/start-stop-daemon' from an Essential package with rename is dangerous, use --no-rename

And then the comparison with ./cache/mmdebstrap-{{ DIST }}-apt.tar will fail
because /tmp/debian-chroot.tar now contains /var/lib/dpkg/diversions-old
which is not getting cleaned up because we are using --skip=cleanup

Removing /var/lib/dpkg/diversions-old in a --customize-hook does not solve
the problem because the setup_mounts() function has its own clean-up code
for /var/lib/dpkg/diversions-old because it created the diversion of
start-stop-daemon and that cleanup code runs *after* the customize hook and
will not do the right thing if /var/lib/dpkg/diversions-old got manually
removed.

The fix is to remove /var/lib/dpkg/diversions-old in the cleanup code of
the start-stop-daemon setup *if* --skip=cleanup/old was not passed.

The reason why an innocent --customize-hook=true changes behaviour is
because the setup_mounts() function which mounts /proc and /sys,
populates /dev, sets up policy-rc.d and start-stop-daemon is *not* run
if only --setup-hooks are passed and no additional packages are to be
installed via --include. To better announce this change in behaviour,
this commit also adds another info-level output to the terminal in the
hopes that the next time something similar happens debugging this will
be easier.
Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> no 2026-11-03

All known versions for source package 'mmdebstrap'

Links