Debian Bug report logs -
#701647
ltsp-client-core: fails to write /etc/resolv.conf if package resolvconf is installed
Reported by: wschweer@arcor.de
Date: Mon, 25 Feb 2013 17:48:01 UTC
Severity: normal
Tags: confirmed, patch, upstream
Found in version ltsp/5.4.2-5
Fixed in version ltsp/5.5.0-1
Done: Vagrant Cascadian <vagrant@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, debian-edu@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#701647; Package ltsp-client-core.
(Mon, 25 Feb 2013 17:48:04 GMT) (full text, mbox, link).
Acknowledgement sent
to wschweer@arcor.de:
New Bug report received and forwarded. Copy sent to debian-edu@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>.
(Mon, 25 Feb 2013 17:48:04 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
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
[60-resolv-conf (text/plain, attachment)]
[60-edu-nsswitch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#701647; Package ltsp-client-core.
(Tue, 31 Dec 2013 23:15:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Vagrant Cascadian <vagrant@debian.org>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>.
(Tue, 31 Dec 2013 23:15:04 GMT) (full text, mbox, link).
Message #10 received at 701647@bugs.debian.org (full text, mbox, reply):
Control: tag 701647 confirmed
On Mon, Feb 25, 2013 at 06:45:48PM +0100, Wolfgang Schweer wrote:
> 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.
It's not because it's not writeable, it's because /etc/init.d/resolvconf wipes
out all the files:
resolvconf --wipe-runtime-directories
In jessie, it implements a function that does basically the same.
Do you have any updates on the current status, or current workarounds you've
applied?
Will apply your patch or another fix soonish...
live well,
vagrant
Added tag(s) confirmed.
Request was from Vagrant Cascadian <vagrant@debian.org>
to 701647-submit@bugs.debian.org.
(Tue, 31 Dec 2013 23:15:04 GMT) (full text, mbox, link).
Reply sent
to Vagrant Cascadian <vagrant@debian.org>:
You have taken responsibility.
(Wed, 01 Jan 2014 09:51:17 GMT) (full text, mbox, link).
Notification sent
to wschweer@arcor.de:
Bug acknowledged by developer.
(Wed, 01 Jan 2014 09:51:17 GMT) (full text, mbox, link).
Message #17 received at 701647-close@bugs.debian.org (full text, mbox, reply):
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 701647@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (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 ftpmaster@ftp-master.debian.org)
-----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 <pkg-ltsp-devel@lists.alioth.debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
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-----
Information forwarded
to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#701647; Package ltsp-client-core.
(Thu, 02 Jan 2014 09:00:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Wolfgang Schweer <wschweer@arcor.de>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>.
(Thu, 02 Jan 2014 09:00:07 GMT) (full text, mbox, link).
Message #22 received at 701647@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Tue, Dec 31, 2013 at 03:10:00PM -0800, Vagrant Cascadian wrote:
> Control: tag 701647 confirmed
>
> On Mon, Feb 25, 2013 at 06:45:48PM +0100, Wolfgang Schweer wrote:
> > 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.
>
> It's not because it's not writeable, it's because /etc/init.d/resolvconf wipes
> out all the files:
>
> resolvconf --wipe-runtime-directories
>
> In jessie, it implements a function that does basically the same.
>
> Do you have any updates on the current status, or current workarounds you've
> applied?
As far as Wheezy is concerned, the Debian Edu chroot setup gets rid of
the package resolvconf.
Wolfgang
[signature.asc (application/pgp-signature, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 04 Feb 2014 07:29:56 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 12:55:11 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.