1
0
mirror of https://github.com/coreos/coreos-assembler.git synced 2026-02-06 03:45:08 +01:00

build.sh: make perm change on grub.d dir conditional

s390x doesn't have grub so this fails when building there.
This commit is contained in:
Dusty Mabe
2026-01-16 12:01:52 -05:00
parent 17b3f52042
commit d34ab4a471

View File

@@ -118,9 +118,9 @@ install_rpms() {
# 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
# And also one exception for /etc/grub.d (on arches that support
# grub) since ostree upstream tries to put a symlink in this directory.
[ -d /etc/grub.d ] && chmod g+rwx /etc/grub.d
# Further cleanup
yum clean all