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

Make sure ilab wrapper is executable and in path #661

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

javipolo
Copy link
Collaborator

@javipolo javipolo commented Jul 8, 2024

No description provided.

fi
fi \
&& chmod +x /usr/local/bin/ilab \
&& echo 'PATH=$PATH:/usr/local/bin' > /etc/profile.d/usrlocalbin.sh
Copy link
Collaborator

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?

Copy link
Collaborator Author

@javipolo javipolo Jul 8, 2024

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

Copy link
Member

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.

Copy link
Collaborator Author

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>
@javipolo javipolo force-pushed the ilab_wrapper_executable branch from e821527 to 2d269cf Compare July 8, 2024 18:21
Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rhatdan rhatdan merged commit 266831d into containers:main Jul 10, 2024
1 check passed
@javipolo javipolo deleted the ilab_wrapper_executable branch July 12, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants