From afbeadb9daa3b1d44c77007f241f24c7e593252b Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Sat, 14 Aug 2010 14:23:25 -0500 Subject: [PATCH] We have $UID, use it instead of $(id -u) No point in spawning a command and parsing its output when the UID is already in the environment. --- dracut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut b/dracut index bfef92c97..a2bc3121f 100755 --- a/dracut +++ b/dracut @@ -288,7 +288,7 @@ unset item # make sure that library links are correct and up to date cp -ar /etc/ld.so.conf* "$initdir"/etc -ldconfig -r "$initdir" || [[ $(id -u) != "0" ]] && dinfo "ldconfig might need uid=0 (root) for chroot()" +ldconfig -r "$initdir" || [[ $UID != "0" ]] && dinfo "ldconfig might need uid=0 (root) for chroot()" [[ $beverbose = yes ]] && (du -c "$initdir" | sort -n) -- 2.47.3