Skip to content

Commit

Permalink
Fix loop mount sqsh stuff
Browse files Browse the repository at this point in the history
ThatHackerDudeFromCyberspace committed Jan 2, 2025
1 parent 0f25d95 commit 5c5d3b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/bridge
Original file line number Diff line number Diff line change
@@ -587,11 +587,9 @@ install_touch_update_key_squash()
mount_root_rw
logmsg "I" "install_touch_update_key_squash" "" "Copying the jailbreak updater keystore"
make_mutable "${ROOT}/etc/uks.sqsh"
local my_loop="$(grep ' /etc/uks ' /proc/mounts | cut -f1 -d' ')"
umount "${my_loop}"
losetup -d "${my_loop}"
umount "/etc/uks"
cp -f "${MKK_PERSISTENT_STORAGE}/updater_keys.sqsh" "${ROOT}/etc/uks.sqsh"
mount -o loop="${my_loop}",norelatime,nodiratime,noatime -t squashfs "${ROOT}/etc/uks.sqsh" "${ROOT}/etc/uks"
mount "/etc/uks.sqsh" "/etc/uks" -o loop,norelatime,nodiratime,noatime -t squashfs
chown root:root "${ROOT}/etc/uks.sqsh"
chmod 0644 "${ROOT}/etc/uks.sqsh"
make_immutable "${ROOT}/etc/uks.sqsh"

0 comments on commit 5c5d3b2

Please sign in to comment.