summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 0b0beeb..b37c6ec 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -34,6 +34,10 @@ QUIET="y"
SHOW_AUTOMODS="n"
COMPRESSION="gzip"
+if [ ! $UID ]; then
+ UID=$(id -u)
+fi
+
# Add /{,usr}/sbin to path
# works around undetected problems like in #8448
PATH="${PATH}:/sbin:/usr/sbin"