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://review.tizen.org/git/?a=commitdiff_plain;h=d624f606827d1e0d5a44ed835f1d94abc1a64721;p=platform%2Fupstream%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 8ccec17..d6da06d 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"