From: Andy Whitcroft Date: Tue, 17 Mar 2015 11:04:29 +0000 (+0000) Subject: UBUNTU: [Debian] generate live watchdog blacklists X-Git-Tag: Ubuntu-4.10.0-9.11~573 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=03041255284405b4d8c849b395a1e07713675958;p=mirror_ubuntu-zesty-kernel.git UBUNTU: [Debian] generate live watchdog blacklists BugLink: http://bugs.launchpad.net/bugs/1432837 Signed-off-by: Andy Whitcroft --- 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.