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

New menu entry Ubuntu 16.04 #43

Open
tisauro opened this issue Jun 3, 2019 · 4 comments
Open

New menu entry Ubuntu 16.04 #43

tisauro opened this issue Jun 3, 2019 · 4 comments

Comments

@tisauro
Copy link

tisauro commented Jun 3, 2019

Hi,

I am trying to create a new menu entry in Ubuntu 16.04 using the sample provided

grub_menuentry { 'new_entry':
   root           => '(hd0,0)',
   kernel         => ':preserve:',
   initrd         => ':preserve:',
   kernel_options => [':preserve:']
 }

however when I apply it to my node I get the error

Debug: Puppet::Type::Grub_menuentry::ProviderGrub2: file grubby does not exist
Debug: Puppet::Type::Grub_menuentry::ProviderGrub: file grub does not exist
Error: Could not find a suitable provider for grub_menuentry

is there anything I missing?

many thanks in advance
Kind regards,
Mauro

@raphink
Copy link
Member

raphink commented Jul 10, 2019

The grub_menuentry type requires either grub or grubby commands. It seems recent Ubuntu versions don't have them. @trevor-vaughan do you know what needs to be used instead?

@trevor-vaughan
Copy link
Contributor

@raphink Yep, someone needs to go write a parser for all of GRUB2 that does what grubby does in terms of information retrieval. I don't Ubuntu so, until EL drops grubby, totally not volunteering for this one.

Basically, just run grubby --info DEFAULT (and for individual kernels) and find a way to get all of that info.

@raphink
Copy link
Member

raphink commented Jul 11, 2019

Ack. I use Ubuntu but I don't manage grub stuff with Puppet. Ubuntu doesn't have grubby so I can't check the output. Bottom line so far, we'd welcome a PR to fix that in a proper way in Debian-based OSes @tisauro

@trevor-vaughan
Copy link
Contributor

As a quick check to see if there was some reason that grubby wasn't available for Ubuntu, I spun up a 1604 system, snagged the repo from https://github.com/rhboot/grubby, built it and it worked just fine.

Honestly, I'd recommend that someone ask Ubuntu to include it instead of trying to reinvent the wheel.

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

3 participants