-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix zfs-functions packaging bug #9959
Conversation
full configure line
the other patch from PR #9955 does not apply cleanly, I'll rebase and test it now. |
nvm comment above, I just had to delete those files before build to get proper files generated. |
This fixes a bug where the generated zfs-functions was being included along with original zfs-functions.in in the make dist tarball. This caused an unfortunate series of events during build/packaging that resulted in the RPM-installed /etc/zfs/zfs-functions listing the paths as: ZFS="/usr/local/sbin/zfs" ZED="/usr/local/sbin/zed" ZPOOL="/usr/local/sbin/zpool" When they should have been: ZFS="/sbin/zfs" ZED="/sbin/zed" ZPOOL="/sbin/zpool" This affects init.d (non-systemd) distros like CentOS 6. Fixes: openzfs#9443 Signed-off-by: Tony Hutter <hutter2@llnl.gov>
00478e1
to
2cc089a
Compare
$(top_srcdir)/contrib/initramfs/conf.d/zfs \ | ||
$(top_srcdir)/contrib/initramfs/conf-hooks.d/zfs \ | ||
$(top_srcdir)/contrib/initramfs/README.initramfs.markdown | ||
|
||
$(top_srcdir)/etc/init.d/zfs $(top_srcdir)/etc/init.d/zfs-functions: | ||
$(MAKE) -C $(top_srcdir)/etc/init.d zfs zfs-functions | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably remove one of these blank lines.
I rebased #9955 on this change, with the changes from my review comments addressed. If you are happy with those changes, we have a few options:
I'm guessing we would go with option 3. |
Codecov Report
@@ Coverage Diff @@
## master #9959 +/- ##
==========================================
+ Coverage 79.23% 79.32% +0.09%
==========================================
Files 385 385
Lines 121938 121938
==========================================
+ Hits 96612 96723 +111
+ Misses 25326 25215 -111
Continue to review full report at Codecov.
|
Closing in favor of #9955 |
Motivation and Context
Fixes: #9443
Description
This fixes a bug where the generated
zfs-functions
was being included along with originalzfs-functions.in
in the make dist tarball. This caused an unfortunate series of events during build/packaging that resulted in the RPM-installed/etc/zfs/zfs-functions
listing the paths as:When they should have been:
This affects init.d (non-systemd) distros like CentOS 6.
How Has This Been Tested?
Manually tested on Centos 6 against the
zfs-0.8-release
branch, sincemaster
no longer supports Centos 6. Verified that /etc/zfs/zfs-functions in the zfs rpm had the right paths.Types of changes
Checklist:
Signed-off-by
.