summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-05-14 18:36:50 +0000
committerintrigeri <intrigeri@boum.org>2016-05-14 19:23:16 +0000
commit14993289783223993e5a1622204f29aab6dffa9e (patch)
treeffb00a2913b749dfb3e47c1672d441cd7a464fe2 /config
parenta9b47862e7e70736208efd3ef174c77f10f2e69b (diff)
Drop module-assistant hook and its cleanup.
We've not been using it since 2010. When building using tagged APT snapshots, module-assistant is found is no configured APT repository, and apt-get fails hard when we try to remove a package it doesn't know about.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/51-module-assistant40
-rwxr-xr-xconfig/chroot_local-hooks/98-remove_unwanted_packages1
2 files changed, 0 insertions, 41 deletions
diff --git a/config/chroot_local-hooks/51-module-assistant b/config/chroot_local-hooks/51-module-assistant
deleted file mode 100755
index 8967a0f..0000000
--- a/config/chroot_local-hooks/51-module-assistant
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/sh
-
-set -e
-
-# Install modules managed by module-assistant
-
-echo "Installing modules managed by module-assistant"
-MODULES=""
-MA="module-assistant --text-mode --non-inter"
-
-ma_install_tools ()
-{
- apt-get install --yes build-essential module-assistant debhelper
- $MA update
-}
-
-ma_install_modules ()
-{
- for MODULE in $@ ; do
- for KERNEL in /boot/vmlinuz-* ; do
- VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
- echo "module-assistant: installing module ${MODULE} for kernel ${VERSION}"
- $MA --quiet auto-install ${MODULE} -l ${VERSION}
- done
- $MA clean ${MODULE}
- apt-get --yes purge ${MODULE}
- done
-}
-
-ma_cleanup ()
-{
- rm -f /usr/src/*.deb
-}
-
-if [ -n "${MODULES}" ] ; then
- ma_install_tools
- ma_install_modules ${MODULES}
- ma_cleanup
-fi
-
diff --git a/config/chroot_local-hooks/98-remove_unwanted_packages b/config/chroot_local-hooks/98-remove_unwanted_packages
index 75ab1e5..db48f49 100755
--- a/config/chroot_local-hooks/98-remove_unwanted_packages
+++ b/config/chroot_local-hooks/98-remove_unwanted_packages
@@ -19,7 +19,6 @@ apt-get --yes purge \
intltool-debian \
libc6-dev libgl1-mesa-dev linux-libc-dev \
make \
- module-assistant \
po-debconf \
rsyslog \
libdvdcss-dev \