source: grub-pc/trunk/fuentes/debian/bug-script @ 22

Last change on this file since 22 was 22, checked in by mabarracus, 4 years ago

updated version and apply net.ifnames=0 into debian/rules

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/bin/bash
2set -e
3
4if test -e /boot/grub/setup_left_core_image_in_filesystem ; then
5  echo >&3
6  echo "*********************** WARNING grub-setup left core.img in filesystem" >&3
7fi
8
9for i in /proc/mounts ; do
10  if test -e $i ; then
11    echo >&3
12    echo "*********************** BEGIN $i" >&3
13    grep ^/dev/ $i >&3
14    echo "*********************** END $i" >&3
15  fi
16done
17
18for i in /boot/grub/{device.map,grub.cfg} ; do
19  if ! test -e $i ; then
20    continue
21  fi
22  echo >&3
23  echo "*********************** BEGIN $i" >&3
24  if test -r $i ; then
25    sed $i -e "s/.*password.*/### PASSWORD LINE REMOVED ###/g" >&3
26  else 
27    echo "$i is not readable by you. Please enter your root password."
28    echo "Any password line in it gets removed."
29    su root -c "sed $i -e 's/.*password.*/### PASSWORD LINE REMOVED ###/g'" >&3
30  fi
31  echo "*********************** END $i" >&3
32done
33
34echo >&3
35echo "*********************** BEGIN /proc/mdstat" >&3
36cat /proc/mdstat >&3 2>&1 || true
37echo "*********************** END /proc/mdstat" >&3
38
39cat <<EOF
40Information on any LVM volumes on this system is valuable to the GRUB
41developers, but gathering this information requires the root password.
42EOF
43yesno "Do you want to provide LVM volume information?" nop
44if [ "$REPLY" = yep ]; then
45  echo >&3
46  echo "*********************** BEGIN LVM" >&3
47  su root -c "vgdisplay; pvdisplay; lvdisplay" >&3 || true
48  echo "*********************** END LVM" >&3
49fi
50
51echo >&3
52echo "*********************** BEGIN /dev/disk/by-id" >&3
53ls -l /dev/disk/by-id >&3 2>&1 || true
54echo "*********************** END /dev/disk/by-id" >&3
55
56echo >&3
57echo "*********************** BEGIN /dev/disk/by-uuid" >&3
58ls -l /dev/disk/by-uuid >&3 2>&1 || true
59echo "*********************** END /dev/disk/by-uuid" >&3
60
61exit 0
Note: See TracBrowser for help on using the repository browser.