Skip to content

Conversation

@suhancz
Copy link

@suhancz suhancz commented May 18, 2025

Running entware-install.sh adds full Entware package management functionality to the board using the /opt/bin/opkg command

@IDisposable
Copy link
Contributor

Is this just for convenience? This just adds the correct installer script into the image, but doesn't actually install it... so couldn't someone just SSH in and do same commands?

Might be nice to instead emit a script that downloads the current script and then calls down to that, so that it's getting the current at actual install time not at image build time

For example add entware-install.sh that looks like:

#!/bin/bash
set -e

wget -O $(SYSDRV_DIR_OUT_ROOTFS)/usr/sbin/entware-install-generic.sh https://bin.entware.net/armv7sf-k3.2/installer/generic.sh
chmod +x $(SYSDRV_DIR_OUT_ROOTFS)/usr/sbin/entware-install-generic.sh
$(SYSDRV_DIR_OUT_ROOTFS)/usr/sbin/entware-install-generic.sh
# rm $(SYSDRV_DIR_OUT_ROOTFS)/usr/sbin/entware-install-generic.sh

@suhancz
Copy link
Author

suhancz commented May 23, 2025

I took the idea from http://freshtomato.org/ where they give the user the choice to install Entware or not. Most users won't bother - but people like me wouldn't mind actually running the script (and then after installing packages anyway we'd need to modify many things...)

@pdf
Copy link

pdf commented Oct 19, 2025

I suspect we'd probably want to bind-mount /opt from /userdata/opt or something before allowing the installation of arbitrary packages, to ensure that space on the root fs isn't exhausted (and that the changes are actually persisted?).

Also need to add the /opt/etc/init.d/rc.unslung script to the main init system as a post-install step, so maybe should ship a wrapper for the installer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants