Commit de0cc3e9 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Do fs check before reseizing ext{2,3,4} partitions

parent 725a0f88
......@@ -24,6 +24,7 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
# Programs
XMLSTARLET=xmlstarlet
E2FSCK=e2fsck
RESIZE2FS=resize2fs
PARTED=parted
REGLOOKUP=reglookup
......
......@@ -37,7 +37,8 @@ ptype=$(echo "$last_partition" | cut -d: -f5)
if [[ "$ptype" == ext[234] ]]; then
device="${SNF_IMAGE_DEV}${id}"
"$RESIZE2FS" "$device"
$E2FSCK -f "$devide"
$RESIZE2FS "$device"
fi
exit 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment