Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cloud): Workaround to avoid permission denied while building #777

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 3 additions & 1 deletion 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 \
langpacks-en
mv /etc/selinux.tmp /etc/selinux