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
dracut: depend on eudev #16098
dracut: depend on eudev #16098
Conversation
557a750
to
48b1dfb
Compare
I'd also add these dependencies: |
On 2019-11-07 07:08:13 -0800, Daniel Kolesa wrote:
I'd also add these dependencies: `util-linux e2fsprogs kmod kpartx`
It's make sense to add kmod and util-linux.
But it doesn't make sense to add e2fsprogs because someone may choose
to install their system entirely on different filesystem, let's say
xfs, zfs or btrfs.
I don't have kpartx installed in my box. And dracut works pretty well.
…--
Danh
|
8426b68
to
4f85f03
Compare
|
On 2019-11-07 18:18:58 -0800, Daniel Kolesa wrote:
`kpartx` is required by `90multipath` and `90dmraid` modules and is
a hard dependency in both e.g. debian and the official rpm .spec
file (plus it's rather tiny), `e2fsprogs` is a hard dep in debian
but not in the .spec, it's used by multiple modules but i guess
mostly optionally.
$ cat /usr/lib/dracut/dracut.conf.d/*.conf
#
# Void Linux default settings for dracut.
#
# Don't edit this file, it will be overwritten on next update.
#
add_dracutmodules+=" drm "
stdloglvl=4
add_dracutmodules+=" resume "
omit_dracutmodules+=" systemd "
i18n_vars="/etc/rc.conf:KEYMAP,FONT,FONT_MAP,FONT_UNIMAP"
Our default settings for dracut doesn't include multipath and dmraid.
We haven't shipped multipathd, anyway.
The dracut.spec file also put kpartx in the Recommends for fedora and
rhel (or for anything not fedora and rhel, I'm not familiar with spec
grmmar).
But, I think adding kpartx isn't a big deal, since it's a tiny package.
But, if we're gonna add every binary that dracut is using to depends,
I don't think it's a good idea.
How about adding this patch instead:
```
modules.d/90dmraid/module-setup.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules.d/90dmraid/module-setup.sh b/modules.d/90dmraid/module-setup.sh
index 797a58e5..8038899a 100755
--- a/modules.d/90dmraid/module-setup.sh
+++ b/modules.d/90dmraid/module-setup.sh
@@ -6,6 +6,7 @@ check() {
# if we don't have dmraid installed on the host system, no point
# in trying to support it in the initramfs.
require_binaries dmraid || return 1
+ require_binaries kpartx || return 1
[[ $hostonly ]] || [[ $mount_needs ]] && {
for dev in "${!host_fs_types[@]}"; do
```
…--
Danh
|
- udev is required to find devices and activate corresponding script. - kmod is required at least 3.7 in dracut-init.sh
4f85f03
to
c402e55
Compare
Looks good to merge, but before I do can you explain why you have a version constraint on kmod? |
On November 8, 2019 5:57:08 AM UTC, Michael Aldridge ***@***.***> wrote:
Looks good to merge, but before I do can you explain why you have a
version constraint on kmod?
Well, it's written in the commit mesage
- kmod is required at least 3.7 in dracut-init.sh
…--
Danh
|
We do ship the dracut modules (the default is to include all available modules). The version constraint is also useless since we never shipped an old enough version of kmod in the first place. |
dracut uses udev to find devices and activate corresponding script