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
parent
8a4745694b
commit
afbeadb9da
2
dracut
2
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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue