From LedHed's Wiki
Jump to: navigation, search
(Created page with 'If your Clients are having trouble booting this patch will disable the NBD-Proxy and may improve boot probability. == Patch == --- /usr/share/initramfs-tools/scripts/ltsp_nbd ...')
 
 
Line 22: Line 22:
 
http://launchpadlibrarian.net/49591679/disable-nbd-proxy.patch
 
http://launchpadlibrarian.net/49591679/disable-nbd-proxy.patch
  
or get it here
+
Or get it [[Media:disable-nbd-proxy.patch|here]]
  
  

Latest revision as of 15:00, 11 June 2010

If your Clients are having trouble booting this patch will disable the NBD-Proxy and may improve boot probability.

Patch

--- /usr/share/initramfs-tools/scripts/ltsp_nbd   2010-06-02 16:46:35.690271468 +0300
+++ /usr/share/initramfs-tools/scripts/ltsp_nbd   2010-06-02 16:46:56.730103651 +0300
@@ -70,11 +70,8 @@
     ip addr add dev lo 127.0.0.1
     ip link set lo up
 
-    # Start nbd-proxy and wait for it to connect
-    nbd-proxy ${NBD_ROOT_SERVER} ${NBD_ROOT_PORT} ${NBD_ROOT_PORT}
-
     # Mount the root device
-    if nbd-client 127.0.0.1 ${NBD_ROOT_PORT} /dev/nbd0 ; then
+    if nbd-client ${NBD_ROOT_SERVER} ${NBD_ROOT_PORT} /dev/nbd0 ; then
         eval $(fstype /dev/nbd0)
         if [ -z "$FSTYPE" ]; then
             echo "Warning: unable to detect filesystem, assuming squashfs."


File

http://launchpadlibrarian.net/49591679/disable-nbd-proxy.patch

Or get it here


Applying the Patch

chroot

chroot /opt/ltsp/i386

then

cd /tmp

then

wget http://launchpadlibrarian.net/49591679/disable-nbd-proxy.patch

then

patch < disable-nbd-proxy.patch


Updating the Clients

After applying the patch, run this in the chroot

update-initramfs -u

THEN exit the chroot and run:

ltsp-update-kernels

then run : ltsp-update-image"

Reference

https://bugs.launchpad.net/ltsp/+bug/589034