From 65fe8ae8a543164abe3fc62443b254dbf1ada0a2 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 7 Feb 2012 17:11:58 +0100 Subject: [PATCH] dracut: construct PATH with resolved symlinks --- dracut | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dracut b/dracut index f74432e5..4b1859a4 100755 --- a/dracut +++ b/dracut @@ -279,7 +279,13 @@ if ! [[ $kernel ]]; then fi [[ $outfile ]] || outfile="/boot/initramfs-$kernel.img" -PATH=/sbin:/bin:/usr/sbin:/usr/bin +for i in /usr/bin /bin /usr/sbin /sbin; do + rl=$i + if [ -L "$i" ]; then + rl=$(readlink -f $i) + fi + PATH="$PATH:$rl" +done export PATH unset LD_LIBRARY_PATH unset GREP_OPTIONS