-
Notifications
You must be signed in to change notification settings - Fork 123
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
Make sure ilab wrapper is executable and in path #661
Conversation
training/nvidia-bootc/Containerfile
Outdated
fi | ||
fi \ | ||
&& chmod +x /usr/local/bin/ilab \ | ||
&& echo 'PATH=$PATH:/usr/local/bin' > /etc/profile.d/usrlocalbin.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was under the assumption /usr/local/bin
is in the default $PATH
so when the OS is installed via the bootc
container it should be there. Is this assumption incorrect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is for users, but not for root, and IIRC ilab should be run as root
[cloud-user@javipolo-rhel-ai-0705a ~]$ echo $PATH
/var/home/cloud-user/.local/bin:/var/home/cloud-user/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
[cloud-user@javipolo-rhel-ai-0705a ~]$ sudo -i
[root@javipolo-rhel-ai-0705a ~]# echo $PATH
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not install ibal in /usr/bin/ ?usr/local should not be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just changed the commit to copy to /usr/bin
and stop using /usr/local/bin
Signed-off-by: Javi Polo <jpolo@redhat.com>
e821527
to
2d269cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.