From d38b89e0c57b5d6fc57ea2bf71bd54c9702e7170 Mon Sep 17 00:00:00 2001 From: Peter Rifel Date: Sun, 10 Aug 2025 15:51:01 -0500 Subject: [PATCH] Recognize Debian 13 --- util/pkg/distributions/identify.go | 2 ++ util/pkg/distributions/identify_test.go | 4 ++++ util/pkg/distributions/tests/debian13/etc/os-release | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 util/pkg/distributions/tests/debian13/etc/os-release diff --git a/util/pkg/distributions/identify.go b/util/pkg/distributions/identify.go index 60b265c413..146a248b87 100644 --- a/util/pkg/distributions/identify.go +++ b/util/pkg/distributions/identify.go @@ -58,6 +58,8 @@ func FindDistribution(rootfs string) (Distribution, error) { return DistributionDebian11, nil case "debian-12": return DistributionDebian12, nil + case "debian-13": + return DistributionDebian13, nil case "fedora-41": return DistributionFedora41, nil case "ubuntu-20.04": diff --git a/util/pkg/distributions/identify_test.go b/util/pkg/distributions/identify_test.go index 5935408184..4252071c6c 100644 --- a/util/pkg/distributions/identify_test.go +++ b/util/pkg/distributions/identify_test.go @@ -85,6 +85,10 @@ func TestFindDistribution(t *testing.T) { expected: DistributionDebian12, }, { + rootfs: "debian13", + err: nil, + expected: DistributionDebian13, + }, { rootfs: "flatcar", err: nil, expected: DistributionFlatcar, diff --git a/util/pkg/distributions/tests/debian13/etc/os-release b/util/pkg/distributions/tests/debian13/etc/os-release new file mode 100644 index 0000000000..b39278d4b0 --- /dev/null +++ b/util/pkg/distributions/tests/debian13/etc/os-release @@ -0,0 +1,10 @@ +PRETTY_NAME="Debian GNU/Linux 13 (trixie)" +NAME="Debian GNU/Linux" +VERSION_ID="13" +VERSION="13 (trixie)" +VERSION_CODENAME=trixie +DEBIAN_VERSION_FULL=13.0 +ID=debian +HOME_URL="https://www.debian.org/" +SUPPORT_URL="https://www.debian.org/support" +BUG_REPORT_URL="https://bugs.debian.org/" \ No newline at end of file