-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
adduser: command not found #721
Comments
I suspect this might be because /usr/sbin is not in PATH on Arch Linux, maybe there should be a global check added or the PATH overwritten on chroot. |
Isn't that a configuration issues with the host OS then? https://man.archlinux.org/man/file-hierarchy.7#COMPATIBILITY_SYMLINKS |
No since one can theoretically craft a Unix/Posix OS which has its binaries in
Even if that symlink may exists, it may not be in path by default on the host |
Oh right, yeah that makes sense. I didn't realise chroot inherited the host's PATH variable. I wouldn't be against a PR that sets PATH to something sensible when entering the chroot environment |
With
FIRST_USER_NAME
being set,/bin/bash: line 2: adduser: command not found
is raised herepi-gen/stage1/01-sys-tweaks/00-run.sh
Lines 8 to 10 in d966897
/usr/sbin
is not inPATH
.Possible fix is to add
export PATH=$PATH:/usr/sbin
inside the branch.The text was updated successfully, but these errors were encountered: