]> git.proxmox.com Git - grub2.git/blob - debian/bug-script
Add support for forcing EFI installation to the removable media path
[grub2.git] / debian / bug-script
1 #!/bin/bash
2 set -e
3
4 if 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
7 fi
8
9 for 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
16 done
17
18 for 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
32 done
33
34 echo >&3
35 echo "*********************** BEGIN /proc/mdstat" >&3
36 cat /proc/mdstat >&3 2>&1 || true
37 echo "*********************** END /proc/mdstat" >&3
38
39 cat <<EOF
40 Information on any LVM volumes on this system is valuable to the GRUB
41 developers, but gathering this information requires the root password.
42 EOF
43 yesno "Do you want to provide LVM volume information?" nop
44 if [ "$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
49 fi
50
51 echo >&3
52 echo "*********************** BEGIN /dev/disk/by-id" >&3
53 ls -l /dev/disk/by-id >&3 2>&1 || true
54 echo "*********************** END /dev/disk/by-id" >&3
55
56 echo >&3
57 echo "*********************** BEGIN /dev/disk/by-uuid" >&3
58 ls -l /dev/disk/by-uuid >&3 2>&1 || true
59 echo "*********************** END /dev/disk/by-uuid" >&3
60
61 exit 0