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

Add docs about 'bastille_zfs_prefix' #739

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

tschettervictor
Copy link
Contributor

Also removed redundant bastille_prefix var inside zfs block. That var is defined at the top of the config file.

@tschettervictor
Copy link
Contributor Author

Just a quick question. Why does bastille mount the zfs datasets to /usr/local/bastille instead of just creating the datasets inside zroot/bastille without mounting them?

@yaazkal
Copy link
Collaborator

yaazkal commented Nov 24, 2024

Thanks for the PR, answering your question: that's a configuration option, you can set bastille_prefix to whatever you want, the default value is /usr/local/bastille. That said, not sure about why that path was defined it the beginning, but sure is not defaulting to be under any zroot since we do also support UFS :)

@yaazkal yaazkal merged commit dac6833 into BastilleBSD:master Nov 24, 2024
@tschettervictor
Copy link
Contributor Author

So that means the actual jails will then be located at /usr/local/bastille/jails/...

On my system there is nothing located under zroot/bastille even though it shows that dataset exists.

root@test:~ # zfs list

zroot/bastille                                 1.80G  27.5G   416K  /usr/local/bastille
zroot/bastille/backups                          384K  27.5G   384K  /usr/local/bastille/backups
zroot/bastille/cache                            400M  27.5G   191M  /usr/local/bastille/cache
zroot/bastille/cache/13.4-RELEASE               209M  27.5G   209M  /usr/local/bastille/cache/13.4-RELEASE
zroot/bastille/jails                           40.0M  27.5G   384K  /usr/local/bastille/jails
zroot/bastille/jails/test                      19.9M  27.5G   400K  /usr/local/bastille/jails/test
zroot/bastille/jails/test/root                 19.5M  27.5G  19.5M  /usr/local/bastille/jails/test/root
zroot/bastille/jails/tst1                      19.7M  27.5G   400K  /usr/local/bastille/jails/tst1
zroot/bastille/jails/tst1/root                 19.3M  27.5G  19.3M  /usr/local/bastille/jails/tst1/root
zroot/bastille/logs                             480K  27.5G   480K  /var/log/bastille
zroot/bastille/releases                        1.37G  27.5G   642M  /usr/local/bastille/releases
zroot/bastille/releases/13.4-RELEASE            764M  27.5G   764M  /usr/local/bastille/releases/13.4-RELEASE
zroot/bastille/templates                        384K  27.5G   384K  /usr/local/bastille/templates

But there is no directory present. I'm assuming that is because of where it is mounted.

root@test:~ # cd /zroot
root@test:/zroot # ls
root@test:/zroot #

@yaazkal
Copy link
Collaborator

yaazkal commented Nov 24, 2024

So that means the actual jails will then be located at /usr/local/bastille/jails/

Yes

I'm assuming that is because of where it is mounted.

Exactly, that's ZFS behavior

@tschettervictor tschettervictor deleted the patch-1 branch November 24, 2024 02:14
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 this pull request may close these issues.

2 participants