summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2012-10-25 20:53:06 (GMT)
committerElan Ruusamäe2012-10-25 20:53:06 (GMT)
commit750858a5f3a0ce4f183b8c1313321755b51dd4e7 (patch)
tree7067d408607d3280b66a5c88c3b42c31b9f4eb12
parent5b4a76cf99a79852ac1224ccb39be675bbf9d7a9 (diff)
downloadcleanbuild-750858a5f3a0ce4f183b8c1313321755b51dd4e7.zip
cleanbuild-750858a5f3a0ce4f183b8c1313321755b51dd4e7.tar.gz
rpm5 is more picky, be sure to have group of src.rpm files present in chroot as well
svn-id: @12599
-rwxr-xr-xcleanbuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/cleanbuild b/cleanbuild
index 559d6fa..30faadc 100755
--- a/cleanbuild
+++ b/cleanbuild
@@ -305,7 +305,8 @@ build_prepare_root()
mount -o bind /$DIR $CHDIR/$DIR
done
- chroot $CHDIR useradd -m $USER -u$(id $USER -u)
+ chroot $CHDIR groupadd $(id $USER -gn) -g$(id $USER -g)
+ chroot $CHDIR useradd -m $USER -u$(id $USER -u) -g $(id $USER -gn)
# replicate files which already belong to $USER
# so they will have correct owner and permissions