[PATCH] Let tftp use differents lts.conf files on same client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LTSP5 |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Sometimes a guest machine is required to boot LTSP in several ways: thin,fat, autologin...
In this circumstance, a different per-boot configuration file lts.conf is required.
The current lts.conf provides [XX:XX (mac address)] select option, but this is not valid as we allways have the same mac
So I've added a "ltsp.ltsconf=xxx" option for kernel command line at pxegrub boot menu, that lets 05-getltsconffile script to do the work. This option is parsed in 03-kernel-cmdline script and then LTSCONF variable is exported to be used later
Here is the two-line patch:
----------------- cut here ------------
--- /opt/ltsp/
+++ /opt/ltsp/
@@ -9,7 +9,8 @@
fileonly=
pathonly=
lts_
- tftp "$SERVER" -c get ${pathonly:
+ lts_conf_
+ tftp "$SERVER" -c get ${pathonly:
# only overwrite lts.conf if it has non-zero size.
if [ -s "$lts_conf_temp" ]; then
mv "$lts_conf_temp" /etc/lts.conf
------------------ cut here ---------------
Tested in Ubuntu 14.04 x64 server with i386 fat/thin client
summary: |
- Let tftp use differents lts.conf files on same client + [PATCH] Let tftp use differents lts.conf files on same client |
On 2014-07-09, Juan Antonio Martinez wrote:
> So I've added a "ltsp.ltsconf=xxx" option for kernel command line at
> pxegrub boot menu, that lets 05-getltsconffile script to do the work.
> This option is parsed in 03-kernel-cmdline script and then LTSCONF
> variable is exported to be used later
Thanks for the patch!
Committed a slightly modified variation of your patch:
https:/ /bazaar. launchpad. net/~ltsp- upstream/ ltsp/ltsp- trunk/revision/ 2575
Will be included in future ltsp versions.
live well,
vagrant