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

Can not run distro if no /bin/bash #59

Closed
shyam-saurabh opened this issue Oct 7, 2018 · 3 comments
Closed

Can not run distro if no /bin/bash #59

shyam-saurabh opened this issue Oct 7, 2018 · 3 comments

Comments

@shyam-saurabh
Copy link

I installed alpine linux
lxrunoffline install -n alpine -f ./alpine-minirootfs-3.8.1-x86_64.tar.gz -d ./alpine -r .

then tried
lxrunoffline r -n alpine

which didn't work ofcourse since minirootfs dosen't provides /bin/bash instead it provides /bin/ash
so i tried
lxrunoffline r -n alpine -c "/bin/ash"
lxrunoffline r -n alpine -c "/bin/sh"

None worked while /bin/ash and /bin/sh are available on system no output no error just returns

Well i thought maybe i can install bash so i dug alpine guid from registry and used
wsl {guid}

and i was in then i did
apk add bash
exit

now when i tried
lxrunoffline r -n alpine -c "/bin/ash"

i was in with /bin/ash as my shell
so if i don't have bash lxrunoffline dosen't allows running distro
take a look.

@DDoSolitary
Copy link
Owner

What is your Windows version? I couldn't reproduce it. On my machine, a direct r doesn't work (as expected, I'll probably add support for login shell settings in passwd later), but r -c /bin/sh worked well.

@DDoSolitary
Copy link
Owner

Well, it's Windows's problem which has already been fixed: microsoft/WSL#2372 (comment).

You need to update your Windows to get rid of this bug.

@shyam-saurabh
Copy link
Author

yup can see its fixed in pre release i am still on default 17134.
thx for quick response

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