Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96357 - Please add an option to specify modules_load location in /etc/genkernel.conf
Summary: Please add an option to specify modules_load location in /etc/genkernel.conf
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 03:31 UTC by Alon Bar-Lev (RETIRED)
Modified: 2005-06-23 05:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-17 03:31:45 UTC
The configuration folder located in /usr/share/genkernel/%%ARCH%% contain
several file that may be customized by the system programmer.
Updates to these files are lost during genkernel update, some of these files can
 be redirected to a different locations - that's good.

Currently config.sh, modules_load cannot be specified to another location they
are hard coded in the genkernel scripts:

gen_arch.sh:    ARCH_CONFIG="${GK_SHARE}/${ARCH}/config.sh"
genkernel:source ${GK_SHARE}/${ARCH}/modules_load || gen_die "Could not read
${GK_SHARE}/${ARCH}/modules_load"


Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
I think the best result can be obtain by specifing the location of configuration
files in genkernel.conf

Something like:
GK_CONF="${GK_SHARE}/%%ARCH%%"

So it can be changed to local place.

Then fix:
gen_arch.sh:    ARCH_CONFIG="${GK_CONF}/config.sh"
genkernel:source ${GK_CONF}/modules_load || gen_die "Could not read
${GK_SHARE}/${ARCH}/modules_load"


I've also checked 3.2.0_pre5
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-06-21 11:18:31 UTC
Please grab 3.2.0_pre9 and then try the following patch, setting
AMODULES_SATA="..." in genkernel.conf, for example.

--- genkernel   21 Jun 2005 17:09:40 -0000      1.63
+++ genkernel   21 Jun 2005 18:14:40 -0000
@@ -65,6 +65,14 @@
 source ${ARCH_CONFIG} || gen_die "Could not read ${ARCH_CONFIG}"
 source ${GK_SHARE}/${ARCH}/modules_load || gen_die "Could not read
${GK_SHARE}/${ARCH}/modules_load"

+# Merge modules_load from config
+for group_modules in ${!AMODULES_*}; do
+       group="$(echo $group_modules | cut -d_ -f2)"
+       eval cmodules="\$$group_modules"
+       eval MODULES_${group}=\"\${MODULES_${group}} ${cmodules}\"
+       print_info 1 "<config> Merged AMODULES_${group}:'${cmodules}' into
MODULES_${group}"
+done
+
 [ ! -f "${TEMP}" ] && mkdir -p "${TEMP}"
 [ ! -f "${CACHE_DIR}" ] && mkdir -p "${CACHE_DIR}"
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-21 12:59:38 UTC
Thanks!

It is better...

But what happens if I don't wish to use the default modules?
I need to unset all MODULES_XXX in modules_load (By AMODULES_XXX= in
/etc/genkernel.conf)
If you add one as default... I need to be alerted and remove it too...

Please consider how all genkernel configuration can be rerouted into a different
location so that a complete environment can be set.

Thanks!
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2005-06-23 05:44:18 UTC
Since version 3.2.0 uses initramfs and the memory is released if files are
removed, there is no problem in adding some other modules.
I am closing this request.