cloud image grub default override user defaults

Bug #1692471 reported by YKorman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VMBuilder
New
Undecided
Unassigned

Bug Description

I've generated a cloud image using vmbuilder.
Then when using the VM, I've made changes to GRUB_CMDLINE_LINUX_DEFAULT variable in /etc/default/grub.
After running grub-mkconfig -o /boot/grub/grub.cfg, the new configuration didn't apply.
The reason is that /etc/default/grub.d/50-cloudimg-settings.cfg overrides the above mentioned variable.
I suggest changing the configuration of:
GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"
to:
GRUB_CMDLINE_LINUX_DEFAULT+=" console=tty1 console=ttyS0"

Thanks,
much appreciated.

Tags: aws cloud grub
Revision history for this message
YKorman (ykorman) wrote :

My suggestion doesn't work because grub-mkconfig is ran with dash and not bash.

Revision history for this message
YKorman (ykorman) wrote :

The correct solution is to use the following:
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT console=tty1 console=ttyS0"

Revision history for this message
David A. Desrosiers (setuid) wrote :

Just jumping in here to add that the provided suggestion by YKorman above, does not work.

The correct answer is to add the parameters you want to append, to `GRUB_CMDLINE_LINUX`, not `GRUB_CMDLINE_LINUX_DEFAULT`, and make sure you re-run `sudo update-grub` before rebooting.

Something like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="ipv6.disable=1"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.