[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#409300: mountroot() calls find_livefs() with improper timeout values



Package: casper
Version: 1.79+debian-1

In the script 'casper', find_livefs() does a -lt comparison between
${timeout} and ${LIVEMEDIA_TIMEOUT} which requires numerical values.
However, mountroot() passes a mixture of numbers and letters as
arguments to find_livefs() which become ${timeout}.  This patch will
correct the problem:

diff -ru casper-1.79+debian/scripts/casper casper-1.79
+debian2/scripts/casper
--- casper-1.79+debian/scripts/casper   2007-01-31 11:25:58.000000000
-0600
+++ casper-1.79+debian2/scripts/casper  2007-02-01 15:03:55.000000000
-0600
@@ -589,7 +589,7 @@
         fi
     else
         # Scan local devices for the image
-        for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13; do
+        for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do
             livefs_root=$(find_livefs $i)
             if [ -n "${livefs_root}" ]; then
                 break






Reply to: