in ltsp, initramfs-tools/scripts/ltsp_nbd does not respect the parameter "nbdserver"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LTSP5 |
Fix Released
|
Low
|
Alkis Georgopoulos | ||
ltsp (Ubuntu) |
Fix Released
|
Low
|
Alkis Georgopoulos |
Bug Description
Package: ltsp-server
Version: 5.2.16-0ubuntu7
Maintainer: Stephane Graber <email address hidden>
Release: 11.10 (oneiric)
AFAIU, (/opt/ltsp/
should respect the "nbdserver" parameter -
the relevant part of the function mountroot() should be amended to
something like
if [ -n "${nbdroot}" ]; then
# <host>:<port>
else
if [ -n "${nbdserver}" ]; then
else
fi
if [ -n "$nbdname" ]; then
else
fi
fi
The logic behind mountroot() and scripts/ltsp_nbd probably needs
more thorough review and fixing.
best regards,
description: | updated |
Done in rev1997
=== modified file 'client/ initramfs/ scripts/ ltsp_nbd' initramfs/ scripts/ ltsp_nbd 2011-11-27 04:24:07 +0000 initramfs/ scripts/ ltsp_nbd 2012-02-01 23:38:00 +0000
NBD_ROOT_ HOST=$( echo "${nbdroot}" | sed 's/:.*//')
NBD_ROOT_ PORT=$( echo "${nbdroot}" | sed 's/.*://') HOST="$ {ROOTSERVER} " HOST="$ {nbdserver} " HOST="$ {ROOTSERVER} "
NBD_ ROOT_NAME= ${nbdname}
--- client/
+++ client/
@@ -38,7 +38,11 @@
else
- NBD_ROOT_
+ if [ -n "${nbdserver}" ]; then
+ NBD_ROOT_
+ else
+ NBD_ROOT_
+ fi
if [ -n "$nbdname" ]; then
else