Skip to content

Commit

Permalink
Fixed mounting for OS X 10.15 Catalina
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanalex99 authored and razvand committed Aug 9, 2020
1 parent 57a7333 commit 0004eb6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions config.sample
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ IPSW_STORE="$STORE"/ipsw
# Where to store extracted and processed files.
OUT_STORE="$STORE"/out

# Where to mount root filesystem.
MOUNT_DIR="$STORE"/mnt

# Make scripts print out general information.
INFO=1

Expand Down
4 changes: 4 additions & 0 deletions scripts/common
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ if [[ "$OUT_STORE" != /* ]]; then
OUT_STORE=../"$OUT_STORE"
fi

if [[ "$MOUNT_DIR" != /* ]]; then
MOUNT_DIR=../"$MOUNT_DIR"
fi

out_dir="$OUT_STORE"/"$base"
ipsw="$IPSW_STORE"/"$base"_Restore.ipsw

Expand Down
2 changes: 1 addition & 1 deletion scripts/copy_sandboxd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source common

mount_point=/mnt/ios/"$base"
mount_point=$(realpath "$MOUNT_DIR"/ios/"$base")
if ! mount | grep -qs "$mount_point"; then
error "No volume is mounted in $mount_point"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/extract_dyld_shared_cache
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ $OSTYPE != darwin* ]]; then
exit 1
fi

mount_point=/mnt/ios/"$base"
mount_point=$(realpath "$MOUNT_DIR"/ios/"$base")
if ! mount | grep -qs "$mount_point"; then
error "No volume is mounted in $mount_point"
exit 1
Expand Down
5 changes: 4 additions & 1 deletion scripts/mount_fs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ else
fi
fi

mount_point=/mnt/ios/"$base"
mount_point="$MOUNT_DIR"/ios/"$base"

mkdir -p "$mount_point"

mount_point=$(realpath "$mount_point")
if mount | grep -qs "$mount_point"; then
error "A volume is already mounted in $mount_point"
error "Unmount it first from $mount_point"
Expand Down
2 changes: 1 addition & 1 deletion scripts/pack_filesystem
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if test $UID -ne 0; then
exit 1
fi

mount_point=/mnt/ios/"$base"
mount_point=$(realpath "$MOUNT_DIR"/ios/"$base")
if ! mount | grep -qs "$mount_point"; then
error "No volume is mounted in $mount_point"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion scripts/unmount_fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if test $UID -ne 0; then
exit 1
fi

mount_point=/mnt/ios/"$base"
mount_point=$(realpath "$MOUNT_DIR"/ios/"$base")
if ! mount | grep -qs "$mount_point"; then
error "No volume is mounted in $mount_point"
exit 1
Expand Down

0 comments on commit 0004eb6

Please sign in to comment.