Skip to content

Commit ec51089

Browse files
authored
Merge pull request #17570 from ameukam/automated-cherry-pick-of-#17550-upstream-release-1.33
Automated cherry pick of #17550: Recognize Debian 13
2 parents f0b5ffc + 1aad119 commit ec51089

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

util/pkg/distributions/identify.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ func FindDistribution(rootfs string) (Distribution, error) {
5858
return DistributionDebian11, nil
5959
case "debian-12":
6060
return DistributionDebian12, nil
61+
case "debian-13":
62+
return DistributionDebian13, nil
6163
case "fedora-41":
6264
return DistributionFedora41, nil
6365
case "ubuntu-20.04":

util/pkg/distributions/identify_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ func TestFindDistribution(t *testing.T) {
8585
expected: DistributionDebian12,
8686
},
8787
{
88+
rootfs: "debian13",
89+
err: nil,
90+
expected: DistributionDebian13,
91+
}, {
8892
rootfs: "flatcar",
8993
err: nil,
9094
expected: DistributionFlatcar,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
2+
NAME="Debian GNU/Linux"
3+
VERSION_ID="13"
4+
VERSION="13 (trixie)"
5+
VERSION_CODENAME=trixie
6+
DEBIAN_VERSION_FULL=13.0
7+
ID=debian
8+
HOME_URL="https://www.debian.org/"
9+
SUPPORT_URL="https://www.debian.org/support"
10+
BUG_REPORT_URL="https://bugs.debian.org/"

0 commit comments

Comments
 (0)