[Bug 1651349] Re: ubiquity does not install needed filesystem modules on UEFI PC

Phillip Susi psusi at ubuntu.com
Tue Jan 3 14:42:50 UTC 2017


** Package changed: ubiquity (Ubuntu) => grub2 (Ubuntu)

-- 
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/1651349

Title:
  ubiquity does not install needed filesystem modules on UEFI PC

Status in grub2 package in Ubuntu:
  New

Bug description:
  UEFI grub 64 has VFAT and (supposedly) ext filesystem modules built
  in. If /boot is on another kind of filesystem (XFS in my case), grub
  can't boot a newly installed PC.

  I installed ubuntu 16.04.1 amd64 desktop on a UEFI PC and chose XFS
  for / partition and no separate /boot. So /boot was on XFS. grub could
  not load /boot/grub/grub.cfg. newly installed PC did not boot.

  Recommended action IMHO :
  =========================
  Ubiquity should make sure grub can effectively load the /boot/grub/grub.cfg file. It has to put whatever filesystem grub module are needed in the EFI partition and make sure this module is loaded early from the EFI /EFI/ubuntu/grub.cfg.

  I manually did that, and now the PC happily boots.

  Details of what I did :
  =======================
  1) On a working computer, create an USB install using usb-creator-gtk
  2) Use a pure UEFI PC, with no CSM or other legacy boot enabled.
  3) boot this computer into the live session with the usb stick created
  4) install Ubuntu Gnu/Linux. Choose manual partitioning. Create one
     XFS formatted filesystem. Disk partition format is GPT. Partitions are
     set up like this :
         Start (sector)    End (sector)  Size        Code  Name
     1            2048          534527   260.0 MiB   EF00  EFI system partition
     2          534528          944127   200.0 MiB   8200  Swap
     3          944128       500118158   238.0 GiB   8300  Everything

  5) installation goes on without any error or warning
  6) reboot. Grub starts but can't access the filesystem since it does not have XFS capacity. The machine is not bootable.

  For years, I have been using such configurations with BIOS. Bios grub
  has been able to read XFS and boot. The same usb stick, if plugged in
  a BIOS PC will perfectly install with / formatted as XFS. BIOS grub
  installed from this same media has XFS support (or it is merged into
  grub 1.5 stage, don't really know), and the PC boots.

  My solution :
  =============
  1) on the EFI partition, copy xfs.mod in directory EFI/ubuntu/
  2) load the xfs module before grub tries to read /boot/grub/grub.cfg (which is on XFS). This is done in the initial grub.cfg of the EFI partition.
  Here is my EFI/ubuntu/grub.cfg file

  search.fs_uuid BC9C-B499 root hd0,gpt1 
  insmod /efi/ubuntu/xfs.mod
  search.fs_uuid 192019be-35a2-4eea-aabc-6c8956d50573 root hd0,gpt3 
  set prefix=($root)'/boot/grub'
  configfile $prefix/grub.cfg

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



More information about the foundations-bugs mailing list