Quoting Holger Levsen (2026-09-03 12:38:03)
> [reposted with correct mailinglist address...]
> 
> On Thu, Sep 03, 2026 at 10:27:43AM +0200, Roland Clobus wrote:
> > Debootstrap 1.0.145 now knows about SHA512 checksums
> 
> btw, what about cdebootstrap and mmdebstrap and SHA512 checksums?

mmdebstrap is just a thin wrapper around apt. It doesn't handle any
checksumming itself. If you don't need any bells and whistles, mmdebstrap
essentially is doing this:

     mkdir -p "$2/etc/apt" "$2/var/cache" "$2/var/lib"
     cat << END > "$2/apt.conf"
     Apt::Architecture "$(dpkg --print-architecture)";
     Apt::Architectures "$(dpkg --print-architecture)";
     Dir "$(cd "$2" && pwd)";
     Dir::Etc::Trusted "$(eval "$(apt-config shell v Dir::Etc::Trusted/f)"; 
printf %s "$v")";
     Dir::Etc::TrustedParts "$(eval "$(apt-config shell v 
Dir::Etc::TrustedParts/d)"; printf %s "$v")";
     END
     echo "deb http://deb.debian.org/debian/ $1 main" > 
"$2/etc/apt/sources.list"
     APT_CONFIG="$2/apt.conf" apt-get update
     APT_CONFIG="$2/apt.conf" apt-get --yes --download-only install '?essential'
     for f in "$2"/var/cache/apt/archives/*.deb; do dpkg-deb --extract "$f" 
"$2"; done
     chroot "$2" sh -c "dpkg --install --force-depends 
/var/cache/apt/archives/*.deb"


So all the heavy lifting is done by apt and if apt supports a thing, then
mmdebstrap will as well.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to