diff --git a/handlers/sys.in b/handlers/sys.in index 1d4797708c644830c2c0c3d3e908641ab4571f76..d5457193b78f2fd7109f07d04025ed570073a36a 100644 --- a/handlers/sys.in +++ b/handlers/sys.in @@ -107,6 +107,7 @@ getconf sysreportfile $parentdir/sysreport.txt getconf SFDISK `which sfdisk` getconf HWINFO `which hwinfo` +getconf LSBLK `which lsblk` getconf sfdisk_options "" getconf hwinfo_options "" @@ -607,7 +608,7 @@ fi if [ "$partitions" == "yes" ]; then if [ "$dosfdisk" == "yes" ]; then - devices=`LC_ALL=C $SFDISK -l 2>/dev/null | grep "^Disk /dev" | @AWK@ '{print $2}' | cut -d: -f1` + devices=`LC_ALL=C $LSBLK --output NAME,TYPE --list --paths 2>/dev/null | grep "disk$" | @AWK@ '{print $1}'` if [ "$devices" == "" ]; then warning "No harddisks found" fi