diff options
author | Holger Paradies <retabell@gmx.de> | 2024-02-25 20:28:11 +0100 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2024-02-25 20:28:11 +0100 |
commit | f0cfa2a55cf581cef7f34d259818c8a057f2e9f6 (patch) | |
tree | f26503ea45a3b3a3ccc0c81f76efb737eff601ec | |
parent | e70ddda36cbe10b2d1a4698c6e98d277ec0fc759 (diff) | |
download | kanotix-f0cfa2a55cf581cef7f34d259818c8a057f2e9f6.zip kanotix-f0cfa2a55cf581cef7f34d259818c8a057f2e9f6.tar.gz |
Keep yml lists-TODO
fix for plasma-discover
-rwxr-xr-x | config/chroot_local-hooks/xx-04-cleanup | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/config/chroot_local-hooks/xx-04-cleanup b/config/chroot_local-hooks/xx-04-cleanup index 560cced..0045ce4 100755 --- a/config/chroot_local-hooks/xx-04-cleanup +++ b/config/chroot_local-hooks/xx-04-cleanup @@ -5,9 +5,18 @@ apt-get remove --yes --purge nano vim-tiny libdiscover1 resolvconf /usr/sbin/remove-orphans || true # Removing unused files find . -name *~ | xargs rm -f -# Cleaning apt lists +# Cleaning apt lists but keep yml files +# TODO +for x in $(ls /var/lib/apt/lists |grep yml) +do + cp -f /var/lib/apt/lists/$x /tmp/ +done rm -rf /var/lib/apt/lists mkdir -p /var/lib/apt/lists/partial +for x in $(ls /tmp |grep yml) +do + cp -f /tmp/$x /var/lib/apt/lists/ +done # Cleaning apt cache rm -rf /var/cache/apt mkdir -p /var/cache/apt/archives/partial |