Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

Wolfgang Schweer

unread,
Mar 25, 2023, 7:32:40 AM3/25/23
to
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
signature.asc
0 new messages