codexctl icon indicating copy to clipboard operation
codexctl copied to clipboard

Mount command failing

Open kaleko opened this issue 1 year ago • 1 comments

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.

kaleko avatar Oct 25 '24 15:10 kaleko

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.

Eeems avatar Oct 25 '24 16:10 Eeems