Idunn is an small system aiming to give an early rescue/install environment with ssh support, making life easier when one doesn't have physical access to machine.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

#!/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 - 2014 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,/\(ide\|ieee1394\|cdrom\|scsi\|ata\|md\|block\|fs\|hid\|keyboard\|net\)/,\0,p' |
grep -v '/\(netfilter\|ipvs\|wireless\|bluetooth\|nls\)/'
# HCI
echo {e,o,u}hci-hcd
echo ehci-pci
echo usb-storage
echo mptsas
echo nls_iso8859-1 nls_utf8 nls_cp437
fi | tr ' ' '\n' | while read x; do
module_install "$x"
done
echo
fi
safe_depmod
[ -z "$modules_missing" ] || echo "ERROR: Kernel: Failed to find:$modules_missing"