[Pkg-ltsp-devel] Bug#704830: ltsp-client-core: the init script should provide a hook for code snippets

Vagrant Cascadian vagrant at debian.org
Mon Apr 8 21:44:07 UTC 2013


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



More information about the Pkg-ltsp-devel mailing list