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

[FHS] Make zfs instal fhs compatible #247

Closed
alexxy opened this issue May 14, 2011 · 8 comments
Closed

[FHS] Make zfs instal fhs compatible #247

alexxy opened this issue May 14, 2011 · 8 comments
Milestone

Comments

@alexxy
Copy link
Contributor

alexxy commented May 14, 2011

zfs and spl packages should be fhs compatible.

@behlendorf
Copy link
Contributor

Exactly which files do you believe are not FHS compliant? Just the zfs, zpool, and libraries. You can can set --prefix=/ to ensure they are installed in the primary hierarchy. By default configure assumes /usr/local/ and most rpms/debs assume /usr. But you can absolutely override this.

./configure --prefix=/
make
make install

@alexxy
Copy link
Contributor Author

alexxy commented May 16, 2011

Yeah. But if you do so you will get /libexec /includes and so on. Also udev helpers should be placed under /lib/udev and many other things are fhs incompatible. They may be acceptable on solaris but not on linux. I can make a patch to fix this.

@dajhorn
Copy link
Contributor

dajhorn commented May 16, 2011

Things installed to /lib/udev should be managed by the packaging system. Installing to /etc/udev is probably the best default for a local install.

I resolved the libexec violation in dajhorn/pkg-zfs@9d8c292 and dajhorn/pkg-zfs@5d633c8 for Debian and Ubuntu. However, per earlier discussion, moving the libexec scripts into a zfs-test package could be an improvement.

@alexxy
Copy link
Contributor Author

alexxy commented May 16, 2011

I mean binaryes that called from udev rules such as zvol_id and friends. They should go to /lib/udev since they are udev helpers

@dajhorn
Copy link
Contributor

dajhorn commented May 16, 2011

Yes, right. I will apply this change to the deb packaging.

@alexxy
Copy link
Contributor Author

alexxy commented May 16, 2011

I think i'll create patch for zfs build system so it will install all things in fhs compatible way

@behlendorf
Copy link
Contributor

If you can propose a patch which identifies all the files which are not FHS compliant that's a good starting point. However, I want to ensure that we don't start hard coding any install paths. This probably means splitting off a zfs-test package. This would allow the core utilities/libraries/helpers to be installed in the primary hierarchy with just a --prefix=/. Everything which belongs in the secondary hierarchy which is largely zfs-test could then be configured with --prefix=/usr.

@behlendorf
Copy link
Contributor

The provided rpm/deb packaging in master has been updated to install the zfs utilities and helpers in fhs compatible locations.

sdimitro pushed a commit to sdimitro/zfs that referenced this issue May 23, 2022
…llocator::Slab:free panic, zoa restarts every 4 min during stress/scale test (openzfs#247)
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

3 participants