Skip to content

Commit 05f7da6

Browse files
rcky844Ricky Cheung
andauthored
Refinements for installing bootstrap / untethered on 64-bit (#797)
* Refinements for installing bootstrap / untethered on 64-bit * Instead of sending the tar to the RootFS with limited space, send it as stdin via SSH. * Add note for iOS 8 SSH ramdisk Signed-off-by: Ricky Cheung <rcheung844@gmail.com> * Add tar with Patcyh removed This package has a requirement for firmware >= 8.3, which causes issues for devices running versions older than this. Fix by removing them from dpkg's available and status lists, alongside all installed dependencies. Signed-off-by: Ricky Cheung <rcheung844@gmail.com> * Allow Cydia to perform stashing on untethered 7.x """ Upon the iOS device, a space doth wane, The root partition, small, doth fill apace. When tweaks and apps in multitudes we gain, The system groans in such a crowded space. Then Cydia, wise, a remedy did grace: To stash away in user's land more vast, The Applications, Themes, and Library's place, With symlinks left, so naught is overpassed. But LukeZGD, in prudence, held it fast; Disabled by default, the stashing art, Lest unforeseen mishaps be then amassed, And cautious users play the safer part. Now, hark! The program grants a choice to start: To stash or not, as users may decree. Thus freedom rings, a satisfying chart, And each may choose as fits their warranty. So lift thy voice and let thy choice be free, For stashing's power now lies in thine own hand. """ This is the original commit message: Stashing appears to work fine with this set-up, fixing issues with not enough storage space when installing tweaks. Users may use Cydia Eraser if they preferred going back to factory configurations, so this is absolutely fine. Signed-off-by: Ricky Cheung <rcheung844@gmail.com> --------- Signed-off-by: Ricky Cheung <rcheung844@gmail.com> Co-authored-by: Ricky Cheung <rcheung844@gmail.com>
1 parent 8b3b013 commit 05f7da6

2 files changed

Lines changed: 18 additions & 7 deletions

File tree

resources/jailbreak/freeze7.tar

21.7 MB
Binary file not shown.

restore.sh

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5942,6 +5942,7 @@ device_ramdisk64() {
59425942
if [[ $ios8 == 1 ]]; then
59435943
device_iproxy no-logging 44
59445944
print "* Booted SSH ramdisk is based on: https://ios7.iarchive.app/downgrade/making-ramdisk.html"
5945+
print "* You may need to unplug and replug your device."
59455946
else
59465947
device_iproxy no-logging
59475948
print "* Booted SSH ramdisk is based on: https://github.com/verygenericname/SSHRD_Script"
@@ -6789,14 +6790,13 @@ menu_ramdisk() {
67896790
$ssh -p $ssh_port root@127.0.0.1 "/sbin/mount_hfs /dev/disk0s1s1 /mnt1; /sbin/mount_hfs /dev/disk0s1s2 /mnt2"
67906791
device_ramdisk_iosvers
67916792
case $device_vers in
6792-
[789].* ) :;;
6793+
7.* | 8.[012].* ) freeze_tar="freeze7.tar" ;;
6794+
8.[34].* | 9.* ) freeze_tar="freeze.tar" ;;
67936795
* ) continue;;
67946796
esac
6795-
$scp -P $ssh_port $jelbrek/freeze.tar root@127.0.0.1:/mnt1
6796-
$ssh -p $ssh_port root@127.0.0.1 "cd /mnt1; tar -xf freeze.tar -C .; rm freeze.tar; mv private/var/lib private"
6797+
cat $jelbrek/$freeze_tar | $ssh -p $ssh_port root@127.0.0.1 "cd /mnt1; tar -xf - -C .; mv private/var/lib private"
67976798
if [[ $device_vers == "9"* ]]; then
6798-
$scp -P $ssh_port $jelbrek/launchctl.tar root@127.0.0.1:/mnt1
6799-
$ssh -p $ssh_port root@127.0.0.1 "cd /mnt1; tar -xf launchctl.tar -C .; rm launchctl.tar"
6799+
cat $jelbrek/launchctl.tar | $ssh -p $ssh_port root@127.0.0.1 "tar -xf - -C /mnt1"
68006800
fi
68016801
case $device_vers in
68026802
9.3.[45] ) :;;
@@ -6828,8 +6828,19 @@ menu_ramdisk() {
68286828
"7.0" ) untether="evasi0n7-untether-70.tar";;
68296829
"7.0"* ) untether="evasi0n7-untether.tar";;
68306830
esac
6831-
$scp -P $ssh_port $jelbrek/$untether root@127.0.0.1:/mnt1
6832-
$ssh -p $ssh_port root@127.0.0.1 "cd /mnt1; tar -xf $untether -C .; rm *.tar"
6831+
cat $jelbrek/$untether | $ssh -p $ssh_port root@127.0.0.1 "tar -xf - -C /mnt1"
6832+
input "Stashing to free up space on system partition"
6833+
print "* When enabled, Cydia will move some components to the data partition on its first run."
6834+
print "* This frees up more space for installing tweaks."
6835+
print "* However, this option can be unstable and lead to bootloop issues."
6836+
print "* This option is disabled by default (N). Disable this option if unsure."
6837+
select_yesno "Enable this option?" 0
6838+
if [[ $? != 1 ]]; then
6839+
log "Stashing disabled by user."
6840+
else
6841+
log "Stashing enabled."
6842+
$ssh -p $ssh_port root@127.0.0.1 "cd /mnt1; rm .cydia_no_stash"
6843+
fi
68336844
;;
68346845
esac
68356846
done

0 commit comments

Comments
 (0)