-
Notifications
You must be signed in to change notification settings - Fork 1
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
sudo doesn't work on Ubuntu toolbox #4
Comments
Hey thanks for the issue, Unfortunately this is a bug in upstream toolbox - I made a PR to fix it but I am not holding my breath that it will be merged in a timely manner. The issue is that The upstream issue: containers/toolbox#969 I have actually fixed this in my fork - you could give it a try: https://github.com/akdev1l/toolbox It will set the hostname to |
Thanks for the update. |
mm that is a nice observation. I actually just tried with upstream
toolbox version:
it seems like it does add
from inside the toolbox? |
when run from a fedora Toolbox (host is silverblue for me): toolbox version 0.0.99.3
NAME="Fedora Linux"
VERSION="36 (Container Image)"
ID=fedora
VERSION_ID=36
VERSION_CODENAME=""
PLATFORM_ID="platform:f36"
PRETTY_NAME="Fedora Linux 36 (Container Image)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:36"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=36
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=36
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Container Image"
VARIANT_ID=container
toolbox when it's ran from the Ubuntu Jammy toolbox: toolbox version 0.0.99.3
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
toolbox /etc/hosts seems the same to me for both environments, was just a guess, there must be something extra that makes |
Do you an entry similar to this:
in the Also do you get this problem if you create a new container with the Ubuntu Jammy image? I tried to reproduce but I wasn't able to, maybe this was something I actually fixed 🤔 |
Seems like /etc/hosts points to /run/host/etc/hosts by default? |
Ah you nailed it - I actually had I think I found the actual cause - looks the
Ubuntu doesn't come with It is worth noting that this is not part of the official requirements for toolbox images: https://containertoolbx.org/distros/ so I would still categorize this as an upstream bug - that said I will push a fix with |
fixed was pushed - https://github.com/akdev1l/toolbox-images/actions/runs/2966620154 when the jobs succeed you should be able to try again and the new toolboxes created should not have this issue anymore. If you want to fix the issue in your current toolboxes without modifying the host you can just install |
Great, thanks a lot for looking into it! :) |
trying to use sudo on Ubuntu Jammy toolbox gives this error:
The text was updated successfully, but these errors were encountered: