Package: mmdebstrap
Version: 1.5.7-3
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
The Ubuntu sbuild package currently carries this patch:
```
my $ubuntu_mmdebstrap_extra_args = {};
use Debian::DistroInfo;
for my $series (UbuntuDistroInfo->new()->supported()) {
$ubuntu_mmdebstrap_extra_args->{$series} =
['--components=main,universe'];
# We use snapshot.ubuntu.com here so it works both for ports and non-ports
architectures
# without having to do complicated architecture detection logic
$ubuntu_mmdebstrap_extra_args->{"$series-proposed"} = [
'--components=main,universe',
'--include=ca-certificates',
'--setup-hook=echo "deb
[signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg]
https://snapshot.ubuntu.com/ubuntu '
. $series
. '-proposed main universe" >
"$1"/etc/apt/sources.list.d/proposed.list',
"--aptopt=APT::Default-Release \"$series\";" # this pins all
pockets to 990 so we actually get proposed binaries
];
$ubuntu_mmdebstrap_extra_args->{"$series-backports"} = [
'--components=main,universe',
'--include=ca-certificates',
'--setup-hook=echo "deb
[signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg]
https://snapshot.ubuntu.com/ubuntu '
. $series
. '-backports main universe" >
"$1"/etc/apt/sources.list.d/backports.list'
];
# security we need to delete the -updates pocket
$ubuntu_mmdebstrap_extra_args->{"$series-security"} = [
'--components=main,universe',
'--setup-hook=sed -i /-updates/d "$1"/etc/apt/sources.list',
];
}
```
Instead of tweaking the sources list, it would be nice if mmdebstrap
could be instructed which suites should be enabled.
Calling `mmdebstrap resolute resolute.tar` creates /etc/apt/sources.list
with:
```
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"]
http://archive.ubuntu.com/ubuntu resolute main
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"]
http://archive.ubuntu.com/ubuntu resolute-updates main
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"]
http://security.ubuntu.com/ubuntu resolute-security main
```
I propose taking a --suites parameter to tweak the suites (similar to
the --components paramater):
```
mmdebstrap --suites="%s %s-updates %s-proposed %s-security" resolute
resolute.tar
```
would result in:
```
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"]
http://archive.ubuntu.com/ubuntu resolute main
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"]
http://archive.ubuntu.com/ubuntu resolute-updates main
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"]
http://archive.ubuntu.com/ubuntu resolute-proposed main
deb [signed-by="/usr/share/keyrings/ubuntu-archive-keyring.gpg"]
http://security.ubuntu.com/ubuntu resolute-security main
```
--
Benjamin Drung
Debian & Ubuntu Developer