Fixed breakage introduced by necessary changes because of isolinux problems 0.97
authorMichael Gebetsroither <michael.geb@gmx.at>
Fri, 21 Mar 2008 18:30:05 +0000 (19:30 +0100)
committerMichael Gebetsroither <michael.geb@gmx.at>
Fri, 21 Mar 2008 18:30:05 +0000 (19:30 +0100)
debian/changelog
default_config

index ffb9bf6..045ed16 100644 (file)
@@ -1,3 +1,10 @@
+grml-terminalserver (0.97) unstable; urgency=low
+
+  * Fixed breakage introduced by necessary changes because of isolinux
+    problems.
+
+ -- Michael Gebetsroither <gebi@grml.org>  Fri, 21 Mar 2008 19:19:59 +0100
+
 grml-terminalserver (0.96) unstable; urgency=low
 
   * Fixed breakage introduced by boot layout change.
index 899a033..33a25ac 100644 (file)
@@ -17,10 +17,17 @@ fi
 DATA_PATH_="$MOUNT_POINT_/boot"
 
 ISOLIN_PATH_="$DATA_PATH_/isolinux"
+test -d $ISOLIN_PATH_ || ISOLIN_PATH_="$MOUNT_POINT_"
 
-ADDONS_PATH_="$DATA_PATH_/addons"
+ADDONS_PATH_="$(dirname $(find $MOUNT_POINT_ -maxdepth 3 -name memtest |head -n1))"
+if [[ $ADDONS_PATH_ == "" ]]; then
+    ADDONS_PATH_="$MOUNT_POINT_"
+fi
 
-MULTIBOOT_PATH_="$(dirname $(find $DATA_PATH_ -maxdepth 2 -name linux26))"
+MULTIBOOT_PATH_="$(dirname $(find $DATA_PATH_ -maxdepth 2 -name linux26 |head -n1))"
+if [[ $MULTIBOOT_PATH_ == "" ]]; then
+    MULTIBOOT_PATH_="$MOUNT_POINT_"
+fi
 
 KERNEL_IMAGE_="$MULTIBOOT_PATH_/linux26"