View previous topic :: View next topic |
Author |
Message |
Pay08 n00b
Joined: 04 Jul 2022 Posts: 51
|
Posted: Thu Oct 06, 2022 3:31 pm Post subject: How can I restore GRUB? |
|
|
I installed grub-customizer, which messed up my /etc/grub.d/, duplicating every script. However, I somehow messed up removing these scripts, meaning that only the recovery entry is listed. How can I restore GRUB to its proper state?
Last edited by Pay08 on Thu Oct 06, 2022 3:51 pm; edited 2 times in total |
|
Back to top |
|
|
Irets Apprentice
Joined: 17 Dec 2019 Posts: 222
|
Posted: Thu Oct 06, 2022 3:37 pm Post subject: |
|
|
Could this emerge option help here?
Code: | --noconfmem
Causes portage to disregard merge records indicating that a config file inside of a CONFIG_PROTECT directory has
been merged already. Portage will normally merge those files only once to prevent the user from dealing with
the same config multiple times. This flag will cause the file to always be merged. |
|
|
Back to top |
|
|
Pay08 n00b
Joined: 04 Jul 2022 Posts: 51
|
Posted: Thu Oct 06, 2022 3:42 pm Post subject: |
|
|
Is reemerging GRUB safe? Do I need to reinstall it afterwards? |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 4148 Location: Bavaria
|
Posted: Thu Oct 06, 2022 5:27 pm Post subject: |
|
|
Pay08 wrote: | Is reemerging GRUB safe? Do I need to reinstall it afterwards? |
To be safe you can do a "grub-mkconfig -o /boot/grub/grub.cfg" afterwards (like you have to do always with a new kernel). |
|
Back to top |
|
|
Pay08 n00b
Joined: 04 Jul 2022 Posts: 51
|
Posted: Thu Oct 06, 2022 5:34 pm Post subject: |
|
|
pietinger wrote: | To be safe you can do a "grub-mkconfig -o /boot/grub/grub.cfg" afterwards (like you have to do always with a new kernel). |
I'd have to run grub-mkconfig no matter what, I meant whether or not I have to run grub-install. But just reemerging it with --noconfmem worked. Thanks Irets. |
|
Back to top |
|
|
Irets Apprentice
Joined: 17 Dec 2019 Posts: 222
|
Posted: Sat Oct 08, 2022 8:33 am Post subject: |
|
|
Pay08 wrote: | But just reemerging it with --noconfmem worked. Thanks Irets. |
That's nice.
Pay08 wrote: | I'd have to run grub-mkconfig no matter what, I meant whether or not I have to run grub-install. |
You don't need to reinstall grub on to the disk. Just recreating grub.cfg is enough.
You should edit your original post and append [solved] to the subject field.
That way people know that there is no question left unanswered but instead a possible solution to be found. |
|
Back to top |
|
|
|