I'm not a bash expert by any means, but something like this would appear to work? ``` function manual_add_modules() { ... normal stuff goes here ... if [ $IN_USER_CONFIG -gt 0 ]; then apply_add_modules fi } ...
in mkinitramfs:
... IN_USER_CONFIG=0
...
apply_add_modules run_scripts_optional /usr/share/initramfs-tools/hooks apply_add_modules IN_USER_CONFIG=1 run_scripts_optional "${CONFDIR}"/hooks... ... ```
(I am also reviewing the existing upload)
I'm not a bash expert by any means, but something like this would appear to work? add_modules( ) { add_modules
```
function manual_
... normal stuff goes here ...
if [ $IN_USER_CONFIG -gt 0 ]; then
apply_
fi
}
...
in mkinitramfs:
...
IN_USER_CONFIG=0
...
apply_add_modules optional /usr/share/ initramfs- tools/hooks optional "${CONFDIR} "/hooks. ..
run_scripts_
apply_add_modules
IN_USER_CONFIG=1
run_scripts_
...
```
(I am also reviewing the existing upload)