From: Thomas Thrainer Date: Thu, 23 May 2013 11:17:29 +0000 (+0200) Subject: Report error when exporting non-ext partition X-Git-Url: http://git.equinoxoli.org/?p=ext%2Finstance-debootstrap.git;a=commitdiff_plain;h=36f82f81bc94bfa7b0412c3df8d2b13d932a2910 Report error when exporting non-ext partition Report an error if it's exporting an instance fails because of the wrong filesystem type. This fixes issue 303. Signed-off-by: Thomas Thrainer Reviewed-by: Guido Trotter --- diff --git a/NEWS b/NEWS index 7c48341..493cd60 100644 --- a/NEWS +++ b/NEWS @@ -9,6 +9,10 @@ defaults to 'ext4'. Improve documentation with regard to instance variants. +Bugfixes: + +- Report an error if it's exporting an instance fails because of the + wrong filesystem type. Version 0.12 ------------ diff --git a/export b/export index d0afa68..46aa74c 100755 --- a/export +++ b/export @@ -43,6 +43,9 @@ vol_type=$($VOL_TYPE $filesystem_dev) if [ "${vol_type:0:3}" = "ext" ]; then dump -0 -q -f - "$filesystem_dev" +else + echo "Can't dump partition of type ${vol_type}!" >&2 + exit 1 fi # execute cleanups