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

Bug#854203: debian-edu-config: LTSP chroot installation breaks if usbstick ISO image is used

Package: debian-edu-config
Version: 1.922
Severity: important

While trying out the latest usbstick ISO image to install a Debian Edu 
combi server (profiles 'Main server', 'Workstation', 'LTSP server', 
which is the proposed default) I noticed the installation process 
breaking after the base system had been installed in the LTSP chroot. 
The failure occurs for both 32- and 64-bit installations. The netinst 
ISO image works just fine.

This patch lets the installations (both 32 and 64 bit) succeed:

diff --git a/share/ltsp/plugins/ltsp-build-client/Debian-custom/001-ltsp-settings b/share/ltsp/plugins/ltsp-build-client/Debian-custom/001-ltsp-settings
index 58625e3c..81946b3d 100644
--- a/share/ltsp/plugins/ltsp-build-client/Debian-custom/001-ltsp-settings
+++ b/share/ltsp/plugins/ltsp-build-client/Debian-custom/001-ltsp-settings
@@ -1,9 +1,10 @@
 # File Debian-custom/001-ltsp-settings
 # Deal with case that ltsp-client-builder doesn't look up another
 # mirror if cdrom is still mounted.
+# Lookup if ISO type is NETINST, not if usbstick (debian-cd BD disk type) ISO image is used.
 case $MODE in
-    if [ file:///media/cdrom = "$option_mirror_value" ] ; then
+    if [ file:///media/cdrom = "$option_mirror_value" ] && ! grep -q BD /etc/apt/sources.list ; then
         NEWMIRROR=$(awk '/^deb (http|ftp):\/\/.* main/ { if (!first) { print $2; first=1 } }' < /etc/apt/sources.list)
         echo "info: Changing LTSP mirror from '$option_mirror_value' to '$NEWMIRROR'"


Attachment: signature.asc
Description: PGP signature

Reply to: