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

PATH not used to start command #20

Closed
c3d opened this issue Aug 4, 2022 · 2 comments
Closed

PATH not used to start command #20

c3d opened this issue Aug 4, 2022 · 2 comments

Comments

@c3d
Copy link

c3d commented Aug 4, 2022

Running the following shows an example of the problem:

% krunvm start fedora-rawhide /bin/ls -- -l /bin/bash
-rwxr-xr-x 1 root root 1433752 Jul 20 22:00 /bin/bash
% krunvm start fedora-rawhide /bin/bash -- -c 'echo $PATH'
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin
% krunvm start fedora-rawhide bash

The last command does not succeed. You need to pass /bin/path for it to work.

Note that this is somewhat inconsistent with podman usage for example, where podman run -it ubi8 bash works.

@slp
Copy link
Collaborator

slp commented Aug 4, 2022

This has been fixed in libkrun 1.3.0 / krunvm 0.2.1. Please let me know if the problem persists.

@slp slp closed this as completed Aug 31, 2022
@c3d
Copy link
Author

c3d commented Sep 1, 2022

@slp Tested successfully on Linux (krunvm 0.2.2, libkrun 1.4.3 and libkrunfw 3.6.3) and macOS (krunvm 0.2.1 and 0.2.2, libkrun 1.4.4, libkrunfw 3.6.3). Thanks.

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

No branches or pull requests

2 participants