diff options
author | intrigeri <intrigeri@boum.org> | 2006-11-01 21:30:02 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2006-11-01 21:30:02 +0000 |
commit | 42b7be6130c2e4ebc29ea87647aa80a34c596215 (patch) | |
tree | e6f2f63b391322be93f7516faccdd3b235d9bd75 /handlers/sys | |
parent | b2cda6aae39c0f67999f4b8c9b4aee93c207287e (diff) | |
download | backupninja-42b7be6130c2e4ebc29ea87647aa80a34c596215.tar.gz backupninja-42b7be6130c2e4ebc29ea87647aa80a34c596215.tar.bz2 |
sys: closes 396632 for real
Diffstat (limited to 'handlers/sys')
-rwxr-xr-x | handlers/sys | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/handlers/sys b/handlers/sys index 7c31780..57d9d60 100755 --- a/handlers/sys +++ b/handlers/sys @@ -444,7 +444,6 @@ fi if [ "$partitions" == "yes" ]; then devices=`$SFDISK -l 2>/dev/null | grep "^Disk /dev" | awk '{print $2}' | cut -d: -f1` - debug "$SFDISK will try to backup partition tables for devices $devices" if [ "$devices" == "" ]; then warning "No harddisks found" fi @@ -454,8 +453,11 @@ if [ "$partitions" == "yes" ]; then label=${dev#/dev/} label=${label//\//-} outputfile=${partitionsfile//__star__/$label} - debug "$SFDISK $sfdisk_options -d $dev > $outputfile" - $SFDISK $sfdisk_options -d $dev > $outputfile + debug "$SFDISK $sfdisk_options -d $dev > $outputfile 2>/dev/null" + $SFDISK $sfdisk_options -d $dev > $outputfile 2>/dev/null + if [ $? -ne 0 ]; then + warning "The partition table for $dev could not be saved." + fi done fi |