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 missing zfs-dracut RPM dependencies #7747
Conversation
rpm/generic/zfs.spec.in
Outdated
| @@ -214,6 +214,8 @@ Summary: Dracut module | |||
| Group: System Environment/Kernel | |||
| Requires: %{name}%{?_isa} = %{version}-%{release} | |||
| Requires: dracut | |||
| Requires: gawk | |||
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.
Can we do just awk here to accommodate BusyBox awk? Or do we use GNU extensions?
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.
Initially I tried using awk but ran in to problems since the CentOS/Fedora repositories don't include a package by that name, or an alias. So I was forced to switch to gawk. Although any of the other awk variants should work fine. If someone knows a better generic way to specific this I'm all for it. Maybe Requires: /usr/bin/awk?
|
On July 27, 2018 7:03:29 PM GMT+02:00, Brian Behlendorf ***@***.***> wrote:
### Motivation and Context
Issue #7729. It's possible for a system to not have `awk` installed
which
is required by the zfs-dracut package.
### Description
The zfs-dracut package requires the hostid, basename, head, awk,
and grep utilities be installed. The first three are provided by
coreutils but additional dependencies are required for awk and grep.
### How Has This Been Tested?
Locally built and verified additional dependencies are added.
@Rudd-O can you review this, only the rpm dependencies needed to be
added. The dracut install script is already doing the right thing.
https://github.com/zfsonlinux/zfs/blob/master/contrib/dracut/90zfs/module-setup.sh.in#L60
### Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Performance enhancement (non-breaking change which improves
efficiency)
- [ ] Code cleanup (non-breaking change which makes code smaller or
more readable)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation (a change to man pages or other documentation)
### Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [x] My code follows the ZFS on Linux [code style
requirements](https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#coding-conventions).
- [ ] I have updated the documentation accordingly.
- [x] I have read the [**contributing**
document](https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md).
- [ ] I have added
[tests](https://github.com/zfsonlinux/zfs/tree/master/tests) to cover
my changes.
- [ ] All new and existing tests passed.
- [x] All commit messages are properly formatted and contain
[`Signed-off-by`](https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#signed-off-by).
- [ ] Change has been approved by a ZFS on Linux member.
You can view, comment on, or merge this pull request online at:
#7747
-- Commit Summary --
* Add missing zfs-dracut RPM dependencies
-- File Changes --
M rpm/generic/zfs.spec.in (4)
-- Patch Links --
https://github.com/zfsonlinux/zfs/pull/7747.patch
https://github.com/zfsonlinux/zfs/pull/7747.diff
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#7747
Approved.
|
Codecov Report
@@ Coverage Diff @@
## master #7747 +/- ##
==========================================
- Coverage 78.39% 78.18% -0.22%
==========================================
Files 368 368
Lines 111981 111981
==========================================
- Hits 87786 87549 -237
- Misses 24195 24432 +237
Continue to review full report at Codecov.
|
|
On July 27, 2018 7:03:29 PM GMT+02:00, Brian Behlendorf ***@***.***> wrote:
### Motivation and Context
Issue #7729. It's possible for a system to not have `awk` installed
which
is required by the zfs-dracut package.
### Description
The zfs-dracut package requires the hostid, basename, head, awk,
and grep utilities be installed. The first three are provided by
coreutils but additional dependencies are required for awk and grep.
### How Has This Been Tested?
Locally built and verified additional dependencies are added.
@Rudd-O can you review this, only the rpm dependencies needed to be
added. The dracut install script is already doing the right thing.
https://github.com/zfsonlinux/zfs/blob/master/contrib/dracut/90zfs/module-setup.sh.in#L60
### Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Performance enhancement (non-breaking change which improves
efficiency)
- [ ] Code cleanup (non-breaking change which makes code smaller or
more readable)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation (a change to man pages or other documentation)
### Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [x] My code follows the ZFS on Linux [code style
requirements](https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#coding-conventions).
- [ ] I have updated the documentation accordingly.
- [x] I have read the [**contributing**
document](https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md).
- [ ] I have added
[tests](https://github.com/zfsonlinux/zfs/tree/master/tests) to cover
my changes.
- [ ] All new and existing tests passed.
- [x] All commit messages are properly formatted and contain
[`Signed-off-by`](https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#signed-off-by).
- [ ] Change has been approved by a ZFS on Linux member.
You can view, comment on, or merge this pull request online at:
#7747
-- Commit Summary --
* Add missing zfs-dracut RPM dependencies
-- File Changes --
M rpm/generic/zfs.spec.in (4)
-- Patch Links --
https://github.com/zfsonlinux/zfs/pull/7747.patch
https://github.com/zfsonlinux/zfs/pull/7747.diff
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#7747
Note dracut installs /usr/bin/awk and uses the awk command by that name. If we require gawk, perhaps we want to change that. Else I think we can require /usr/bin/awk. Either way I plan to push this to a branch in my build server to test it with the Fedora ZFS installer automation, but do let me know when the final code is ready to Tess.
|
The zfs-dracut package requires the hostid, basename, head, awk, and grep utilities be installed. The first three are provided by coreutils but additional dependencies are required for awk and grep. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
|
I've refreshed the patch to use |
The zfs-dracut package requires the hostid, basename, head, awk, and grep utilities be installed. The first three are provided by coreutils but additional dependencies are required for awk and grep. Reviewed-by: Manuel Amador (Rudd-O) <rudd-o@rudd-o.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#7729 Closes openzfs#7747
The zfs-dracut package requires the hostid, basename, head, awk, and grep utilities be installed. The first three are provided by coreutils but additional dependencies are required for awk and grep. Reviewed-by: Manuel Amador (Rudd-O) <rudd-o@rudd-o.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#7729 Closes openzfs#7747
The zfs-dracut package requires the hostid, basename, head, awk, and grep utilities be installed. The first three are provided by coreutils but additional dependencies are required for awk and grep. Reviewed-by: Manuel Amador (Rudd-O) <rudd-o@rudd-o.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#7729 Closes openzfs#7747
Motivation and Context
Issue #7729. It's possible for a system to not have
awkinstalled whichis required by the zfs-dracut package.
Description
The zfs-dracut package requires the hostid, basename, head, awk,
and grep utilities be installed. The first three are provided by
coreutils but additional dependencies are required for awk and grep.
How Has This Been Tested?
Locally built and verified additional dependencies are added.
@Rudd-O can you review this, only the rpm dependencies needed to be added. The dracut install script is already doing the right thing.
https://github.com/zfsonlinux/zfs/blob/master/contrib/dracut/90zfs/module-setup.sh.in#L60
Types of changes
Checklist:
Signed-off-by.