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

Unable to enter toolbox container #5

Closed
trown opened this issue Aug 9, 2019 · 7 comments
Closed

Unable to enter toolbox container #5

trown opened this issue Aug 9, 2019 · 7 comments

Comments

@trown
Copy link
Contributor

trown commented Aug 9, 2019

I get the following error using master on fedora silverblue:

mount: /var/home/trown: special device /host/home/trown does not exist.
error: Initializing container (static): Child ["mount" "--rbind" "/host/home/trown" "/home/trown"]

If I go back to dd30b27 things work great. So it would seem there is some issue with 2542ba4

I will continue to investigate, but I thought I would post a stub in case anyone else hits this.

trown added a commit to trown/coretoolbox that referenced this issue Aug 10, 2019
@matyasselmeci
Copy link

I get the same error on regular Fedora 30 on master (a583a3e).

trown added a commit to trown/coretoolbox that referenced this issue Aug 23, 2019
@trown
Copy link
Contributor Author

trown commented Aug 23, 2019

@matyasselmeci does #6 work for you? I rebased it on the recent changes to master, and it still fixes my issue.

@matyasselmeci
Copy link

No, there is no change for me. I am not running OSTree, just vanilla Fedora 30 Workstation.

trown added a commit to trown/coretoolbox that referenced this issue Aug 30, 2019
@trown
Copy link
Contributor Author

trown commented Sep 6, 2019

@cgwalters first... thanks for this project. Inspired me to start learning rust, and to run silverblue as my main OS.

second, any thoughts on this issue?

#6 fixes it for me, but maybe there is a better way that would also fix it for @matyasselmeci

trown added a commit to trown/coretoolbox that referenced this issue Sep 7, 2019
@trown
Copy link
Contributor Author

trown commented Sep 7, 2019

turns out my fix was actually much simpler... I just needed to set $HOME properly. It was set to /home/trown which is a symlink to /var/home/trown. If I set HOME=/var/home/trown before creating a container with create command, everything works.

@trown trown closed this as completed Sep 7, 2019
@cgwalters
Copy link
Owner

@cgwalters first... thanks for this project. Inspired me to start learning rust, and to run silverblue as my main OS.

Cool! 👍

turns out my fix was actually much simpler... I just needed to set $HOME properly. It was set to /home/trown which is a symlink to /var/home/trown. If I set HOME=/var/home/trown before creating a container with create command, everything works.

Hmm. Right, you generally want to do that. This is a saga though, see e.g.
coreos/rpm-ostree#1726

Probably coretoolbox should be resilient to this.

@cgwalters
Copy link
Owner

BTW I think you want to sudo vi /etc/passwd and change it there persistently rather than overriding HOME.

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 a pull request may close this issue.

3 participants