Jayy001 / codexctl

Automated update managment for the ReMarkable tablet
GNU General Public License v3.0
108 stars 13 forks source link

Mount command failing #99

Open kaleko opened 1 month ago

kaleko commented 1 month ago

I ran the following commands on my remarkable2 from the /root/home directory:

> mkdir ~/Downloads/
> ./codexctl.bin download 3.11.2.5
> ./codexctl.bin extract ~/Downloads/3.11.2.5_reMarkable2-qLFGoqPtPL.signed 
> mkdir /opt/remarkable/
> ./codexctl.bin mount extracted

Which results in the following error:

Traceback (most recent call last):
  File "/tmp/onefile_2178_1729868432_328570/codexctl.py", line 12, in <module>
  File "/tmp/onefile_2178_1729868432_328570/codexctl/__init__.py", line 811, in main
  File "/tmp/onefile_2178_1729868432_328570/codexctl/__init__.py", line 648, in do_mount
  File "/tmp/onefile_2178_1729868432_328570/remarkable_update_fuse/__init__.py", line 1, in <module remarkable_update_fuse>
  File "/tmp/onefile_2178_1729868432_328570/remarkable_update_fuse/fuse.py", line 6, in <module remarkable_update_fuse.fuse>
  File "/tmp/onefile_2178_1729868432_328570/fuse.py", line 26, in <module fuse>
ImportError: libfuse.so.2: cannot open shared object file: No such file or directory

Note a du extracted returns a size of 0, but I'm not familiar with what du should output for such a file.

Eeems commented 1 month ago

du should output the size of the image file, which would not be 0 if it actually extracted things. It looks like the build is failing to embed libfuse.so.2, which is why it's failing to extract.

To work around this, run the build of codexctl for your host computer on your host computer instead of on device.