Skip to content

Commit

Permalink
fix(cloud): Workaround to avoid permission denied while building
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Bernardin <[email protected]>
  • Loading branch information
pastequo committed Sep 5, 2024
1 parent 07a62ba commit e12f510
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions training/cloud/aws/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

set -o errexit

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
cloud-init \
langpacks-en \
tuned
mv /etc/selinux.tmp /etc/selinux

# Chrony configuration
sed -i \
Expand Down
2 changes: 2 additions & 0 deletions training/cloud/azure/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -o errexit

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
cloud-init \
hyperv-daemons \
Expand All @@ -12,6 +13,7 @@ dnf install -y --nobest \
rng-tools \
uuid \
WALinuxAgent
mv /etc/selinux.tmp /etc/selinux

# sshd configuration
cat << EOF >> /etc/ssh/sshd_config
Expand Down
2 changes: 2 additions & 0 deletions training/cloud/gcp/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
acpid \
cloud-init \
Expand All @@ -26,6 +27,7 @@ dnf install -y --nobest \
tuned \
tuned \
vim
mv /etc/selinux.tmp /etc/selinux

# rpm-state is needed to remove microcode_ctl
mkdir /var/lib/rpm-state
Expand Down
2 changes: 2 additions & 0 deletions training/cloud/ibm/cloud-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -o errexit

mv /etc/selinux /etc/selinux.tmp
dnf install -y --nobest \
cloud-init \
langpacks-en \
mv /etc/selinux.tmp /etc/selinux

0 comments on commit e12f510

Please sign in to comment.