[Bug 1640878] Re: grub2 cannot currently generate configuration without initrd

Chris Glass christopher.glass at canonical.com
Fri Nov 11 08:28:34 UTC 2016


cyphermox uploaded patched packages to ppa:cyphermox/grub .

Steps to assert this works are as follows:

- Boot a Yakkety EC2 image (https://console.aws.amazon.com/ec2/home?region=eu-central-1#launchAmi=ami-b87881d7)
- Login
- sudo apt-add-repository ppa:cyphermox/grub; sudo apt update; sudo apt-upgrade
- reboot
(assert the system comes back online with no modifications to the grub config)
- login again
- Get the PARTUUID for the image's disk: ls /dev/disk/by-partuuid/ (should be 6983c98a-01 on this particular image)
- Add "GRUB_FORCE_PARTUUID=6983c98a-01" to /etc/default/grub
- sudo update-grub
- reboot
(assert the system comes back online with a root=PARTUUID config)
- login again
- Add "GRUB_DISABLE_INITD=true" to /etc/default/grub.
- sudo update-grub
- reboot
(assert the system comes back online with root=PARTUUID and no initrd)

Currently the Xenial images we build don't expose partuuids (it's an
artifact of CPC transitionning to a new build system, AFAIU).

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1640878

Title:
  grub2 cannot currently generate configuration without initrd

Status in grub2 package in Ubuntu:
  Triaged

Bug description:
  As it currently stands grub2 cannot create grub.cfg menu entries that do not use an initrd image if one is present but the user does not desire to use it.
  Furthermore, root= entries only support UUID and LABEL, but neither is an option if booting the kernel without an initrd.

  Suggestion:

  Allow grub2 to create configuration files without an "initrd" line and
  passing PARTUUID as root= entry by adding configuration knobs.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1640878/+subscriptions



More information about the foundations-bugs mailing list