diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:54:18 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 10:54:18 +0000 |
commit | 8e67fbf68ffeb9eb5f026dd482d73b021660bf9b (patch) | |
tree | bb573facd5d02096f9956b2617a722b88acaa8af /debian/bug-script | |
parent | Adding upstream version 2.06. (diff) | |
download | grub2-8e67fbf68ffeb9eb5f026dd482d73b021660bf9b.tar.xz grub2-8e67fbf68ffeb9eb5f026dd482d73b021660bf9b.zip |
Adding debian version 2.06-3~deb11u6.debian/2.06-3_deb11u6debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/bug-script | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/debian/bug-script b/debian/bug-script new file mode 100755 index 0000000..5c4ec7e --- /dev/null +++ b/debian/bug-script @@ -0,0 +1,61 @@ +#!/bin/bash +set -e + +if test -e /boot/grub/setup_left_core_image_in_filesystem ; then + echo >&3 + echo "*********************** WARNING grub-setup left core.img in filesystem" >&3 +fi + +for i in /proc/mounts ; do + if test -e $i ; then + echo >&3 + echo "*********************** BEGIN $i" >&3 + grep ^/dev/ $i >&3 + echo "*********************** END $i" >&3 + fi +done + +for i in /boot/grub/{device.map,grub.cfg} ; do + if ! test -e $i ; then + continue + fi + echo >&3 + echo "*********************** BEGIN $i" >&3 + if test -r $i ; then + sed $i -e "s/.*password.*/### PASSWORD LINE REMOVED ###/g" >&3 + else + echo "$i is not readable by you. Please enter your root password." + echo "Any password line in it gets removed." + su root -c "sed $i -e 's/.*password.*/### PASSWORD LINE REMOVED ###/g'" >&3 + fi + echo "*********************** END $i" >&3 +done + +echo >&3 +echo "*********************** BEGIN /proc/mdstat" >&3 +cat /proc/mdstat >&3 2>&1 || true +echo "*********************** END /proc/mdstat" >&3 + +cat <<EOF +Information on any LVM volumes on this system is valuable to the GRUB +developers, but gathering this information requires the root password. +EOF +yesno "Do you want to provide LVM volume information?" nop +if [ "$REPLY" = yep ]; then + echo >&3 + echo "*********************** BEGIN LVM" >&3 + su root -c "vgdisplay; pvdisplay; lvdisplay" >&3 || true + echo "*********************** END LVM" >&3 +fi + +echo >&3 +echo "*********************** BEGIN /dev/disk/by-id" >&3 +ls -l /dev/disk/by-id >&3 2>&1 || true +echo "*********************** END /dev/disk/by-id" >&3 + +echo >&3 +echo "*********************** BEGIN /dev/disk/by-uuid" >&3 +ls -l /dev/disk/by-uuid >&3 2>&1 || true +echo "*********************** END /dev/disk/by-uuid" >&3 + +exit 0 |