Documentation tells me that kickstart allows an --append switch to the bootloader command to add additional text to the GRUB2 boot line. I haven't experimented with this and it is unclear to me if the change goes only into /boot/grub2/grub.cfg or if it is also put into /etc/default/grub. But adding things is not my objective.
I want to delete "rhgb" and "quiet" on the boot line, preferably in both places. Is there any way to do that through kickstart or do I have to use a post-install step?
I think your cleanest way would be a simple one-liner post-install sed command.
From: CLOSE Dave Dave.Close@us.thalesgroup.com To: Community support for Fedora users users@lists.fedoraproject.org Sent: Tuesday, June 24, 2014 9:03 PM Subject: Changing boot options through kickstart
Documentation tells me that kickstart allows an --append switch to the bootloader command to add additional text to the GRUB2 boot line. I haven't experimented with this and it is unclear to me if the change goes only into /boot/grub2/grub.cfg or if it is also put into /etc/default/grub. But adding things is not my objective.
I want to delete "rhgb" and "quiet" on the boot line, preferably in both places. Is there any way to do that through kickstart or do I have to use a post-install step? -- Dave Close -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
I asked:
I want to delete "rhgb" and "quiet" on the boot line, preferably in both places [/etc/default/grub and /boot/grub2/grub.cfg]. Is there any way to do that through kickstart or do I have to use a post-install step?
Joe Wulf replied:
I think your cleanest way would be a simple one-liner post-install sed command.
Surely changing /etc/default/grub is just a one-line sed command. But then I would need to run grub-mkconfig. Since the post-install script runs under chroot, it's not clear to me that it would work. I'm not eager to apply sed to /boot/grub2/grub.cfg, though I suppose I could.