Lines 92-97
Link Here
|
92 |
} |
92 |
} |
93 |
|
93 |
|
94 |
create_initrd_modules() { |
94 |
create_initrd_modules() { |
|
|
95 |
local group |
96 |
local group_modules |
97 |
|
95 |
if [ "${PAT}" -gt "4" ] |
98 |
if [ "${PAT}" -gt "4" ] |
96 |
then |
99 |
then |
97 |
MOD_EXT=".ko" |
100 |
MOD_EXT=".ko" |
Lines 115-125
Link Here
|
115 |
cp -ax --parents /lib/modules/${KV}/modules* ${TEMP}/initrd-temp |
118 |
cp -ax --parents /lib/modules/${KV}/modules* ${TEMP}/initrd-temp |
116 |
|
119 |
|
117 |
mkdir -p "${TEMP}/initrd-temp/etc/modules" |
120 |
mkdir -p "${TEMP}/initrd-temp/etc/modules" |
118 |
print_list ${SCSI_MODULES} > "${TEMP}/initrd-temp/etc/modules/scsi" |
121 |
|
119 |
print_list ${FIREWIRE_MODULES} > "${TEMP}/initrd-temp/etc/modules/firewire" |
122 |
for group_modules in ${!MODULES_*}; do |
120 |
print_list ${ATARAID_MODULES} > "${TEMP}/initrd-temp/etc/modules/ataraid" |
123 |
group="$(echo $group_modules | cut -d_ -f2 | tr "[:upper:]" "[:lower:]")" |
121 |
print_list ${PCMCIA_MODULES} > "${TEMP}/initrd-temp/etc/modules/pcmcia" |
124 |
print_list ${!group_modules} > "${TEMP}/initrd-temp/etc/modules/${group}" |
122 |
print_list ${USB_MODULES} > "${TEMP}/initrd-temp/etc/modules/usb" |
125 |
done |
123 |
} |
126 |
} |
124 |
|
127 |
|
125 |
create_initrd_aux() { |
128 |
create_initrd_aux() { |
Lines 143-148
Link Here
|
143 |
else |
146 |
else |
144 |
cp "${GK_SHARE}/generic/initrd.defaults" "${TEMP}/initrd-temp/etc/initrd.defaults" |
147 |
cp "${GK_SHARE}/generic/initrd.defaults" "${TEMP}/initrd-temp/etc/initrd.defaults" |
145 |
fi |
148 |
fi |
|
|
149 |
|
150 |
echo -n "HWOPTS=\"" >> "${TEMP}/initrd-temp/etc/initrd.defaults" |
151 |
for group_modules in ${!MODULES_*}; do |
152 |
group="$(echo $group_modules | cut -d_ -f2 | tr "[:upper:]" "[:lower:]")" |
153 |
echo -n "${group} " >> "${TEMP}/initrd-temp/etc/initrd.defaults" |
154 |
done |
155 |
echo "\"" >> "${TEMP}/initrd-temp/etc/initrd.defaults" |
156 |
|
146 |
if [ -f "${GK_SHARE}/${ARCH}/modprobe" ] |
157 |
if [ -f "${GK_SHARE}/${ARCH}/modprobe" ] |
147 |
then |
158 |
then |
148 |
cp "${GK_SHARE}/${ARCH}/modprobe" "${TEMP}/initrd-temp/sbin/modprobe" |
159 |
cp "${GK_SHARE}/${ARCH}/modprobe" "${TEMP}/initrd-temp/sbin/modprobe" |