Skip to content

Instantly share code, notes, and snippets.

@Tiny-Giant
Last active February 23, 2016 19:16
Show Gist options
  • Save Tiny-Giant/244702b34157aa867d32 to your computer and use it in GitHub Desktop.
Save Tiny-Giant/244702b34157aa867d32 to your computer and use it in GitHub Desktop.
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