Skip to content

Commit

Permalink
Sound is part of BT dependency - keep it if used
Browse files Browse the repository at this point in the history
drtyhlpr#216 (comment)

the whole reduce area could need an update for debian releases
  • Loading branch information
burnbabyburn committed Apr 26, 2020
1 parent b9ded8e commit 3a61ef9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bootstrap.d/99-reduce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*"
Expand Down

0 comments on commit 3a61ef9

Please sign in to comment.