From: Harald Hoyer Date: Fri, 19 Jul 2019 13:48:22 +0000 (+0200) Subject: Merge branch 'optimization' of https://github.com/ryncsn/dracut into ryncsn-optimization X-Git-Tag: 050~212^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86f4dd0273a23adf11a58bd52bc1d9dd98f4e826;p=thirdparty%2Fdracut.git Merge branch 'optimization' of https://github.com/ryncsn/dracut into ryncsn-optimization --- 86f4dd0273a23adf11a58bd52bc1d9dd98f4e826 diff --cc dracut-init.sh index a2dba68f4,2fa104666..c9043d64b --- a/dracut-init.sh +++ b/dracut-init.sh @@@ -150,10 -150,10 +150,14 @@@ dracut_module_included() [[ " $mods_to_load $modules_loaded " == *\ $*\ * ]] } +dracut_no_switch_root() { + >"$initdir/lib/dracut/no-switch-root" +} + + dracut_module_path() { + echo ${dracutbasedir}/modules.d/??${1} | { read a b; echo "$a"; } + } + if ! [[ $DRACUT_INSTALL ]]; then DRACUT_INSTALL=$(find_binary dracut-install) fi