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.
master
Victor Lowther 2010-08-14 14:23:25 -05:00 committed by Harald Hoyer
parent 8a4745694b
commit afbeadb9da
1 changed files with 1 additions and 1 deletions

2
dracut
View File

@ -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)