I am trying to write some code that is supposed to add kernel parameters in the file /etc/default/grub inside this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet pci=no