]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
ceph-{ansible,installer}-rpm: use "sg" for mock group 600/head
authorKen Dreyer <kdreyer@redhat.com>
Thu, 15 Dec 2016 19:41:24 +0000 (12:41 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 15 Dec 2016 19:44:26 +0000 (12:44 -0700)
commitd788ec60071ee6c9104d2aeec38dc84d3409a4eb
treee2e2efa6c531dd1a4e062bca7f2766dbb3a463b1
parent9b8e503a5486bd2d535e53d016d72696f29ac643
ceph-{ansible,installer}-rpm: use "sg" for mock group

The previous commit (0d90b3c5fec43fe66fc1e9c3856519f91e4454cf) attempted
to use newgrp to refresh groups, but I did not realize that this just
spawns a new shell (at least in my experiments in a bash interactive
shell), and it is ineffective on our JNLP slaves.

Use the approach we implemented for Docker (in
f9cc49aec026c2ae17b1db2603d262f5cb1c8a00), and run mock through "sg" to
set the group.
ceph-ansible-rpm/build/build
ceph-installer-rpm/build/build