While it made sense to use /etc/debian_release in testing (the file contains
text like 'buster/sid') it fails to work in stable (the file content is a plain
version number like 9.8). 'lsb_release --short --codename' is supposed to work
in stable also in standalone mode.
(Vagrant Cascadian made minor edit to use longhand options consistent
with upstream).
Gbp-Pq: Name fix-codename-detection.patch
configure)
ARCH=${ARCH:-"$(dpkg --print-architecture)"}
APT_GET_OPTS=${APT_GET_OPTS:-"-y"}
- DIST=${DIST:-"$(cat /etc/debian_version | cut -d'/' -f1)"}
+ DIST=${DIST:-"$(lsb_release --short --codename)"}
MIRROR=${MIRROR:-"http://deb.debian.org/debian"}
COMPONENTS=${COMPONENTS:-"main"}
EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client"}