diff options
author | u <u@svh> | 2020-05-14 21:33:24 -0400 |
---|---|---|
committer | u <u@svh> | 2020-05-14 21:33:24 -0400 |
commit | 01bf0bd50b12a1a54a680086576a7b3db319c495 (patch) | |
tree | e6b9fe9c9e447b2e56654e0325e3a89e8edda655 | |
parent | 784fd1095745267e3d1865bd9e51328597b0a40e (diff) |
remove explicit references to stretch
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | patchroot.sh | 9 |
2 files changed, 7 insertions, 4 deletions
@@ -193,7 +193,7 @@ endif | |||
193 | 193 | ||
194 | FORCE: | 194 | FORCE: |
195 | 195 | ||
196 | debian_dist = stretch | 196 | debian_dist := $(shell lsb_release -cs) |
197 | 197 | ||
198 | apt_list_files = $(addprefix /./var/lib/apt/lists/, \ | 198 | apt_list_files = $(addprefix /./var/lib/apt/lists/, \ |
199 | *$(debian_dist)_main_binary* \ | 199 | *$(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 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | echo samizdat > /etc/hostname | 2 | echo samizdat > /etc/hostname |
3 | |||
4 | . /etc/os-release | ||
5 | |||
3 | cat <<END > /etc/apt/sources.list | 6 | cat <<END > /etc/apt/sources.list |
4 | deb http://httpredir.debian.org/debian stretch main #contrib non-free | 7 | deb http://httpredir.debian.org/debian ${VERSION_CODENAME} main #contrib non-free |
5 | deb http://security.debian.org stretch/updates main #contrib non-free | 8 | deb http://security.debian.org ${VERSION_CODENAME}/updates main #contrib non-free |
6 | #deb http://httpredir.debian.org/debian stretch-backports main #contrib non-free | 9 | #deb http://httpredir.debian.org/debian ${VERSION_CODENAME}-backports main #contrib non-free |
7 | END | 10 | END |
8 | 11 | ||
9 | #apt-get update | 12 | #apt-get update |