Some extra example hooks
[ext/instance-debootstrap.git] / export
diff --git a/export b/export
index 82254bc..d0afa68 100755 (executable)
--- a/export
+++ b/export
@@ -21,10 +21,6 @@ set -e
 
 . 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
@@ -43,9 +39,9 @@ else
   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