Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 303229 Details for
Bug 405827
sys-kernel/dracut should depend on sys-apps/module-init-tools instead of virtual/modutils
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use modinfo instead of modprobe to gather info about modules
dracut-016-modinfo.patch (text/plain), 1.62 KB, created by
Dennis Schridde
on 2012-02-25 22:17:59 UTC
(
hide
)
Description:
Use modinfo instead of modprobe to gather info about modules
Filename:
MIME Type:
Creator:
Dennis Schridde
Created:
2012-02-25 22:17:59 UTC
Size:
1.62 KB
patch
obsolete
>--- /usr/lib/dracut/dracut-functions.orig 2012-02-25 20:28:31.378736079 +0100 >+++ /usr/lib/dracut/dracut-functions 2012-02-25 21:53:55.278987278 +0100 >@@ -964,6 +964,28 @@ > return 0 > } > >+get_kmod_filename_with_deps_recursive() { >+ local _kmod=$1 _field _value _modpath _dep _deps >+ shift 1 >+ modinfo "$@" $_kmod 2>&${_fderr} | ( >+ while read _field _value ; do >+ case $_field in >+ filename:) >+ _modpath=$_value >+ ;; >+ depends:) >+ _deps=${_value//,/ } >+ for _dep in $_deps ; do >+ get_kmod_filename_with_deps_recursive $_dep "$@" >+ done >+ ;; >+ esac >+ done >+ echo $_modpath >+ [[ $_modpath ]] || exit 1 >+ ) >+} >+ > # Do something with all the dependencies of a kernel module. > # Note that kernel modules depend on themselves using the technique we use > # $1 = function to call for each dependency we find >@@ -972,17 +994,13 @@ > # rest of args = arguments to modprobe > # _fderr specifies FD passed from surrounding scope > for_each_kmod_dep() { >- local _func=$1 _kmod=$2 _cmd _modpath _options _found=0 >+ local _func=$1 _kmod=$2 _modpath _found=0 > shift 2 >- modprobe "$@" --ignore-install --show-depends $_kmod 2>&${_fderr} | ( >- while read _cmd _modpath _options; do >- [[ $_cmd = insmod ]] || continue >- $_func ${_modpath} || exit $? >- _found=1 >- done >- [[ $_found -eq 0 ]] && exit 1 >- exit 0 >- ) >+ for _modpath in `get_kmod_filename_with_deps_recursive ${_kmod} "$@"` ; do >+ $_func ${_modpath} >+ _found=1 >+ done >+ [[ $_found -ne 0 ]] > } > > # filter kernel modules to install certain modules that meet specific
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 405827
: 303229 |
303231