diff options
-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 |