[Bug Report] “resolvectl default-route” not available on older systems during one-click install
Summary
When I try to install CubeSandbox on an older operating system, a command not found error occurs and the installation is interrupted. Is it possible to downgrade as a workaround?
Environment
- Red Hat Enterprise Linux release 8.3
Steps to Reproduce
- run this
curl -sL https://github.com/tencentcloud/CubeSandbox/raw/master/deploy/one-click/online-install.sh | CUBE_PVM_ENABLE=1 bash
Actual Behavior
(base) [admin@app01 ~]$ resolvectl default-route
Unknown operation default-route.
Additional Context
In the original implementation at up-dns.sh,
resolvectl default-route "${RESOLVED_LINK_NAME}" no >/dev/null
the script directly runs resolvectl default-route for the DNS link. On older systems, this subcommand may not exist even when resolvectl is present, and because the script uses strict error handling, that failure can terminate the DNS setup flow unexpectedly.
If there is a direction for a fix or a patch that needs testing, feel free to assign it to me. I would be happy to help test and verify the solution in my environment (RHEL 8.3).
This operating system is too old, and we require the kernel version to be greater than 5.4, otherwise some features may not work properly.
Hi, You can try skipping the DNS and certificate installation. The trade-off is that you won't be able to use the E2B SDK to invoke Cube, but you can use the cubesandbox SDK as an alternative. Feel free to submit a PR to make the DNS and certificate installation steps optional!