Commit 395c15cf authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] module blacklists -- add support for manual blacklists

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 8f85517b
...@@ -125,8 +125,16 @@ endif ...@@ -125,8 +125,16 @@ endif
# - blacklist all watchdog drivers (LP:1432837) # - blacklist all watchdog drivers (LP:1432837)
# #
install -d $(pkgdir)/lib/modprobe.d install -d $(pkgdir)/lib/modprobe.d
echo "# Autogenerated blacklist for $(src_pkg_name) $(abi_release)-$* $(arch)" \ echo "# Kernel supplied blacklist for $(src_pkg_name) $(abi_release)-$* $(arch)" \
>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf >$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf
for conf in $(arch)-$* $(arch) common.conf; do \
if [ -f $(DEBIAN)/modprobe.d/$$conf ]; then \
echo "# modprobe.d/$$conf"; \
cat $(DEBIAN)/modprobe.d/$$conf; \
fi; \
done >>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf
echo "# Autogenerated watchdog blacklist" \
>>$(pkgdir)/lib/modprobe.d/blacklist_$(src_pkg_name)_$(abi_release)-$*.conf
ls -1 $(pkgdir)/lib/modules/$(abi_release)-$*/kernel/drivers/watchdog/ | \ ls -1 $(pkgdir)/lib/modules/$(abi_release)-$*/kernel/drivers/watchdog/ | \
sed -e 's/^/blacklist /' -e 's/.ko$$//' | \ sed -e 's/^/blacklist /' -e 's/.ko$$//' | \
sort -u \ sort -u \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment