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
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}"
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!
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.