Hi,

the patch should rather be the attached one.

Wolfgang
From 1247a111dcba94570f8434540fd7df4a230af944 Mon Sep 17 00:00:00 2001
From: Wolfgang Schweer <[email protected]>
Date: Sat, 20 Oct 2018 10:46:40 +0200
Subject: [PATCH] Make 'ltsp-build-client/Debian/000-basic-configuration' more
 robust.

The DIST value set via 'lsb_release -s -c' might be 'n/a' in case of offline
installations. Rather fetch the information from /etc/debian_version (shipped
with 'base-files').
---
 .../plugins/ltsp-build-client/Debian/000-basic-configuration    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/share/ltsp/plugins/ltsp-build-client/Debian/000-basic-configuration b/server/share/ltsp/plugins/ltsp-build-client/Debian/000-basic-configuration
index 983605f4..30d04dcf 100644
--- a/server/share/ltsp/plugins/ltsp-build-client/Debian/000-basic-configuration
+++ b/server/share/ltsp/plugins/ltsp-build-client/Debian/000-basic-configuration
@@ -2,7 +2,7 @@ case "$MODE" in
     configure)
         ARCH=${ARCH:-"$(dpkg --print-architecture)"}
         APT_GET_OPTS=${APT_GET_OPTS:-"-y"}
-        DIST=${DIST:-"$(lsb_release -s -c)"}
+        DIST=${DIST:-"$(cat /etc/debian_version | cut -d'/' -f1)"}
         MIRROR=${MIRROR:-"http://deb.debian.org/debian"}
         COMPONENTS=${COMPONENTS:-"main"}
         EARLY_PACKAGES=${EARLY_PACKAGES:-"ltsp-client"}
-- 
2.19.1

Attachment: signature.asc
Description: PGP signature

Reply via email to