On Sun, Jan 28, 2018 at 09:02:51PM +0100, Petter Reinholdtsen wrote: > [Wolfgang Schweer] > > at the time Buster will be released, only > 13 year old PCs won't > > support 64 bit; so amd64 would be a good default. But there may > > still be people out there who want support for old boxes. > > Right. The procedure would be to create a new ltsp i386 chroot, using > the normal LTSP tools. Do we need to make the choice any easier? IIRC, these changes are needed atm (d-e-c 2.10.19) to enable amd64 LTSP: (1) Run "ltsp-build-client --arch amd64" to create chroot and NBD image. (2) Use "ldapvi -ZD '(cn=admin)'" to replace i386 with amd64 (dhcp items). (3) Run "service isc-dhcp-server restart". (4) Edit /etc/debian-edu/pxeinstall.conf (set ltsparch=amd64). (5) Run 'debian-edu-pxeinstall' to regenerate the PXE menu. With amd64 beeing the default it would be similar, and instructions like those above could be added to the Buster manual. Also, to support other prospected archs, the dhcp values for rootpath and filename shouldn't be hardcoded in LDAP (atm 'i386') but rather be set at installation time, defaulting to the server arch. This could be done with these changes: diff --git a/ldap-bootstrap/gosa-server.ldif b/ldap-bootstrap/gosa-server.ldif index 9fa98e4d..2cd6b19b 100644 --- a/ldap-bootstrap/gosa-server.ldif +++ b/ldap-bootstrap/gosa-server.ldif @@ -252,14 +252,14 @@ dhcpOption: routers ltspserver00.subnet00 dhcpOption: domain-name "intern" dhcpOption: subnet-mask 255.255.255.0 dhcpOption: broadcast-address 192.168.0.255 -dhcpOption: root-path "/opt/ltsp/i386" +dhcpOption: root-path "/opt/ltsp/$LTSPARCH" dhcpOption: ntp-servers ntp dhcpOption: wpad-url "http://wpad/wpad.dat" dhcpOption: smtp-server postoffice dhcpOption: domain-name-servers 10.0.2.2 dhcpStatements: default-lease-time 432000 dhcpStatements: max-lease-time 432000 -dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0" +dhcpStatements: filename "/var/lib/tftpboot/ltsp/$LTSPARCH/pxelinux.0" dhcpStatements: next-server ltspserver00.subnet00 dhcpStatements: authoritative dhcpStatements: allow unknown-clients @@ -284,14 +284,14 @@ dhcpOption: routers ltspserver01.subnet01 dhcpOption: domain-name "intern" dhcpOption: subnet-mask 255.255.255.0 dhcpOption: broadcast-address 192.168.1.255 -dhcpOption: root-path "/opt/ltsp/i386" +dhcpOption: root-path "/opt/ltsp/$LTSPARCH" dhcpOption: ntp-servers ntp dhcpOption: wpad-url "http://wpad/wpad.dat" dhcpOption: smtp-server postoffice dhcpOption: domain-name-servers 10.0.2.2 dhcpStatements: default-lease-time 432000 dhcpStatements: max-lease-time 432000 -dhcpStatements: filename "/var/lib/tftpboot/ltsp/i386/pxelinux.0" +dhcpStatements: filename "/var/lib/tftpboot/ltsp/$LTSPARCH/pxelinux.0" dhcpStatements: next-server ltspserver01.subnet01 dhcpStatements: authoritative dhcpStatements: allow unknown-clients diff --git a/ldap-tools/ldap-debian-edu-install b/ldap-tools/ldap-debian-edu-install index ffb340dc..2d9ffd07 100755 --- a/ldap-tools/ldap-debian-edu-install +++ b/ldap-tools/ldap-debian-edu-install @@ -296,6 +296,9 @@ init_ldap () { TEACHERSDN64=$(echo -n "$TEACHERSDN" | base64 -w0) MAC=$(lookup_mac_addrs|head -1) + ## Set LTSP chroot related DHCPD values (rootpath and filename): + LTSPARCH=$(/usr/bin/dpkg --print-architecture) + ## query debconf data base for time zone and locale: AREA=`debconf-show tzdata | grep "^* tzdata/Areas:" | \ sed "s/.*:[[:space:]]*\([[:alpha:]]*\)$/\1/"` @@ -388,6 +391,7 @@ EOF -e "s:\$FIRSTUSERLASTNAME:$FIRSTUSERLASTNAME:" \ -e "s:\$FIRSTUSERGIVENNAME:$FIRSTUSERGIVENNAME:" \ -e "s:\$FIRSTUSERPWDHASH:$FIRSTUSERPWDHASH:" \ + -e "s:\$LTSPARCH:$LTSPARCH:" \ | /usr/sbin/slapadd ; then echo "info: added '$ldif' to ldap database." else Wolfgang
Attachment:
signature.asc
Description: PGP signature