Replies: 2 comments 11 replies
-
The file could not exist by default and apk bootstrap is used. If it does, it can be checked if it contains absolute file path or https url to bootstrap, if failed to download/load, could just fallback to apk bootstrap. Although, I plan on adding a prompt before installing bootstrap instead of automatically installing, it will have advance options, so could just add a field for custom bootstrap link. This way user would have to manually enter in a UI instead of background and should be safer from malicious scripts creating file and deleting prefix to have persistent malicious bootstrap unless app is uninstalled. Lines 6 to 12 in 2113407 |
Beta Was this translation helpful? Give feedback.
-
Well, change of idea. Can you add pacman-based bootsrap to termux app? Yes, the original idea came from that. There is simply no "convenient" way to change the package manager to termux. Yes, can reinstall all packages with pacman, but there are pitfalls. Yes, can install this bootstrap on termux yourself, but as I mentioned this is a one-time option. (sorry if this sounded rude) |
Beta Was this translation helpful? Give feedback.
-
In the termux application code, a link for installing bootstrap is immediately installed, which cannot be changed in any way in the termux application itself. For termux users, there are two options for installing non-original bootstrap.
So why not add a way to change the bootstrap install link?
Implementation example:
There will be a file in the application, let's say it's called
bootstrapLink
, which is not inPREFIX
, but in the termuxfiles
directory. ThebootstrapLink
file contains a link to the bootsrap installation. The termux application reads thebootstrapLink
file and installs bootsrap from the file link. If thebootstrapLink
file has an invalid reference, or the file itself does not exist, then the termux application recreates thebootstrapLink
file with the reference specified in the termux application code.Beta Was this translation helpful? Give feedback.
All reactions