4 if test -e /boot
/grub
/setup_left_core_image_in_filesystem
; then
6 echo "*********************** WARNING grub-setup left core.img in filesystem" >&3
9 for i
in /proc
/mounts
; do
12 echo "*********************** BEGIN $i" >&3
14 echo "*********************** END $i" >&3
18 for i
in /boot
/grub
/{device.map
,grub.cfg
} ; do
19 if ! test -e $i ; then
23 echo "*********************** BEGIN $i" >&3
25 sed $i -e "s/.*password.*/### PASSWORD LINE REMOVED ###/g" >&3
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
31 echo "*********************** END $i" >&3
35 echo "*********************** BEGIN /proc/mdstat" >&3
36 cat /proc
/mdstat
>&3 2>&1 || true
37 echo "*********************** END /proc/mdstat" >&3
40 Information on any LVM volumes on this system is valuable to the GRUB
41 developers, but gathering this information requires the root password.
43 yesno
"Do you want to provide LVM volume information?" nop
44 if [ "$REPLY" = yep
]; then
46 echo "*********************** BEGIN LVM" >&3
47 su root
-c "vgdisplay; pvdisplay; lvdisplay" >&3 || true
48 echo "*********************** END LVM" >&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
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