Lines Matching refs:ID
6 if grep -q "^ID=buildroot$" "$TARGET_DIR/etc/os-release"; then
12 ID=$(stat --format %u "$SDK_DIR")
13 if [ "$ID" -ne 0 ]; then
14 NAME=$(grep -E "^[^:]*:x:$ID:" /etc/passwd | cut -d':' -f1)
15 echo "Fixing up uid=$ID($NAME) to 0(root)..."
16 find . -user $ID -exec chown -h 0:0 {} \;
21 ID=$(grep "^$u:" etc/passwd | cut -d':' -f3 || true)
22 [ "$ID" ] || continue
23 echo "Fixing up /home/$u for uid=$ID($u)..."
24 chown -h -R $ID:$ID home/$u
28 ID=$(stat --format %u "$RK_OUTDIR")
29 if [ "$(id -u)" -eq 0 -a "$ID" -ne 0 ]; then
31 find "$RK_OUTDIR" -user 0 -exec chown -h $ID:$ID {} \;