If fs-lib is not included, no rootfs autodetection is performed. --- modules.d/99base/mount-hook.sh | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/modules.d/99base/mount-hook.sh b/modules.d/99base/mount-hook.sh index dcf1415..db07866 100755 --- a/modules.d/99base/mount-hook.sh +++ b/modules.d/99base/mount-hook.sh @@ -4,7 +4,9 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh -type det_fs >/dev/null 2>&1 || . /lib/fs-lib.sh +type det_fs >/dev/null 2>&1 || [ -f /lib/fs-lib.sh ] && . /lib/fs-lib.sh +# If fs-lib is not included use following det_fs replacement. +type det_fs >/dev/null 2>&1 || det_fs() { echo "${2:-auto}"; } mountpoint="$1" ismounted "$mountpoint" && exit 0 -- 1.7.8.6 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html