Last active
June 6, 2024 23:15
-
-
Save Eeems/768ed4a8f5003369eae5453cbb4ae5af to your computer and use it in GitHub Desktop.
chroot on a reMarkable into /opt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opkg install busybox bash | |
ln -fs /bin/bash /opt/bin/sh | |
mkdir -p /mnt/ramdisk | |
mount -t tmpfs -o size=64m tmpfs /mnt/ramdisk | |
pushd /mnt/ramdisk | |
mkdir dev proc sys run opt | |
mount -t proc /proc proc/ | |
mount -o bind /sys sys/ | |
mount -o bind /dev dev/ | |
mount -o bind /run run/ | |
mount -o bind /opt opt/ | |
\ls opt | while read name;do mkdir -p $name;mount --bind /opt/$name $name/;done | |
chroot . bin/bash | |
popd | |
/bin/umount -R /mnt/ramdisk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment