From: Harald Hoyer Date: Wed, 24 Jul 2013 11:43:32 +0000 (+0200) Subject: dracut.sh: check for /sbin /bin /lib X-Git-Tag: 031~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d624f606827d1e0d5a44ed835f1d94abc1a64721;p=thirdparty%2Fdracut.git dracut.sh: check for /sbin /bin /lib use readlink to detect, if /usr has to be mounted --- diff --git a/dracut.sh b/dracut.sh index 8ccec177e..d6da06dfb 100755 --- a/dracut.sh +++ b/dracut.sh @@ -863,13 +863,13 @@ if [[ $hostonly ]]; then for mp in \ "/" \ "/etc" \ - "/usr" \ - "/usr/bin" \ - "/usr/sbin" \ - "/usr/lib" \ - "/usr/lib64" \ + "/bin" \ + "/sbin" \ + "/lib" \ + "/lib64" \ "/boot"; do + mp=$(readlink -f "$mp") mountpoint "$mp" >/dev/null 2>&1 || continue _dev="$(readlink -f "/dev/block/$(find_block_device "$mp")")" [[ "$_mp" == "/" ]] && root_dev="$_dev"