mirror of
https://github.com/coreos/coreos-assembler.git
synced 2026-02-06 03:45:08 +01:00
build.sh: allow group write on /usr/*
Allow group write permissions on /usr/ because in upstream project's CI we want to overwrite software for testing. The directories are typically owned by root:root and CI runs in openshift as a user that is a member of the `root` (GID: 0) group. See https://github.com/coreos/coreos-installer/pull/1716 Also add an exception for /etc/grub.d for OSTree upstream CI.
This commit is contained in:
10
build.sh
10
build.sh
@@ -112,6 +112,16 @@ install_rpms() {
|
||||
ln -s {/usr/share/distribution-gpg-keys/centos,/etc/pki/rpm-gpg}/RPM-GPG-KEY-CentOS-SIG-Virtualization
|
||||
fi
|
||||
|
||||
# Allow group write permissions on /usr/ because in upstream project's
|
||||
# CI we want to overwrite software for testing. The directories
|
||||
# are typically owned by root:root and CI runs in openshift as a user
|
||||
# that is a member of the `root` (GID: 0) group.
|
||||
# See https://github.com/coreos/coreos-installer/pull/1716
|
||||
chmod -R g+w /usr/
|
||||
# And also one exception for /etc/grub.d (ostree upstream tries to
|
||||
# put a symlink in this directory).
|
||||
chmod g+rwx /etc/grub.d
|
||||
|
||||
# Further cleanup
|
||||
yum clean all
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user