Debian Bug report logs -
#704830
ltsp-client-core: the init script should provide a hook for code snippets
Reported by: "Wolfgang Schweer" <w.schweer@gmx.de>
Date: Sat, 6 Apr 2013 14:03:01 UTC
Severity: wishlist
Found in version ltsp/5.4.2-6
Done: Wolfgang Schweer <wschweer@arcor.de>
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#704830; Package ltsp-client-core.
(Sat, 06 Apr 2013 14:03:05 GMT) (full text, mbox, link).
Acknowledgement sent
to "Wolfgang Schweer" <w.schweer@gmx.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>.
(Sat, 06 Apr 2013 14:03:05 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-6
Severity: wishlist
Hi,
to fetch config values out of LDAP and to add them to those provided on
the kernel command line or in lts.conf, code has to be executed inside
of the init script. While it is possible to modify the init script in
such a way using a script in init-ltsp.d [1], it would be better to have a
hook inside of the initscript serching for code in some directory, say
ltsp-client-core.d
[1]
# Save as /usr/share/ltsp/init-ltsp.d/70-edu-client-core
# This snippet modifies /etc/init.d/ltsp-client-core on-the-fly.
#
# Get config stored in LDAP for Debian Edu ltsp clients (thin and fat).
#
sed -i '/"Starting\ LTSP\ client..."/ a\
/usr/share/ltsp/get-ldap-ltsp-config\
cat /var/cache/ltsp/ltsp_config_edu >> /var/cache/ltsp/ltsp_config_env\
' /etc/init.d/ltsp-client-core
Wolfgang
[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#704830; Package ltsp-client-core.
(Mon, 08 Apr 2013 21:45:07 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>.
(Mon, 08 Apr 2013 21:45:07 GMT) (full text, mbox, link).
Message #10 received at 704830@bugs.debian.org (full text, mbox, reply):
On Sat, Apr 06, 2013 at 03:58:09PM +0200, Wolfgang Schweer wrote:
> to fetch config values out of LDAP and to add them to those provided on
> the kernel command line or in lts.conf, code has to be executed inside
> of the init script. While it is possible to modify the init script in
> such a way using a script in init-ltsp.d [1], it would be better to have a
> hook inside of the initscript serching for code in some directory, say
> ltsp-client-core.d
Or you could also use /usr/share/ltsp/ltsp_config.d...
Why is this better to do it from ltsp-client-core?
> # Save as /usr/share/ltsp/init-ltsp.d/70-edu-client-core
> # This snippet modifies /etc/init.d/ltsp-client-core on-the-fly.
> #
> # Get config stored in LDAP for Debian Edu ltsp clients (thin and fat).
> #
> sed -i '/"Starting\ LTSP\ client..."/ a\
> /usr/share/ltsp/get-ldap-ltsp-config\
> cat /var/cache/ltsp/ltsp_config_edu >> /var/cache/ltsp/ltsp_config_env\
> ' /etc/init.d/ltsp-client-core
Why don't you call get-ldap-ltsp-config from ltsp_config.d or init-ltsp.d
instead?
live well,
vagrant
Information forwarded
to debian-bugs-dist@lists.debian.org, LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>:
Bug#704830; Package ltsp-client-core.
(Tue, 09 Apr 2013 10:45:04 GMT) (full text, mbox, link).
Acknowledgement sent
to "Wolfgang Schweer" <w.schweer@gmx.de>:
Extra info received and forwarded to list. Copy sent to LTSP Debian Maintainers <pkg-ltsp-devel@lists.alioth.debian.org>.
(Tue, 09 Apr 2013 10:45:04 GMT) (full text, mbox, link).
Message #15 received at 704830@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
On Mon, Apr 08, 2013 at 02:44:07PM -0700, Vagrant Cascadian wrote:
> On Sat, Apr 06, 2013 at 03:58:09PM +0200, Wolfgang Schweer wrote:
> > to fetch config values out of LDAP and to add them to those provided on
> > the kernel command line or in lts.conf, code has to be executed inside
> > of the init script. While it is possible to modify the init script in
> > such a way using a script in init-ltsp.d [1], it would be better to have a
> > hook inside of the initscript serching for code in some directory, say
> > ltsp-client-core.d
>
> Or you could also use /usr/share/ltsp/ltsp_config.d...
First location I tried, but it didn't work out for me.
> Why is this better to do it from ltsp-client-core?
Cause then a network connection to the LDAP server is possible.
> > # Save as /usr/share/ltsp/init-ltsp.d/70-edu-client-core
> > # This snippet modifies /etc/init.d/ltsp-client-core on-the-fly.
> > #
> > # Get config stored in LDAP for Debian Edu ltsp clients (thin and fat).
> > #
> > sed -i '/"Starting\ LTSP\ client..."/ a\
> > /usr/share/ltsp/get-ldap-ltsp-config\
> > cat /var/cache/ltsp/ltsp_config_edu >> /var/cache/ltsp/ltsp_config_env\
> > ' /etc/init.d/ltsp-client-core
>
> Why don't you call get-ldap-ltsp-config from ltsp_config.d or init-ltsp.d
> instead?
Tried both locations; init-ltsp.d is far to early. As far as
ltsp_config.d is concerned, it seems to be the same (no connection to
ldap server). So this weird workaround. The script get-ldap-ltsp-config
is attached, maybe you're able to figure our some other way.
Wolfgang
[get-ldap-ltsp-config (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]
Marked Bug as done
Request was from Wolfgang Schweer <wschweer@arcor.de>
to control@bugs.debian.org.
(Thu, 25 Jan 2018 18:06:06 GMT) (full text, mbox, link).
Notification sent
to "Wolfgang Schweer" <w.schweer@gmx.de>:
Bug acknowledged by developer.
(Thu, 25 Jan 2018 18:06:07 GMT) (full text, mbox, link).
Message sent on
to "Wolfgang Schweer" <w.schweer@gmx.de>:
Bug#704830.
(Thu, 25 Jan 2018 18:06:08 GMT) (full text, mbox, link).
Message #22 received at 704830-submitter@bugs.debian.org (full text, mbox, reply):
close 704830
thanks
Finally found a way to fetch lts.conf values using a script in init-ltsp.d,
thanks again for your hints.
Wolfgang
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Fri, 23 Feb 2018 07:27:14 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 13:18:52 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.