actually search for bundles when looking for boot device

pull/5/head
Tomas M 2012-10-12 06:13:46 -05:00
parent 986ddb2887
commit 141d6d6b75
1 changed files with 2 additions and 1 deletions

View File

@ -258,7 +258,8 @@ find_data_try()
FS="$(device_bestfs "$DEVICE")" FS="$(device_bestfs "$DEVICE")"
OPTIONS="$(fs_options $FS)" OPTIONS="$(fs_options $FS)"
mount -r "$DEVICE" "$1" $FS $OPTIONS 2>/dev/null mount -r "$DEVICE" "$1" $FS $OPTIONS 2>/dev/null
if [ -d "$1/$LIVEKITNAME" ]; then if [ "$(find "$1/$LIVEKITNAME" -maxdepth 1 -name "*.$BEXT")" != "" ]; then
# we found at least one bundle/module here
mount -o remount,rw "$DEVICE" "$1" 2>/dev/null mount -o remount,rw "$DEVICE" "$1" 2>/dev/null
echo "$1/$LIVEKITNAME" echo "$1/$LIVEKITNAME"
return return