grub2-mkconfig missing parameters?
Hello,
I'm completely inexperienced with grub, so I am confused why this is happening:
I chose to encrypt my root and home partitions when I installed Fedora 28 (now upgraded to 29).
My /etc/sysconfig/grub did not contain anything special, with GRUB_CMDLINE_LINUX=""
.
Then, I followed this guide on how to uninstall the nvidia driver because it stopped working on my machine with the 4.19.2 kernel.
I deleted the text rd.driver.blacklist=nouveau
and a duplicate GRUB_CMDLINE_LINUX=
line at the end, and etc. There may be some changes that I mistakenly made.
Edit: to clarify, I had two separate lines: GRUB_CMDLINE_LINUX=""
and GRUB_CMDLINE_LINUX=
. I simply deleted the latter.
Now, the linux
line in grub after running grub2-mkconfig
changed from
linux /vmlinuz-<version root=/dev/mapper/fedora_localhost--live-root ro resume/dev/mapper/fedora_localhost--live-swap rd.md.uuid=<uuid> rd.lvm.lv=fedora_localhost-live/root rd.md.uuid=<uuid> rd.luks.uuid=<luks-uuid> rd.lvm.lv=fedora_localhost-live/swap
to
linux /vmlinuz-<version root=/dev/mapper/fedora_localhost--live-root ro
For now, I manually added back the missing parameters in GRUB_CMDLINE_LINUX
, but I shouldn't have to do that in the first place (unless my memory is wrong). How would I fix this?
What is the content of that duplicate
GRUB_CMDLINE_LINUX=
line?Or better yet. Copy-paste the entire
/etc/default/grub
into your question.@villykruse there was an empty
GRUB_CMDLINE_LINUX=
(verbatim) at the end of the file. Will paste the content when I get access to my computer.... which erases or overrides the earlier
GRUB_CMDLINE_LINUX=
entry.@villykruse and I had had the line the whole time, and there were no missing boot options. I deleted the line, not added. Prior to deleting the line, I had the boot options that I needed.