You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following your PHP script, I've created an installer package that does the same, without the need of a PHP runner, or a separate server with qemu, but rather, right on the FileHub.
The script set is available here. As you can see, it follows your script step by step:
Creates a temporary EXT2 chroot image for Entware to run the install in
Mounts tempFS to $(pwd)/build
Creates minimal viable file system for chroot, adds busybox and symlinks, mounts /dev and /proc
Chroot's into $(pwd)/build, retrieves Entware install script, and runs it
Installs busybox, entware-opt and dropbear packages
Creates final extern_image, a 128MB EXT2 image, and mounts it to $(pwd)/entware
Copies the $(pwd)/build/opt folder to $(pwd)/entware
Destroys the original chroot and unmounts the images, cleaning up the remains
Copies an updated rc.local to /etc, and runs etc_tools p to persist this change
The image is created properly, and for some mysterious reasons, my firmware (2.000.018) came with /opt existing, but /extern does not - which is why the rc.local changes are necessary. I also took some liberty to make the script itself a bit more dynamic.
This new rc.local runs fine on boot, however... When it is executed, the /data/*DiskN mounts do not exist yet, meaning it never succeeds on its own to mount these.
As you've previously managed to get it working, would you mind giving a few pointers on how to get this mount to work? I thought about adding some repeat retries to the script (try in first few minutes of boot), or possibly patching the script responsible for mounting the disk partitions.
The text was updated successfully, but these errors were encountered:
Hey!
Following your PHP script, I've created an installer package that does the same, without the need of a PHP runner, or a separate server with qemu, but rather, right on the FileHub.
The script set is available here. As you can see, it follows your script step by step:
$(pwd)/build
/dev
and/proc
$(pwd)/build
, retrieves Entware install script, and runs itbusybox
,entware-opt
anddropbear
packagesextern_image
, a 128MB EXT2 image, and mounts it to$(pwd)/entware
$(pwd)/build/opt
folder to$(pwd)/entware
rc.local
to/etc
, and runsetc_tools p
to persist this changeThe image is created properly, and for some mysterious reasons, my firmware (2.000.018) came with
/opt
existing, but/extern
does not - which is why therc.local
changes are necessary. I also took some liberty to make the script itself a bit more dynamic.This new
rc.local
runs fine on boot, however... When it is executed, the/data/*DiskN
mounts do not exist yet, meaning it never succeeds on its own to mount these.As you've previously managed to get it working, would you mind giving a few pointers on how to get this mount to work? I thought about adding some repeat retries to the script (try in first few minutes of boot), or possibly patching the script responsible for mounting the disk partitions.
The text was updated successfully, but these errors were encountered: