[Dmraid-debian-commits] [SCM] Maintenance of the dmraid package branch, master, updated. debian/1.0.0.rc15-4-3-gee25145
Giuseppe Iuculano
giuseppe at iuculano.it
Mon Mar 23 11:22:52 UTC 2009
The following commit has been merged in the master branch:
commit b1fc9ecc5bae7fdbab81d4f50431fa9292e5b0e1
Author: Giuseppe Iuculano <giuseppe at iuculano.it>
Date: Mon Mar 23 11:08:50 2009 +0100
Added a bug submission control script
diff --git a/debian/dmraid.bug b/debian/dmraid.bug
new file mode 100755
index 0000000..0a3ce1e
--- /dev/null
+++ b/debian/dmraid.bug
@@ -0,0 +1,74 @@
+#!/bin/bash
+#
+# dmraid bug submission control script
+#
+# allows Debian's bug tools to include relevant information in bug reports.
+#
+# based on mdadm bug submission control script
+#
+set +eu
+
+if ! command -v yesno >/dev/null; then
+ if [ -r /usr/share/reportbug/handle_bugscript ]; then
+ exec /usr/share/reportbug/handle_bugscript ". $0" /dev/stdout
+ fi
+ yesno() {
+ read -n1 -p"$1" REPLY
+ case "$REPLY" in
+ [yY]) REPLY=yep;;
+ [nN]) REPLY=nop;;
+ ('') REPLY="$2";;
+ esac
+ }
+ exec 3>&1
+fi
+
+echo "--- dmraid -r -vvv output" >&3
+dmraid -r -vvv >&3
+echo >&3
+
+echo "--- dmraid -s -vv output" >&3
+dmraid -s -vv >&3
+echo >&3
+
+echo "--- /proc/partitions:" >&3
+cat /proc/partitions >&3 2>&3 || :
+echo >&3
+
+echo "--- initrd.img-$(uname -r):" >&3
+if [ -r /boot/initrd.img-$(uname -r) ]; then
+ zcat /boot/initrd.img-$(uname -r) 2>&3 | cpio -t 2>&3 | egrep '/md[a/]' >&3
+fi
+echo >&3
+
+if [ -r /proc/modules ]; then
+ echo "--- /proc/modules:" >&3
+ grep 'dm_' < /proc/modules >&3 || :
+ echo >&3
+fi
+
+if [ -r /proc/cmdline ]; then
+ echo "--- /proc/cmdline" >&3
+ cat /proc/cmdline >&3
+ echo >&3
+fi
+
+if [ -f /boot/grub/menu.lst ]; then
+ echo "--- grub:" >&3
+ if [ -r /boot/grub/menu.lst ]; then
+ grep '^[^#].*root=' /boot/grub/menu.lst >&3 || :
+ else
+ echo menu.lst file not readable. >&3
+ fi
+ echo >&3
+fi
+
+if [ -f /etc/lilo.conf ]; then
+ echo "--- lilo:" >&3
+ if [ -r /etc/lilo.conf ]; then
+ egrep '^([^#].*)?root=' /etc/lilo.conf >&3 || :
+ else
+ echo lilo.conf file not readable. >&3
+ fi
+ echo >&3
+fi
diff --git a/debian/dmraid.dirs b/debian/dmraid.dirs
new file mode 100644
index 0000000..ad3efee
--- /dev/null
+++ b/debian/dmraid.dirs
@@ -0,0 +1 @@
+usr/share/bug/dmraid
diff --git a/debian/rules b/debian/rules
index 673eca8..4882242 100755
--- a/debian/rules
+++ b/debian/rules
@@ -73,6 +73,7 @@ binary-arch: install
dh_installudev --priority=85
dh_installdocs ${version}/CREDITS ${version}/KNOWN_BUGS ${version}/README ${version}/TODO
dh_installchangelogs ${version}/CHANGELOG
+ install -m0755 debian/dmraid.bug debian/dmraid/usr/share/bug/dmraid/script
chmod 755 debian/dmraid/usr/share/initramfs-tools/hooks/dmraid
chmod 755 debian/dmraid/usr/share/initramfs-tools/scripts/local-top/dmraid
chmod 755 debian/dmraid/sbin/dmraid-activate
--
Maintenance of the dmraid package
More information about the Dmraid-debian-commits
mailing list