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
mock shell
should change directory to %{_builddir}
#693
Comments
I'm not sure why login shell isn't used, I have to check later. IMO we should switch to $HOME automatically, but this doesn't happen. I don't think it is wise to go anywhere else than |
Maybe have a different shell command or option(s) to do this:
Or
|
Sorry for confusion, this actually happens. But that is not useful either.
You are right, that it would be non-standard, but probably more convenient. There is basically nothing useful what can one do in
The
That starts to be more complicated then the explicit |
What would be useful is if
Then at least you can just select that with the mouse and paste it into the shell (either mock shell or the host shell). That would be easier than remembering/rediscovering the right paths each time. A new mock command like |
mock shell
should change directory to %{_builddir}
mock shell
should change directory to %{_builddir}
Additionally change to `chroothome` when --shell. Relates: rpm-software-management#693
I created #732 which allows you to use I am not sure about that The other option is to define (yet) another config option, which will allow customization. Comments? |
While |
Additionally change to `chroothome` when --shell. Relates: #693
Currently, whenever I do
mock shell --unpriv
, I endup in root directory and this is typically followed bytcd /builddir/build/BUILD/builddir_of_the_package
. Would you consider to do this step automatically? I don't think that being in the root directory is good default.The text was updated successfully, but these errors were encountered: