summaryrefslogtreecommitdiffstats
path: root/debian/templates/image.bug/include-modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/templates/image.bug/include-modules13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/templates/image.bug/include-modules b/debian/templates/image.bug/include-modules
new file mode 100644
index 0000000000..22271c9058
--- /dev/null
+++ b/debian/templates/image.bug/include-modules
@@ -0,0 +1,13 @@
+add_modules() {
+ echo '** Loaded modules:' >&3
+ # List modules along with any taint flags.
+ # We should be able to tell cut to use an empty output delimiter, but
+ # currently (coreutils 8.13-3) this results in null bytes in the output.
+ cut -d' ' -f1,7 /proc/modules | sed 's/ //' >&3
+ echo >&3
+}
+
+ask_modules() {
+ true
+}
+