tags 406366 pending
tags 418142 pending
thanks

so, finally figured out how to fix this one:

=== added directory 'client/initramfs/scripts'
=== added directory 'client/initramfs/scripts/nfs-bottom'
=== added file 'client/initramfs/scripts/nfs-bottom/ltsp'
--- client/initramfs/scripts/nfs-bottom/ltsp    1970-01-01 00:00:00 +0000
+++ client/initramfs/scripts/nfs-bottom/ltsp    2007-09-02 05:23:24 +0000
@@ -0,0 +1,6 @@
+# set hostname to ltsp if none is received from dhcp
+while read HOSTNAME; do
+    if [ "${HOSTNAME}" = "(none)" ]; then
+        echo "ltsp" > /proc/sys/kernel/hostname
+    fi
+done < /proc/sys/kernel/hostname

=== modified file 'debian/ltsp-client-core.install'
--- debian/ltsp-client-core.install     2007-05-28 17:16:06 +0000
+++ debian/ltsp-client-core.install     2007-09-02 04:48:34 +0000
@@ -8,6 +8,7 @@
 client/getltscfg/getltscfg usr/bin
 client/initramfs/init-bottom/unionfs_cow usr/share/ltsp-client
 client/initramfs/hooks/ltsp_client usr/share/initramfs-tools/hooks
+client/initramfs/scripts/nfs-bottom/ltsp 
usr/share/initramfs-tools/scripts/nfs-bottom
 client/initramfs/conf.d/ltsp usr/share/initramfs-tools/conf.d
 client/update-kernels usr/lib/ltsp
 client/jetpipe/jetpipe  usr/sbin

=== modified file 'server/plugins/ltsp-build-client/Debian/010-etc-hostname'
--- server/plugins/ltsp-build-client/Debian/010-etc-hostname    2007-05-19 
14:34:09 +0000
+++ server/plugins/ltsp-build-client/Debian/010-etc-hostname    2007-09-02 
04:47:38 +0000
@@ -1,5 +1,7 @@
 case "$MODE" in
     after-install)
-        echo ltsp > $ROOT/etc/hostname
+        # zero out the hostname file, so system hostname gotten from DHCP takes
+        # priority.
+        echo > $ROOT/etc/hostname
         ;;
 esac


committed to bzr branch:

  http://llama.freegeek.org/~vagrant/bzr/ltsp/vagrant-main

thanks to scotty for the /proc/sys/kernel/hostname idea, not to mention
the slick code without calling any external programs... :)

live well,
  vagrant


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to