Changeset 16552 in niluje


Ignore:
Timestamp:
Oct 8, 2019, 5:21:07 PM (10 days ago)
Author:
NiLuJe
Message:

Kindle Touch Hacks:

  • Bridge:
    • Handle the potential double-mount properly
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Touch_Hacks/JailBreak/src/bridge.sh

    r16537 r16552  
    8787                logmsg "I" "mount_root_rw" "" "Running from diags, mounting main rootfs ${ROOTPART} on ${ROOT}"
    8888                mkdir -p "${ROOT}"
    89                 mount -o rw "/dev/${ROOTPART}" "${ROOT}"
     89                # NOTE: We enforce an initial mount to be able to run the checks,
     90                #       so account for the fact that we can effectively call mount twice, in which case,
     91                #       handle the error by issuing a remount instead.
     92                mount -o rw "/dev/${ROOTPART}" "${ROOT}" || mount -o rw,remount "/dev/${ROOTPART}" "${ROOT}"
    9093        else
    9194                logmsg "I" "mount_root_rw" "" "Mounting rootfs rw"
Note: See TracChangeset for help on using the changeset viewer.