fix LC_ALL=C sfdisk thing that I missed
authorMicah Anderson <micah@riseup.net>
Sun, 4 Mar 2007 20:15:39 +0000 (20:15 +0000)
committerMicah Anderson <micah@riseup.net>
Sun, 4 Mar 2007 20:15:39 +0000 (20:15 +0000)
ChangeLog
handlers/sys

index 9c7ea45d445d5b985e405f67af04eb688052e9b7..1179b03a3879db4ad4aefff397d67fdaffcc6a7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,7 @@ version 0.9.5 -- unreleased
           that produce warnings about no harddisks found (Closes: #404071)
         . Fixed example in example.sys to detail the __star__ in partitionsfile and
           note why its necessary (Closes: #409192)
+        . Force C locale for sfdisk to ensure english words are found in grep
     fixed 'make install' bug that failed if /etc/backup.d already existed
     changed spaces to tabs in Makefile.am
     updated examples/Makefile.am and handlers/Makefile.am to include rsnap/rub files
index 3e7f03e2e74f1472e799b93ce301e90aa02bbb63..2e181c85c2a27fba52f3441958eec01ea79bcd0b 100755 (executable)
@@ -473,7 +473,7 @@ fi
 
 if [ "$partitions" == "yes" ]; then
    if [ "$dosfdisk" == "yes" ]; then
-      devices=`$SFDISK -l 2>/dev/null | grep "^Disk /dev" | @AWK@ '{print $2}' | cut -d: -f1`
+      devices=`LC_ALL=C $SFDISK -l 2>/dev/null | grep "^Disk /dev" | @AWK@ '{print $2}' | cut -d: -f1`
        if [ "$devices" == "" ]; then 
           warning "No harddisks found" 
        fi