Changeset 25786
 Timestamp:
 20110228T02:46:24+01:00 (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/package/blockmount/files/mount.sh
r23110 r25786 32 32 found_device="$(libmount_find_device_by_id "$uuid" "$label" "$device" "$cfgdevice")" 33 33 if [ n "$found_device" ]; then 34 if [ z "$find_rootfs" ]  [ "$find_rootfs" eq 0 ]  [ "$is_rootfs" eq 1 ]; then34 if [ z "$find_rootfs" ]  [ "$find_rootfs" eq 0 ]  ( [ "$is_rootfs" eq 1 ]  [ "$target" = "/" ]  [ "$target" = "/overlay" ] ); then 35 35 [ "$enabled_fsck" eq 1 ] && { 36 36 grep q "$found_device" /proc/swaps  grep q "$found_device" /proc/mounts  { … … 39 39 } 40 40 41 [ "$is_rootfs" eq 1 ] && [ "$find_rootfs" eq 1 ] && { 41 if [ "$find_rootfs" eq 1 ]; then 42 if [ "$is_rootfs" eq 1 ]; then 42 43 target=/overlay 43 } 44 fi 45 else 46 if [ "$is_rootfs" eq 1 ]  [ "$target" = "/overlay" ]; then 47 target=/tmp/overlaydisabled 48 fi 49 fi 50 44 51 config_create_mount_fstab_entry "$found_device" "$target" "$fstype" "$options" "$enabled" 45 52 grep q "$found_device" /proc/swaps  grep q "$found_device" /proc/mounts  { … … 49 56 fi 50 57 fi 51 [ "$is_rootfs" eq 1 ] && [ "$find_rootfs" eq 1 ] && { 58 [ "$find_rootfs" eq 1 ] && { 59 [ "$target" = "/overlay" ] && { 52 60 rootfs_found=1 61 } 53 62 } 54 63 return 0
Note: See TracChangeset
for help on using the changeset viewer.