Comment 29 for bug 2065180

Revision history for this message
Benjamin Drung (bdrung) wrote :

`manual_add_modules` is exposed to user-configuration. We run `apply_add_modules` after the hooks has been run (CONFDIR is the user configuration directory):

```
run_scripts_optional "${CONFDIR}"/hooks

# cache boot run order
for b in $(cd "${DESTDIR}/scripts" && find . -mindepth 1 -type d); do
 cache_run_scripts "${DESTDIR}" "/scripts/${b#./}"
done

apply_add_modules
```

The possible break appears when the user calls `manual_add_modules` and expects the modules to be present in $DESTDIR afterwards, but the modules will only be copied after apply_add_modules is called.