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

Bug#928756: debian-edu-config | Hand out all subdomains configured by default to all LTSP clients. (ca3b521f)



On Sat, May 25, 2019 at 02:26:22PM +0200, Wolfgang Schweer wrote:
> The search-domain entry is missing in the LTSP client's /etc/resolv.conf 
> in this case (dedicated LTSP client network), because LTSP uses 
> 'ipappend 3' in its PXE configuration.
> 
> Debian Edu uses 'ipappend 2' for the main network.
> 
> So if out of site specific wishes LTSP clients in their dedicated subnet 
> should be added via GOsa with also DNS enabled, 'ipappend 2' should be 
> used instead of 'ipappend 3'.
> 
> This can be set permanently by editing the default file 
> /opt/ltsp/<arch>/boot/pxelinux.cfg/ltsp-NBD and adjusting 
> /opt/ltsp/<arch>/etc/ltsp/update-kernels.conf (last line) and finally 
> running 'ltsp-update-kernels'.

Some more information:

LTSP switched to 'ipappend 3' as failsafe default during the Buster 
development cycle, see this commit:
https://git.launchpad.net/ltsp/commit/?id=d4bd9546c05365c52bf210bfe715640df19ee95a  

For Debian Edu, the former 'ipappend 2' is more useful because a proper 
DHCP service is available.

To get back to the previous behaviour, the setting needs to be adjusted 
at LTSP chroot installation time. This change would do it:

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 81946b3d..039ef6ac 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
@@ -18,4 +18,8 @@ case $MODE in
         echo 'APT::Cmdline::ignore-trust-violations "true";'
     ) >> $ROOT/etc/apt/apt.conf.d/90ltsp-build-client
   ;;
+    after-install)
+        mkdir -p $ROOT/etc/ltsp/update-kernels.conf.d
+        echo 'IPAPPEND="2"' > $ROOT/etc/ltsp/update-kernels.conf.d/pxe
+        ;;
 esac

Please check.

Wolfgang

Attachment: signature.asc
Description: PGP signature


Reply to: