Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install script fails without sudo due to missing $SUDO prefix in transactional-update commands #10530

Open
ChrisBeaker opened this issue Jul 16, 2024 · 0 comments

Comments

@ChrisBeaker
Copy link
Contributor

Environmental Info:
K3s Version:
none, install.sh is affected

Node(s) CPU architecture, OS, and Version:
n/a

Cluster Configuration:
n/a

Describe the bug:
The k3s install script fails when executed as non-root user, because the transactional-update commands do not prefix the $SUDO variable. This causes issues in environments where sudo is required.

Steps To Reproduce:
Run k3s install.sh script as non-root user on systems where transactional-update is needed. (e.g. SUSE Linux Micro 6.0)

  curl -sfL https://get.k3s.io/ | sh -

Expected behavior:
Installation succeeds without issues.

Actual behavior:
Installation fails:

+ transactional-update --no-selfupdate -d run mkdir -p /var/lib/rpm-state
main: line 670: transactional-update: command not found

Additional context / logs:
PR prepared, see below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Peer Review
Development

No branches or pull requests

1 participant