Your message dated Wed, 01 Jan 2014 09:49:25 +0000 with message-id <[email protected]> and subject line Bug#701647: fixed in ltsp 5.5.0-1 has caused the Debian Bug report #701647, regarding ltsp-client-core: fails to write /etc/resolv.conf if package resolvconf is installed to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 701647: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701647 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: ltsp-client-core Version: 5.4.2-5 Severity: normal Tags: upstream patch Hi, while testing ltsp setup for Debian Edu running fat clients I noticed, that /etc/resolv.conf was't written like expected (by 10-resolv-conf). This seems to be caused by $resolv not beeing writable. Using the /etc/network/interface information worked for me. The script has then to be run later, so renamed to 60-resolv-conf. Find the script attached; here's the diff: --- 10-resolv-conf 2012-06-27 00:00:00.000000000 +0200 +++ 60-resolv-conf 2013-02-21 20:05:04.000000000 +0100 @@ -27,24 +27,26 @@ # Apply the dns info that was received from dhcp or from lts.conf if [ -n "$DNS_SERVER" ] || [ -n "$SEARCH_DOMAIN" ]; then - # Deal with resolvconf + # Deal with resolvconf, use writable interface file. if [ -x /sbin/resolvconf ] && ( [ -L /etc/resolv.conf ] || [ -e /var/lib/resolvconf/convert ] ); then - mkdir -p /run/resolvconf/interface/ - resolv_method=resolvconf - resolv=/run/resolvconf/interface/LTSP - else - resolv_method=static - resolv=/etc/resolv.conf - fi - - # Check if $resolv is writable - if echo '# Generated by ltsp' 2>/dev/null > "$resolv"; then if [ -n "$SEARCH_DOMAIN" ]; then - echo "search $SEARCH_DOMAIN" >> "$resolv" + echo "dns-search $SEARCH_DOMAIN" >> /etc/network/interfaces fi for n in $DNS_SERVER; do + echo "dns-nameservers $n" >> /etc/network/interfaces + done + else + # Static case + resolv=/etc/resolv.conf + # Check if $resolv is writable + if echo '# Generated by ltsp' 2>/dev/null > "$resolv"; then + if [ -n "$SEARCH_DOMAIN" ]; then + echo "search $SEARCH_DOMAIN" >> "$resolv" + fi + for n in $DNS_SERVER; do echo "nameserver $n" >> "$resolv" done + fi fi fi true Additionally Debian Edu needs working DNS for KERBEROS. This can be done by modifying /etc/nsswitch.conf without touching /etc/hosts. I wonder if something similar would make sense to be integrated into ltsp-client-core. Find the script 70-edu-nsswitch attached. This would IMHO close bug #613988. Wolfgang# set to defaults from DHCP if not specified in lts.conf if [ -z "$DNS_SERVER" ]; then for dns in $IPV4DNS0 $IPV4DNS1 ; do # ignore nameserver of 0.0.0.0, which ipconfig may return if both # nameservers aren't specified. if [ "$dns" != "0.0.0.0" ]; then DNS_SERVER="$DNS_SERVER $dns" fi done fi # If no DNS_SERVER was defined in lts.conf or in DHCP (e.g. IPAPPEND=3), # check the LTSP server, gateway, and Google Public DNS. if [ -z "$DNS_SERVER" ] && [ -x /usr/bin/dig ]; then gateway=$(LANG=C ip route | sed -n 's/default via \([0-9.]*\).*/\1/p') for dns in $SERVER $gateway 8.8.8.8; do if dig +time=1 +tries=1 +short "@$dns" localhost >/dev/null 2>&1; then DNS_SERVER="$dns" break fi done fi if [ -z "$SEARCH_DOMAIN" ] && [ -n "$DNSDOMAIN" ]; then SEARCH_DOMAIN="$DNSDOMAIN" fi # Apply the dns info that was received from dhcp or from lts.conf if [ -n "$DNS_SERVER" ] || [ -n "$SEARCH_DOMAIN" ]; then # Deal with resolvconf, use writable interface file. if [ -x /sbin/resolvconf ] && ( [ -L /etc/resolv.conf ] || [ -e /var/lib/resolvconf/convert ] ); then if [ -n "$SEARCH_DOMAIN" ]; then echo "dns-search $SEARCH_DOMAIN" >> /etc/network/interfaces fi for n in $DNS_SERVER; do echo "dns-nameservers $n" >> /etc/network/interfaces done else # Static case resolv=/etc/resolv.conf # Check if $resolv is writable if echo '# Generated by ltsp' 2>/dev/null > "$resolv"; then if [ -n "$SEARCH_DOMAIN" ]; then echo "search $SEARCH_DOMAIN" >> "$resolv" fi for n in $DNS_SERVER; do echo "nameserver $n" >> "$resolv" done fi fi fi true# For Debian Edu diskless workstations (i.e. ltsp fat clients). # As dns service is available, modify priority to make KERBEROS work. if boolean_is_true "$LTSP_FATCLIENT"; then sed -i s/compat/ldap\ compat/ /etc/nsswitch.conf sed -i s/files\ my/dns\ files\ my/ /etc/nsswitch.conf sed -i s/netgroups:\ *files/netgroups:\ \ \ \ \ \ ldap\ files/ nsswitch.conf fi
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Source: ltsp Source-Version: 5.5.0-1 We believe that the bug you reported is fixed in the latest version of ltsp, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Vagrant Cascadian <[email protected]> (supplier of updated ltsp package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Wed, 01 Jan 2014 00:55:41 -0800 Source: ltsp Binary: ltsp-server ltsp-server-standalone ltsp-client-core ltsp-client ltsp-client-builder Architecture: source all i386 Version: 5.5.0-1 Distribution: unstable Urgency: medium Maintainer: LTSP Debian Maintainers <[email protected]> Changed-By: Vagrant Cascadian <[email protected]> Description: ltsp-client - complete LTSP client environment ltsp-client-builder - build an LTSP environment in the installer target (udeb) ltsp-client-core - basic LTSP client environment ltsp-server - basic LTSP server environment ltsp-server-standalone - complete LTSP server environment Closes: 591608 701647 718727 Changes: ltsp (5.5.0-1) unstable; urgency=medium . * New upstream version: - Write resolvconf configuration to /etc/ rather than /run, as the init script wipes out /run after writing to it (Closes: #701647). . - Add support for modelines (Closes: #591608). Based on patch by Andre Majorel. . - Allow overriding hard-coded "server" alias in /etc/hosts with $SERVER_NAME. Thanks to Wolfgang Schweer. (Partially addresses: #613988). . - ltsp-update-kernels: Allow for editable pxelinux.cfg/default, by only symlinking to the autogenerated pxelinux.cfg/ltsp. Replacing the symlink with a file can now be done without it getting overwritten. . - update-kernels: Create unversioned symlinks for each kernel variant. . - ltsp-localappsd: Replace "xatomwait" with "xprop -spy". . - Increase NBD_SWAP_THRESHOLD default values. . - nbd-disconnect: Exit if not running NBD root. . - ltsp-build-client: Switch default mirror to http.debian.net. . - initramfs-tools scripts: + Basic support for AoE root. + Support for mounting an image file over NFS. + udhcpc: use correct case for IP kernel parameter. . [ Alkis Georgopoulos ] * Remove packaging to build and install xatomwait. . [ Vagrant Cascadian ] * debian/rules: Switch to using dpkg-vendor instead of lsb_release for detecting vendor. . * ltsp-client-core: - Remove tftp as alternative to tftp-hpa, as ltsp uses some features only present in tftp-hpa (Closes: #718727). Thanks to Wolfgang Schweer. - Recommend acpi-support-base for powerbutton support. - Install ltsp-open, used for remoteapps. . * ltsp-client-builder: Fix race condition with ltsp-update-image, based on patch from Ubuntu packaging. . * debian/control: - Set Standards-Version to 3.9.5, no changes needed. - Add Ubuntu-specific Depends/Recommends when building on Ubuntu. - ltsp-client: Only depend on cryptsetup on Debian. Checksums-Sha1: 10df6e85cf9eb5894a112fccb9df2703a893d2a7 2267 ltsp_5.5.0-1.dsc 81d05df52cfee1f1864cb21375b1ce53780267e0 425476 ltsp_5.5.0.orig.tar.gz b6ccdcf2d268027acae9684fad848a21784299d0 86426 ltsp_5.5.0-1.debian.tar.gz a002704b67b3659cb6cbc508b0e7405682ac4dce 256800 ltsp-server_5.5.0-1_all.deb 3f5c4ac8630b7a9093d6ddf7164fee48cdb5a1b2 142242 ltsp-server-standalone_5.5.0-1_all.deb 4c7b0b4dff954cf0c7835076fd430d7ba0726861 216280 ltsp-client-core_5.5.0-1_i386.deb 921b41692d53a47d33e9fa4cf8edd3d8edb4233a 141514 ltsp-client_5.5.0-1_i386.deb cd949f4f40d4fc192aff70927d1c40a44b7a074b 9874 ltsp-client-builder_5.5.0-1_all.udeb Checksums-Sha256: d74ad4d4e054d799689efad5f89aeee5ed756aa2a24141b6f252a485b8806508 2267 ltsp_5.5.0-1.dsc 5c89689c372a1514bd0e4e801b76779d9b43831f0f8d73dd97919bbb80248bc7 425476 ltsp_5.5.0.orig.tar.gz 3676a86d8805d05690f7ad9945c8cb188d43b50c753b08d4f43a82f50fb1fdda 86426 ltsp_5.5.0-1.debian.tar.gz f91396109116c1fea4ef026a9318b4e4a1a03a34327abb18ee8b7480395143f3 256800 ltsp-server_5.5.0-1_all.deb 6c4a1745315e2cdf4224d3c6c0bbf476cbe7b99d4e0828181357f5f2c14c5c2b 142242 ltsp-server-standalone_5.5.0-1_all.deb dfe1b83bf4e08e5a5ff81590c39239982af323ac4a462d7ab56044ea488e0b95 216280 ltsp-client-core_5.5.0-1_i386.deb c02b536ce5b14fe7b3fc72f29051efb2af89e405f2ebeebd133cad86f99bf2a0 141514 ltsp-client_5.5.0-1_i386.deb 33d3a1f9ad978d1eec0389648776fcfd4d17bfe64f766020f74d40045f44218c 9874 ltsp-client-builder_5.5.0-1_all.udeb Files: 4bea405b025ae35a21fcd1bf0ff3f59d 2267 misc extra ltsp_5.5.0-1.dsc cf764aa246d3328382338347e17b7171 425476 misc extra ltsp_5.5.0.orig.tar.gz 6d265837933954c650cffb9a932ba15a 86426 misc extra ltsp_5.5.0-1.debian.tar.gz a751ffb66e622d8ff10bde934260f43d 256800 misc extra ltsp-server_5.5.0-1_all.deb 1df062e068dc940092d19f424f7dcd9b 142242 misc extra ltsp-server-standalone_5.5.0-1_all.deb 6c6ef0ad2a022b907be7878c4b762a0b 216280 misc extra ltsp-client-core_5.5.0-1_i386.deb 7f5b08f8cb0341f9291b0292f8765689 141514 misc extra ltsp-client_5.5.0-1_i386.deb 39d81b2f62abe2ef2107b6eb1e744291 9874 debian-installer extra ltsp-client-builder_5.5.0-1_all.udeb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCgAGBQJSw91gAAoJELeLgtSBS5G2sscQAIlWEcCO0Yegg9eLGsuunJhZ rLwJXmV56+iy5+ysp3pQ+PUIRJlZRwJI/PlCLYIb0Pw1l0w8V4L9ERljNQPcAbyQ h2Ik08zkqRje3DCVZ+1ACSwiszhkDWJO68HdfeBfoKJvjv3b7nKItq8fj1itHC9T B2c43s/O9k4dCzJFe4JrMvfNNeOOZOGZSy+uyp6okRPg0oqMsAFL8JEHdzGJeo6t 3I+06bxwCkUjHD6uyQLgBd5WBdrLw2Q+9ymFJ8DNzXuyLw21aBoDl6hZGiIJgAKu ffOQxRCJa+UFFGq+u3xATXQLCdqcmg7gVx9mmLTYSwPtmb2ogs/B3Ed2p1KChJ1K FCicplU/GJsPGKIM+3cI/V5jL8jitnOrc8679WNOBAMYarnQK72oimMzz1wIErS0 sGE9c3C0JMDBRQQnaXKLvNM67hdUZtwNEdggaiB07qcJ8UIIAS8z1g+bdpJIi/t6 /yDIpdis3Pte9WlOPha6oEDsX3tx5Hzh95f4tov7/bvsNCb3GDgWnaKQ9+Z3EOnI UviAQp+gqoumZeOYDJDks9wY2L4JIZ0izSmOSuAtcxcKtRA1KUHLCpPZ5YHESaKP hYH5kdwt9TzW01kNnvE9tad+lgVb5RqLnf8BHjOXEP71IlNvMl5j1OE3bPx3Pj0Z dzN5OgnKxxsHqZ9r/hQg =4Vpt -----END PGP SIGNATURE-----
--- End Message ---

