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

Is there a way to configure the default "shell" directory? #1303

Open
voxik opened this issue Feb 3, 2024 · 2 comments
Open

Is there a way to configure the default "shell" directory? #1303

voxik opened this issue Feb 3, 2024 · 2 comments
Labels
enhancement feature request, rfe

Comments

@voxik
Copy link
Contributor

voxik commented Feb 3, 2024

Using mock shell quite often, I always endup in /builddir, the user home directory. But this is not very useful default (to me). Is there a way to configure different default such as /builddir/build/BUILD/ ? I was trying e.g. `config_opts['environment']['HOME'] = '/builddir/build/BUILD/', but without success

@xsuchy
Copy link
Member

xsuchy commented Feb 4, 2024

No, not possible. And I would rather avoid to have option for this. Because IIRC there is some logic to clean builddir but preserve homedir (to keep certs and files from copyin).

@voxik
Copy link
Contributor Author

voxik commented Feb 4, 2024

It is possible to change homedir via config_opts['chroothome'], but that is not what I am asking. I'd like to automate something like:

$ mock shell

<mock-chroot> sh-5.2$ cd /builddir/build/BUILD/

Actually there is --cwd DIR option, so I'd like to make it persistent

@praiskup praiskup added the enhancement feature request, rfe label Feb 7, 2024
@praiskup praiskup moved this from Needs triage to In 2 years in CPT Kanban Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request, rfe
Projects
None yet
Development

No branches or pull requests

3 participants