Quoting Johannes Schauer (2019-09-15 14:58:55) > Quoting Jonas Smedegaard (2019-09-15 13:18:18) > > If mmdebstrap were to support curl-style URL expansion, then current > > wrappers for debootstrap supporting only a single string could be > > abused to pass an expandable set of strings, like this: > > > > Perhaps mmdebstrab could support curl-style glob expansion of URLs + > > suite splitting, to allow passing multiple apt lines through > > wrappers which expects only a single base URL, like this: > > > > > > https://{deb.debian.org/debian/dists/{buster,buster-updates},security.debian.org/debian-security/dists/buster/updates} > > > > expanding to this: > > > > https://deb.debian.org/debian buster > > https://deb.debian.org/debian buster-updates > > https://security.debian.org/debian-security buster/updates > > > > Here's a quick one-line that maybe better explains what I mean: > > > > echo > > 'https://{deb.debian.org/debian/dists/{buster,buster-updates},security.debian.org/debian-security/dists/buster/updates}' > > | perl -MFile::Glob=:bsd_glob -nE 'say map { s,/dists/, ,r } bsd_glob($_, > > GLOB_BRACE | GLOB_NOMAGIC )' > > > > what I still don't understand is why this would be needed. > > Currently, if you do: > > mmdebstrap buster ./output-directory > > Then the resulting sources.list will be equal to what you wrote above. > > Maybe I'm just dumb here but could either of you please go back to the > start and try to explain precisely what it is, that you think is > missing from mmdebstrap and why you need it?
Builtin default of mmdebstrap is nice. Various debootstrap wrappers exist which supports replacing debootstrap with an alternative command (e.g. cdebootstrap) but they commonly do not support passing arbitrary commandline arguments. What I (and we, I guess) want is that the nice default be overridable, not only by passing options different from debootstrap but also in a way supported by these pre-existing debootstrap wrappers. Example: Bootstrapping a system omitting security updates e.g. because an updated linux kernel is broken on my special setup. Example: Bootstrapping a system additionally including backports.d.o. Example: Bootstrapping a system additionally including my custom addons. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature