From 03041255284405b4d8c849b395a1e07713675958 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Tue, 17 Mar 2015 11:04:29 +0000 Subject: [PATCH] UBUNTU: [Debian] generate live watchdog blacklists BugLink: http://bugs.launchpad.net/bugs/1432837 Signed-off-by: Andy Whitcroft --- debian/rules.d/2-binary-arch.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk index 05a0e55a8812..7869cc9e481e 100644 --- a/debian/rules.d/2-binary-arch.mk +++ b/debian/rules.d/2-binary-arch.mk @@ -120,6 +120,18 @@ endif INSTALL_MOD_STRIP=1 INSTALL_MOD_PATH=$(pkgdir)/ \ INSTALL_FW_PATH=$(pkgdir)/lib/firmware/$(abi_release)-$* + # + # Build module blacklists: + # - blacklist all watchdog drivers (LP:1432837) + # + install -d $(pkgdir)/lib/modprobe.d + echo "# Autogenerated blacklist for $(src_pkg_name) $(abi_release)-$* $(arch)" \ + >$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf + ls -1 $(pkgdir)/lib/modules/$(abi_release)-$*/kernel/drivers/watchdog/ | \ + sed -e 's/^/blacklist /' -e 's/.ko$$//' | \ + sort -u \ + >>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf + ifeq ($(do_extras_package),true) # # Remove all modules not in the inclusion list. -- 2.39.2