Skip to content

handling zroot/var/empty readonly=on #18

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

Open
dch opened this issue Jun 8, 2025 · 0 comments
Open

handling zroot/var/empty readonly=on #18

dch opened this issue Jun 8, 2025 · 0 comments

Comments

@dch
Copy link

dch commented Jun 8, 2025

zfs dataset /var/empty was a valid dataset during 10.x FreeBSD, so we
can expect it to turn up in the wild. This could be handled as follows:

  • if /var/empty/.zfs/snapshot dir exists then:
# zfs snapshot zroot/var/empty@${some_pkgbasify_id}
# zfs set readonly=off zroot/var/empty

.. do pkgbasify magic
.. now clean up

# zfs rollback -f zroot/var/empty@${some_pkgbasify_id}
# zfs set readonly=on zroot/var/empty
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

1 participant