Ask Your Question
2

grub2-mkconfig shows nothing

asked 2018-11-17 08:10:09 -0600

Nathoufresh gravatar image

updated 2018-11-19 06:53:10 -0600

hhlp gravatar image

Hi there, I'm trying to update my grub2 with # grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg but it actually does nothing. Here's the only thread that I found about it. Here is the # strace grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg output (had to ctrl^c after 5 minutes because after "read 3" nothing else happened) . I also noticed that since that problem there's a systemd-modules-load issue. dmesg output.

I'm on fedora 29 with an HP omen 2016 with bumblebee installed dual-booting alongside Windows10

Any help would be really appreciated

edit retag flag offensive close merge delete

Comments

I solved the systemd-modules-load problem and the issue persist.

Nathoufresh gravatar imageNathoufresh ( 2018-11-18 03:35:05 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-11-18 03:51:50 -0600

villykruse gravatar image

The strace command is not very useful here as grub2-mkconfig is a shell script.

What I would do when grub2-mkconfig is stuck is to run ps axf and search for the grub2-mkconfig process. Below the grub2-mkconfig process entry you will see the entries that has been started by grub2-mkconfig and one of them will be the one that caused grub2-mkconfig to be stuck.

edit flag offensive delete link more

Comments

ps axf and thanks for the advice.

Nathoufresh gravatar imageNathoufresh ( 2018-11-18 03:58:47 -0600 )edit

What is the contents of /etc/default/grub?

villykruse gravatar imagevillykruse ( 2018-11-18 06:21:22 -0600 )edit
Nathoufresh gravatar imageNathoufresh ( 2018-11-18 09:26:45 -0600 )edit

That got somewhat garbeled,

GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' 
/etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true 
GRUB_TERMINAL_OUTPUT="console" 
GRUB_CMDLINE_LINUX="rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 
resume=UUID=d9a13e5a-463e-468f-b344-17b35c2b9bae rhgb quiet" 
GRUB_DISABLE_RECOVERY="false"

Should have looked something like this:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_TERMINAL_OUTPUT="console"
villykruse gravatar imagevillykruse ( 2018-11-18 11:35:40 -0600 )edit

I've got bbswitch installed so that explains the nouveau and nvidia related parameters. Maybe I should try removing some settings..

Nathoufresh gravatar imageNathoufresh ( 2018-11-18 12:14:52 -0600 )edit
0

answered 2018-11-17 10:19:47 -0600

fcomida gravatar image

Run dracut -f to rebuild initramfs and reboot.

edit flag offensive delete link more

Comments

That didn't solve the problem. Same issue.

Nathoufresh gravatar imageNathoufresh ( 2018-11-18 03:06:35 -0600 )edit

Question Tools

Stats

Asked: 2018-11-17 08:10:09 -0600

Seen: 597 times

Last updated: Nov 19 '18