Browse Source

mkinitramfs: Added own plugin script, 50-kernel.sh, adding every block, fs and net kernel driver

0.2-maint
Alejandro Mery 16 years ago
parent
commit
492b818138
1 changed files with 46 additions and 0 deletions
  1. +46
    -0
      initramfs/etc_mkinitramfs.d_50-kernel.sh.txt

+ 46
- 0
initramfs/etc_mkinitramfs.d_50-kernel.sh.txt

@ -0,0 +1,46 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/idunn/initramfs/etc_mkinitramfs.d_50-kernel.sh.txt
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
. $libdir/kernel.in
set -e
# has modules?
if [ -z "$moddir" ]; then
echo "INFO: kernel modules not supported."
exit 0
else
# run as `MKINITRD_MODULES="foo bar ..." mkinitramfs` to customize
#
for x in $MKINITRD_MODULES; do
module_install "$x"
done
if [ -n "$running" ]; then
module_list_running
else
# massive additions
module_list_available | sed -n \
-e 's,/\(block\|fs\|net\)/,\0,p'
fi | while read x; do
module_install "$x"
done
echo
fi
safe_depmod
[ -z "$modules_missing" ] || echo "ERROR: Kernel: Failed to find:$modules_missing"

Loading…
Cancel
Save