Browse Source

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

If fs-lib is not included, no rootfs autodetection is performed.
master
Amadeusz Żołnowski 13 years ago committed by Harald Hoyer
parent
commit
e42b6f9e15
  1. 4
      modules.d/99base/mount-hook.sh

4
modules.d/99base/mount-hook.sh

@ -4,7 +4,9 @@ @@ -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

Loading…
Cancel
Save