Hello, This patch saves 13 seconds of init time for me using baselayout-1.11.13. The patch will not apply cleanly to baselayout-1.12.0_pre2, the modules-update script seems to be rewritten there. Thanks. --- /sbin/modules-update 2005-07-22 17:02:01.000000000 +0900 +++ ./modules-update 2005-07-26 18:46:03.000000000 +0900 @@ -64,6 +64,22 @@ echo "${dep}" } +# Magnus Damm <magnus@valinux.co.jp> 20050724: +# +# the most common case is probably that no regeneration of files is required. +# so let's use the dates of the files to determine if early exit is possible. +# +# this saves 13 seconds of init time on my 667 MHz Sony Vaio C1MR/BP. +# + +# exit if $CFGFILE2 exists and no files in $MODDIR are newer than $CFGFILE2 + +if [ ${KERNEL_2_5} -a -e ${CFGFILE2} -a -z "${CONF}" ]; then + if [ `find ${MODDIR} -type f -newer ${CFGFILE2} | wc -l` -eq 0 ]; then + exit 0; + fi +fi + CFGFILES="${CFGFILE}" if ${KERNEL_2_5}; then Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 64337 [details, diff] the patch Yep, here it is if the inlined patch was mangeled.
*** This bug has been marked as a duplicate of 55329 ***