From 842c77688b3798b843b78d454459c44d067eba53 Mon Sep 17 00:00:00 2001 From: 0 Date: Wed, 15 Apr 2020 17:07:35 +0200 Subject: [PATCH] Sound is part of BT dependency - keep it if used https://github.com/drtyhlpr/rpi23-gen-image/issues/216#issue-576155174 the whole reduce area could need an update for debian releases --- bootstrap.d/99-reduce.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bootstrap.d/99-reduce.sh b/bootstrap.d/99-reduce.sh index 3b7fc57..6feaf0f 100644 --- a/bootstrap.d/99-reduce.sh +++ b/bootstrap.d/99-reduce.sh @@ -75,7 +75,11 @@ if [ "$ENABLE_REDUCE" = true ] ; then # Remove sound utils and libraries if [ "$ENABLE_SOUND" = false ] ; then - chroot_exec apt-get -qq -y purge alsa-utils libsamplerate0 libasound2 libasound2-data + if [ "$ENABLE_BLUETOOTH" = false ] ; then + chroot_exec apt-get -qq -y purge alsa-utils libsamplerate0 libasound2 libasound2-data + else + chroot_exec apt-get -qq -y purge alsa-utils libsamplerate0 + fi fi # Remove GPU kernels @@ -91,6 +95,9 @@ if [ "$ENABLE_REDUCE" = true ] ; then rm -f "${R}/boot/vmlinuz-*" rm -f "${R}/boot/initrd.img-*" fi + + #Reduce BOOT + #Only necessary files for my gen pi # Clean APT list of repositories rm -fr "${R}/var/lib/apt/lists/*"