. common.sh
-CLEANUP=( )
-
-trap cleanup EXIT
-
# If the target device is not a real block device we'll first losetup it.
# This is needed for file disks.
if [ ! -b $blockdev ]; then
exit 1
fi
-vol_type=$($VOL_ID -t $filesystem_dev)
+vol_type=$($VOL_TYPE $filesystem_dev)
-if [ "$vol_type" = "ext3" -o "$vol_type" = "ext2" ]; then
+if [ "${vol_type:0:3}" = "ext" ]; then
dump -0 -q -f - "$filesystem_dev"
fi