linux/block-snapshot: fix handling root.img being already block device

This commit is contained in:
Marek Marczykowski-Górecki 2015-05-27 23:52:57 +02:00
parent acbdb3a261
commit c9a670cbd1

View File

@ -48,6 +48,7 @@ get_dev() {
else
test -e "$dev" || fatal "$dev does not exist."
test -b "$dev" || fatal "$dev is not a block device nor file."
echo "$dev"
fi
}