From: Amadeusz Żołnowski Date: Fri, 29 Jun 2012 11:58:19 +0000 (+0200) Subject: 99base: don't require fs-lib to detect rootfstype X-Git-Tag: 021~102 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e42b6f9e1504290f54be0074eb51a025c812e84f;p=thirdparty%2Fdracut.git 99base: don't require fs-lib to detect rootfstype If fs-lib is not included, no rootfs autodetection is performed. --- diff --git a/modules.d/99base/mount-hook.sh b/modules.d/99base/mount-hook.sh index dcf14153c..db0786683 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