Skip to content

Commit

Permalink
Do not remove kernel modules and firmwares
Browse files Browse the repository at this point in the history
  • Loading branch information
radl97 committed Jul 19, 2023
1 parent 44fe87a commit d65dca5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,16 @@ apt -y remove llvm-13-dev zlib1g-dev libobjc-11-dev libx11-dev dpkg-dev manpages
apt -y remove linux-firmware memtest86+
apt -y remove network-manager-openvpn network-manager-openvpn-gnome openvpn
apt -y remove autoconf autotools-dev
apt -y remove `dpkg-query -Wf '${Package}\n' | grep linux-header`
#apt -y remove `dpkg-query -Wf '${Package}\n' | grep linux-header`

# Remove most extra modules but preserve those for sound
kernelver=$(uname -a | cut -d\ -f 3)
tar jcf /tmp/sound-modules.tar.bz2 -C / \
lib/modules/$kernelver/kernel/sound/{ac97_bus.ko,pci} \
lib/modules/$kernelver/kernel/drivers/gpu/drm/vmwgfx
apt -y remove `dpkg-query -Wf '${Package}\n' | grep linux-modules-extra-`
tar jxf /tmp/sound-modules.tar.bz2 -C /
depmod -a
#kernelver=$(uname -a | cut -d\ -f 3)
#tar jcf /tmp/sound-modules.tar.bz2 -C / \
# lib/modules/$kernelver/kernel/sound/{ac97_bus.ko,pci} \
# lib/modules/$kernelver/kernel/drivers/gpu/drm/vmwgfx
#apt -y remove `dpkg-query -Wf '${Package}\n' | grep linux-modules-extra-`
#tar jxf /tmp/sound-modules.tar.bz2 -C /
#depmod -a

# Create local HTML

Expand Down

0 comments on commit d65dca5

Please sign in to comment.