?mode=patch&uid=2006050710255056650
Discarded Patch: 2006050710255056650 (by blindcoder)
- blindcoder please keep around until a new one arrives
+ netrunner
Votecheck 'core-strong': Missing 1 qualified vote(s) (clifford, fake, teha)
package/base/rockinitrd/mkinitrd.sh
Benjamin Schieder: fix initrd creation for kernel version != running kernel fixes flyspray bug #249
this will only work if module dependency data is compatible between the kernel versions, i.e. the module in question is availible in both kernels and it's module dependencies haven't changed...
modinfo
note to self: look into modinfo
modinfo based mkinitrd in [2006051209001920431]
Benjamin Schieder: fix initrd creation for kernel version != running kernel fixes flyspray bug #249 --- package/base/rockinitrd/mkinitrd.sh (revision 7583) +++ package/base/rockinitrd/mkinitrd.sh (working copy) @@ -69,7 +69,7 @@ if [ "${empty}" = 0 ] ; then grep '^modprobe ' ${rootdir}/etc/conf/kernel | grep -v 'no-initrd' | \ sed 's,[ ]#.*,,' | \ - while read a b ; do ${a} ${modprobeopt} -v ${b} 2> /dev/null; done | + while read a b ; do ${a} ${modprobeopt} -v ${b} 2> /dev/null; done | sed -e "s,$( uname -r ),${kernel},g" | while read a b c; do [[ "${b}" = *.ko ]] && b=${b/.ko/}; b="`find ${rootdir}/lib/modules/${kernel} -wholename "${b}.o" -o -wholename "${b}.ko"`" [Download this patch]