btrfs/btrfs_finished.sh: use btrfs device ready for probing

master
Harald Hoyer 2013-02-08 14:14:10 +01:00
parent ff52ca1b57
commit d9076cac19
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ btrfs_check_complete() {
_rootinfo=$(udevadm info --query=env "--name=$_dev" 2>/dev/null)
if strstr "$_rootinfo" "ID_FS_TYPE=btrfs"; then
info "Checking, if btrfs device complete"
btrfs device ready "$_dev" >/dev/null 2>&1 && return 0
unset __btrfs_mount
mount -o ro "$_dev" /tmp >/dev/null 2>&1
__btrfs_mount=$?