linux/block-snapshot: fix handling root.img being already block device
This commit is contained in:
parent
acbdb3a261
commit
c9a670cbd1
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user