99base: don't require fs-lib to detect rootfstype

If fs-lib is not included, no rootfs autodetection is performed.
master
Amadeusz Żołnowski 2012-06-29 13:58:19 +02:00 committed by Harald Hoyer
parent 2ee48b4b4b
commit e42b6f9e15
1 changed files with 3 additions and 1 deletions

View File

@ -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