Last active
February 23, 2016 19:16
-
-
Save Tiny-Giant/244702b34157aa867d32 to your computer and use it in GitHub Desktop.
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
su - | |
cd /mnt | |
mount /dev/fedora/root ./ | |
mount /dev/fedora/home home/ | |
mount -t proc proc proc/ | |
mount --rbind /sys sys/ | |
mount --rbind /dev dev/ | |
mount --rbind /var/run/ var/run/ | |
chroot /mnt/ | |
mount -a | |
dhclient `/sbin/route -n | grep "^0.0.0.0" | rev | cut -d' ' -f1 | rev` | |
dnf -y update | |
dnf -y remove grub2-efi grub2-efi-modules shim | |
dnf -y reinstall grub2 | |
grub2-mkconfig -o /boot/grub2/grub.cfg | |
grub2-install --target=i386-pc --grub-setup=/bin/true --debug /dev/sda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment