Bug#770312: debian-edu-config: LTSP install fail from USB stick ISO (unable to find openvpn for puring)
Package: debian-edu-config
Version: 1.813
Severity: important
Tags: patch pending
When installing main+ltsp using the USB stick ISO, the LTSP installation
fail with an error when the openvpn package is purged because apt do not
know anything about openvpn. This is caused by the fact that the full
mirror is not enabled during installation.
The following patch solve the issue by allowing the purge to fail.
* In LTSP setup, allow the purging of openvpn to fail (which happen if
it is unknown to apt), to get LTSP installation working using the
usbstick ISO.
diff --git a/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs b/share/ltsp/plugins/ltsp-build
index f4eb7d3..6b7c31f 100644
--- a/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
+++ b/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs
@@ -232,8 +232,10 @@ setup_diskless_workstation() {
# No dynamic network configuration on diskless clients.
in_target apt-get -y purge network-manager wpasupplicant \
- network-manager-openvpn network-manager-pptp network-manager-vpnc \
- openvpn
+ network-manager-openvpn network-manager-pptp network-manager-vpnc
+
+ # Do not fail if openvpn isn't installed. This is the case in Jessie
+ in_target apt-get -y purge openvpn || true
# No VPN nor serial network either
in_target apt-get -y purge ppp
--
Happy hacking
Petter Reinholdtsen
Reply to: