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 ***" &&
|
||||
sudo apt update &&
|
||||
echo -e "\n*** Auto Remove ***" &&
|
||||
sudo apt autoremove {{ update_accept_var }} &&
|
||||
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||
echo -e "\n*** Clean ***" &&
|
||||
sudo apt clean {{ update_accept_var }} &&
|
||||
echo -e "Cleaned!\n\n*** Configure DPKG ***" &&
|
||||
@@ -124,7 +124,7 @@
|
||||
echo -e "******* Parrot *******\n*** Update Cache ***" &&
|
||||
sudo apt update &&
|
||||
echo -e "\n*** Auto Remove ***" &&
|
||||
sudo apt autoremove {{ update_accept_var }} &&
|
||||
sudo apt autoremove --purge {{ update_accept_var }} &&
|
||||
parrot_mirrors_suck=true &&
|
||||
while [[ $parrot_mirrors_suck ]]; do
|
||||
unset parrot_mirrors_suck
|
||||
|
@@ -8,9 +8,9 @@
|
||||
amdgpu_cron_cmd: "{{ root_home.stdout }}/scm.sh"
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Install Dependencies
|
||||
package:
|
||||
name:
|
||||
- dkms
|
||||
package:
|
||||
name:
|
||||
- dkms
|
||||
- mesa-common-dev
|
||||
- clinfo
|
||||
state: present
|
||||
@@ -62,16 +62,16 @@
|
||||
|
||||
## Step 1/3: Get Correct 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
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Install Specific GA Kernel For Booting
|
||||
package:
|
||||
name:
|
||||
- linux-headers-5.4.0-65
|
||||
- linux-headers-5.4.0-65-generic
|
||||
- linux-headers-generic
|
||||
- linux-image-generic
|
||||
name:
|
||||
- linux-headers-5.4.0-65
|
||||
- linux-headers-5.4.0-65-generic
|
||||
- linux-headers-generic
|
||||
- linux-image-generic
|
||||
- linux-modules-extra-5.4.0-65-generic
|
||||
state: present
|
||||
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"
|
||||
|
||||
- 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"
|
||||
|
||||
# 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
|
||||
lineinfile:
|
||||
path: /etc/default/grub
|
||||
|
Reference in New Issue
Block a user