Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644272 - sys-fs/zfs add kerberos USE flag
Summary: sys-fs/zfs add kerberos USE flag
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-11 23:50 UTC by REdOG
Modified: 2022-01-10 05:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description REdOG 2018-01-11 23:50:17 UTC
Even though there is no use flag if kerberos libraries are installed then the zfs ebuilds will link to these libraries.

If Kerberos libraries are not installed then the zfs ebuilds don't complain and happily builds without them.

If zfs links to the kerberos libraries then booting a zfs root filesystem will fail when /usr is not included in the same pool since the libraries are installed to /usr/lib64 once the kernel switches root from initramfs the root zfs filesystem is mounted but then it's copy of zfs fails to import /usr because of the missing shared libraries.

This could be avoided by setting USE="-kerberos" when the libraries are needed for the system but are unnecessary for zfs otherwise zfs needs to be built with static-libraries or /usr needs to be moved to /.

Testing was done with sys-fs/zfs-0.7.5

The libraries are present in the initramfs it's not failing until we've mounted tank/GENTOO
Comment 1 Georgy Yakovlev archtester gentoo-dev 2022-01-10 05:18:09 UTC
there's no such knob for zfs and at least modern versions do no link to kerberos libs.

I'll close this one.