]> git.ipfire.org Git - thirdparty/dracut.git/commit - dracut-functions.sh
Speed up loading block drivers when running with --hostonly
authorVictor Lowther <victor.lowther@gmail.com>
Thu, 20 Aug 2009 03:20:12 +0000 (22:20 -0500)
committerVictor Lowther <victor.lowther@gmail.com>
Thu, 20 Aug 2009 03:21:29 +0000 (22:21 -0500)
commitf76ef3aa3dd61cae9ea434bcec5eca006b1ab472
tree3e65a9a9f36808669d43a43ef869e76aef0afc64
parent59c88f499f404429ea331252bd6ad8c9d537f7d3
Speed up loading block drivers when running with --hostonly

Instead of grovelling through all the modules available for the
kernel looking for block devices, only look at the modules that are
actually loaded. This speeds things up by a rather large amount
when generating the initramfs with --hostonly.

While we are at it, only load the filesystem module that will actually
be used for the root filesystem when running in --hostonly instead
of all the filesystem modules that happen to be loaded at the time.
dracut-functions
modules.d/90kernel-modules/installkernel