if test -e /boot/grub/setup_left_core_image_in_filesystem ; then
echo "*********************** WARNING grub-setup left core.img in filesystem" >&3
for i in /proc/mounts ; do
echo "*********************** BEGIN $i" >&3
echo "*********************** END $i" >&3
for i in /boot/grub/{device.map,grub.cfg} ; do
echo "*********************** BEGIN $i" >&3
sed $i -e "s/.*password.*/### PASSWORD LINE REMOVED ###/g" >&3
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
echo "*********************** END $i" >&3
echo "*********************** BEGIN /proc/mdstat" >&3
cat /proc/mdstat >&3 2>&1 || true
echo "*********************** END /proc/mdstat" >&3
Information on any LVM volumes on this system is valuable to the GRUB
developers, but gathering this information requires the root password.
yesno "Do you want to provide LVM volume information?" nop