Regenerating /etc/sysconfig/grub

Alex mysqlstudent at gmail.com
Wed Jan 16 03:28:02 UTC 2013


Hi all,

I had a problem with an fc17 install at the last step, where it
installs the bootloader, so had to run mkgrub-config and grub2-install
manually. As such, it didn't create the /etc/sysconfig/grub file, so
whenever I update the kernel, I have to edit the actual grub file
manually.

How can I create this file according to my system details?

For another system I have, it contains the following contents:

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Fedora"
GRUB_DEFAULT=saved
GRUB_CMDLINE_LINUX="rd.md.uuid=d546cf93:a8b6adfc:d40b759d:4c011e19
rd.lvm=0 rd.dm=0 SYSFONT=True  KEYTABLE=us
rd.md.uuid=30cec390:d8f2c416:8fe6e632:ac71908b rd.luks=0
LANG=en_US.UTF-8 security=0"
#GRUB_THEME="/boot/grub2/themes/system/theme.txt"

I'm not exactly sure how the new system is configured, so I'd like to
programatically figure it out. This way I can add changes to it such
as vga resolution, disable selinux, etc.

Any ideas greatly appreciated.
Thanks,
Alex


More information about the users mailing list