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

Bug#693718: debootstrap: wrong 'for' in kldstat checks for freebsd



Package: debootstrap
Version: 1.0.42

In the deboostrap scripts the string in sh:

" for module in "linprocfs fdescfs tmpfs linsysfs"; do "

it is interpreted as one string, so 

kldstat -m "$module" > /dev/null 2>&1

is always produce warning. Please remove double quotes  for fix problem:

--- /usr/local/sbin/debootstrap.bak     2012-11-19 19:44:00.529532488 +0400                                                                                                         
+++ /usr/local/sbin/debootstrap 2012-11-19 19:48:17.165541277 +0400                                                                                                                 
@@ -437,7 +437,7 @@                                                                                                                                                                 
 fi                                                                                                                                                                                 
                                                                                                                                                                                    
 if [ "$HOST_OS" = "kfreebsd" ] || [ "$HOST_OS" = "freebsd" ]; then                                                                                                                 
-       for module in "linprocfs fdescfs tmpfs linsysfs"; do                                                                                                                        
+       for module in linprocfs fdescfs tmpfs linsysfs; do                                                                                                                          
                kldstat -m "$module" > /dev/null 2>&1 || warning SANITYCHECK 
"Probably required module %s is not loaded" "$module"                                                  
        done                                                                                                                                                                        
 fi


Reply to: