From 3a61ef98dff99df4ee48286476294018a9dd210f 2020-04-26 14:56:51 From: 0 Date: 2020-04-26 14:56:51 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 --- 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/*"