[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1033451: please fix wrong condition contained in debian-edu-ltsp-install script



Package: debian-edu-config
Version: 2.11.56+deb11u4
Severity: normal
Tags: patch

While trying to install a dedicated LTSP diskless workstation chroot, I 
noticed that running 'debian-edu-ltsp-install --dlw' fails in case the 
Debian Edu BD ISO image isn't available. This is due to a missing check.

To fix the issue on a system with 'LTSP-Server' profile, run as root:
sed -i 's/if ! mountpoint/if [ "true" == "$BD_ISO" ] \&\& ! mountpoint/' /usr/sbin/debian-edu-ltsp-install

Patch for the d-e-c git master branch:

diff --git a/sbin/debian-edu-ltsp-install b/sbin/debian-edu-ltsp-install
index 3c353202..90627977 100755
--- a/sbin/debian-edu-ltsp-install
+++ b/sbin/debian-edu-ltsp-install
@@ -18,7 +18,7 @@
 # Licence:		GPL2+
 # first edited:	2019-11-21
 
-version=2021-11-18
+version=2023-03-25
 
 set -e
 
@@ -598,7 +598,7 @@ EOF
 	mkdir -p /srv/ltsp/dlw
 	chmod 755 /srv/ltsp/dlw
 	# Use BD-ISO if available.
-	if ! mountpoint -q /media/cdrom ; then
+	if [ "true" == "$BD_ISO" ] && ! mountpoint -q /media/cdrom ; then
 		mount /media/cdrom
 	fi
 	if grep -q BD /etc/apt/sources.list && [ -f /media/cdrom/.disk/info ] ; then


Wolfgang

Attachment: signature.asc
Description: PGP signature


Reply to: