* Write a partial ordering of modules to $out/insmod-list (for when we
don't have modprobe in the initrd). svn path=/nixos/trunk/; revision=11079
This commit is contained in:
parent
1e5f26537d
commit
1b89e8a55b
1 changed files with 4 additions and 5 deletions
|
@ -16,22 +16,21 @@ for module in $rootModules; do
|
|||
echo "root module: $module"
|
||||
deps=$(modprobe --config /dev/null --set-version "$version" --show-depends "$module" \
|
||||
| sed 's/^insmod //')
|
||||
for i in $deps; do echo $i; done
|
||||
#for i in $deps; do echo $i; done
|
||||
closure="$closure $deps"
|
||||
done
|
||||
|
||||
# Remove duplicates.
|
||||
closure=$(for i in $closure; do echo $i; done | sort | uniq)
|
||||
|
||||
echo "closure:"
|
||||
ensureDir $out
|
||||
for module in $closure; do
|
||||
echo $module
|
||||
target=$(echo $module | sed "s^$kernel^$out^")
|
||||
if test -e "$target"; then continue; fi
|
||||
echo $module
|
||||
mkdir -p $(dirname $target)
|
||||
cp $module $target
|
||||
grep "^$module" $kernel/lib/modules/$version/modules.dep \
|
||||
| sed "s^$kernel^$out^g" \
|
||||
>> $out/lib/modules/$version/modules.dep
|
||||
echo $target >> $out/insmod-list
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue