Talk:Grub

From SME Server
Revision as of 07:12, 19 August 2022 by Unnilennium (talk | contribs) (Created page with "on centos 7 might rather be something like this ==no efi== grub2-mkconfig -o /boot/grub2/grub.cfg grub2-mkconfig /dev/sda ==efi== first make sure the efi partition is moun...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

on centos 7 might rather be something like this

no efi

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig /dev/sda

efi

first make sure the efi partition is mounted on /boot/efi

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig /dev/sda

last command could be done on every member of raid.

NB if you need to rebuild the initramfs

dracut -f /boot/initramfs-3.10.0-693.el7.x86_64.img $(uname -r)

check the content

lsinitrd -k $(uname -r)