From 01bf0bd50b12a1a54a680086576a7b3db319c495 Mon Sep 17 00:00:00 2001 From: u Date: Thu, 14 May 2020 21:33:24 -0400 Subject: remove explicit references to stretch --- Makefile | 2 +- patchroot.sh | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a14d817..e3f38bd 100644 --- a/Makefile +++ b/Makefile @@ -193,7 +193,7 @@ endif FORCE: -debian_dist = stretch +debian_dist := $(shell lsb_release -cs) apt_list_files = $(addprefix /./var/lib/apt/lists/, \ *$(debian_dist)_main_binary* \ diff --git a/patchroot.sh b/patchroot.sh index 54a37e2..8bd3269 100644 --- a/patchroot.sh +++ b/patchroot.sh @@ -1,9 +1,12 @@ #!/bin/sh echo samizdat > /etc/hostname + +. /etc/os-release + cat < /etc/apt/sources.list -deb http://httpredir.debian.org/debian stretch main #contrib non-free -deb http://security.debian.org stretch/updates main #contrib non-free -#deb http://httpredir.debian.org/debian stretch-backports main #contrib non-free +deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free +deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free +#deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free END #apt-get update -- cgit v1.2.3