Package: nbd-client
Version: 1:2.8.7-4
Tags: patch
The ubuntu version of nbd-client run mkswap before running swapon on a
nbd device. This seem like a good idea for the Debian based thin
clients too. This is the patch I found in
<URL:http://patches.ubuntu.com/n/nbd/nbd_1:2.8.7-5ubuntu1.patch>, with
this changelog entry:
nbd (1:2.8.5-1ubuntu1) edgy; urgency=low
* make sure there is actually swapspace before we call swapon from
the nbd-client initscript if a device is marked as swap
-- Oliver Grawert <[EMAIL PROTECTED]> Mon, 11 Sep 2006 11:32:51 +0200
Is there a reason not to include it in Debian too? I suspect it will
help LTSP users like Debian Edu.
diff -pruN 1:2.8.7-5/debian/nbd-client.init.d
1:2.8.7-5ubuntu1/debian/nbd-client.init.d
--- 1:2.8.7-5/debian/nbd-client.init.d 2007-05-22 10:19:49.000000000 +0100
+++ 1:2.8.7-5ubuntu1/debian/nbd-client.init.d 2007-05-22 10:17:26.000000000
+0100
@@ -54,6 +54,7 @@ case "$1" in
do
case ${NBD_TYPE[$i]} in
"s")
+ /sbin/mkswap ${NBD_DEVICE[$i]}
/sbin/swapon ${NBD_DEVICE[$i]}
echo "${NBD_DEVICE[$i]}: swap activated."
;;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]