Add purge to autoremove so that unused config files also get removed.
This commit is contained in:
@@ -109,7 +109,7 @@
|
|||||||
echo -e "******* Apt *******\n*** Update Cache ***" &&
|
echo -e "******* Apt *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
echo -e "\n*** Auto Remove ***" &&
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||||
echo -e "\n*** Clean ***" &&
|
echo -e "\n*** Clean ***" &&
|
||||||
sudo apt clean {{ update_accept_var }} &&
|
sudo apt clean {{ update_accept_var }} &&
|
||||||
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
||||||
sudo apt update &&
|
sudo apt update &&
|
||||||
echo -e "\n*** Auto Remove ***" &&
|
echo -e "\n*** Auto Remove ***" &&
|
||||||
sudo apt autoremove {{ update_accept_var }} &&
|
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||||
parrot_mirrors_suck=true &&
|
parrot_mirrors_suck=true &&
|
||||||
while [[ $parrot_mirrors_suck ]]; do
|
while [[ $parrot_mirrors_suck ]]; do
|
||||||
unset parrot_mirrors_suck
|
unset parrot_mirrors_suck
|
||||||
|
@@ -8,9 +8,9 @@
|
|||||||
amdgpu_cron_cmd: "{{ root_home.stdout }}/scm.sh"
|
amdgpu_cron_cmd: "{{ root_home.stdout }}/scm.sh"
|
||||||
|
|
||||||
- name: Miner | Driver | AMDGPU | Install Dependencies
|
- name: Miner | Driver | AMDGPU | Install Dependencies
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- dkms
|
- dkms
|
||||||
- mesa-common-dev
|
- mesa-common-dev
|
||||||
- clinfo
|
- clinfo
|
||||||
state: present
|
state: present
|
||||||
@@ -62,16 +62,16 @@
|
|||||||
|
|
||||||
## Step 1/3: Get Correct Kernel ##
|
## Step 1/3: Get Correct Kernel ##
|
||||||
- name: Miner | Driver | AMDGPU | Install Recommended GA Kernel
|
- name: Miner | Driver | AMDGPU | Install Recommended GA Kernel
|
||||||
shell: apt install --install-recommends linux-generic
|
shell: apt install --install-recommends linux-generic
|
||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||||
|
|
||||||
- name: Miner | Driver | AMDGPU | Install Specific GA Kernel For Booting
|
- name: Miner | Driver | AMDGPU | Install Specific GA Kernel For Booting
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- linux-headers-5.4.0-65
|
- linux-headers-5.4.0-65
|
||||||
- linux-headers-5.4.0-65-generic
|
- linux-headers-5.4.0-65-generic
|
||||||
- linux-headers-generic
|
- linux-headers-generic
|
||||||
- linux-image-generic
|
- linux-image-generic
|
||||||
- linux-modules-extra-5.4.0-65-generic
|
- linux-modules-extra-5.4.0-65-generic
|
||||||
state: present
|
state: present
|
||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||||
@@ -121,10 +121,10 @@
|
|||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||||
|
|
||||||
- name: Miner | Driver | AMDGPU | Update + Clean System
|
- name: Miner | Driver | AMDGPU | Update + Clean System
|
||||||
shell: "apt update; apt dist-upgrade -y; apt autoremove -y"
|
shell: "apt update; apt dist-upgrade -y; apt autoremove --purge -y"
|
||||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
when: amdgpu_install.failed and hwe_kernel.stdout != "0"
|
||||||
|
|
||||||
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
||||||
- name: Miner | Driver | AMDGPU | Boot Default Kernel
|
- name: Miner | Driver | AMDGPU | Boot Default Kernel
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/default/grub
|
path: /etc/default/grub
|
||||||
|
Reference in New Issue
Block a user