Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GRUB_CMDLINE_LINUX_DEFAULT overwriting. #10

Open
pocorall opened this issue Sep 9, 2020 · 0 comments
Open

Fix GRUB_CMDLINE_LINUX_DEFAULT overwriting. #10

pocorall opened this issue Sep 9, 2020 · 0 comments

Comments

@pocorall
Copy link

pocorall commented Sep 9, 2020

Some packages have configurations that overwrites GRUB_CMDLINE_LINUX_DEFAULT setting in /etc/default/grub.

https://bugs.launchpad.net/vmbuilder/+bug/1692471
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1569567

vmbuilder did not fix this problem, and released with Ubuntu 20.04. Although it is not a bug of this project, I think it is better address this problem because the problem disables core functionality of this project. Possible solution is adding a new task:

    - name: Fix VMBuilder bug -- https://bugs.launchpad.net/vmbuilder/+bug/1692471 -- https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1569567
      lineinfile:
        path: '/etc/default/grub.d/50-cloudimg-settings.cfg'
        regexp: '^GRUB_CMDLINE_LINUX_DEFAULT="((?!\$GRUB_CMDLINE_LINUX_DEFAULT).*)"'
        line: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT \1"'
        backrefs: yes
      notify:
        - update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant