Script to restore Grub2 for openSUSE after for example Windows installation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|# openSUSE rescue system login: root|
|mount /dev/sda5 /mnt # assume that linux partition (/) is on /dev/sda5, you can see this after "fdisk -l" command|
|mount --bind /dev /mnt/dev|
|mount --bind /sys /mnt/sys|
|mount --bind /proc /mnt/proc|
|grub2-mkconfig -o /boot/grub2/grub.cfg|