Skip to content

Commit

Permalink
delete amd keys after downloading packages
Browse files Browse the repository at this point in the history
  • Loading branch information
r2k1 committed Feb 23, 2025
1 parent 295f2d6 commit c217da7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 3 additions & 6 deletions parts/linux/cloud-init/artifacts/cse_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -857,14 +857,14 @@ ensureAMDGPUDrivers() {
ensureAMDGPUDriversUbuntu() {
echo "Installing AMD GPU drivers"

# delete amdgpu module from blacklist
sudo sed -i '/blacklist amdgpu/d' /etc/modprobe.d/blacklist-radeon-instinct.conf

pushd /var/cache/amdgpu-apt
ls -l
sudo dpkg -i *.deb
popd

# delete amdgpu module from blacklist
sudo sed -i '/blacklist amdgpu/d' /etc/modprobe.d/blacklist-radeon-instinct.conf

REBOOTREQUIRED=true
echo "AMD GPU drivers installed"
}
Expand All @@ -878,9 +878,6 @@ cleanAMDGPUDriver() {
}

cleanAMDGPUDriverUbuntu() {
# delete amd from a list of recognized vendors
sudo rm /etc/apt/keyrings/rocm.gpg
sudo rm /etc/apt/sources.list.d/amdgpu.list
# delete cached amd gpu packages to save disk space
sudo rm -rf /var/cache/amdgpu-apt/*
}
Expand Down
3 changes: 3 additions & 0 deletions vhdbuilder/packer/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,9 @@ downloadAMDGPUDriversUbuntu() {
# Otherwise installation of some packages like "m4" is skipped because it is already installed
# "m4" seems to be deleted at the later stage, making the installation fail
sudo apt-get install -o Dir::Cache::Archives="/var/cache/amdgpu-apt" --download-only --reinstall -y m4 amdgpu-dkms autoconf automake autotools-dev amdgpu-dkms-firmware
# delete amd from a list of recognized vendors
sudo rm /etc/apt/keyrings/rocm.gpg
sudo rm /etc/apt/sources.list.d/amdgpu.list
}

downloadAMDGPUDrivers() {
Expand Down

0 comments on commit c217da7

Please sign in to comment.