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) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2065180 Title: performance regression in dracut-install 060 To manage notifications about this bug go to: https://bugs.launchpad.net/dracut/+bug/2065180/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs