On Fri, 2015-09-18 at 12:51 +0300, Ivan Shapovalov wrote: > On 2015-09-17 at 23:51 +0200, Ben Hutchings wrote: [...] > > The proper way to put extra dependencies in modules is: > > > > /* Soft module dependencies. See man modprobe.d for details. > > * Example: MODULE_SOFTDEP("pre: module-foo module-bar post: module > > -baz") > > */ > > #define MODULE_SOFTDEP(_softdep) MODULE_INFO(softdep, _softdep) > > > > However initramfs-tools still needs to be fixed to follow these > > dependencies. > > > > Ben. > > > > Hi Ben, > > yeah, I've considered softdeps, but at least in arch linux the > mkinitcpio tool doesn't look at softdeps at all. > > So, there is no way to append something to the "depends" field in the > module info (i. e. "hard" dependencies). Correct? Right, the hard dependencies are calculated by depmod based on symbol usage. Ben. -- Ben Hutchings [W]e found...that it wasn't as easy to get programs right as we had thought. ... I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs. - Maurice Wilkes, 1949
Attachment:
signature.asc
Description: This is a digitally signed message part