** Changed in: livecd-rootfs (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/2045418

Title:
  Xenial grub-install fails on amd64 due to removed grub-pc-bin package

Status in livecd-rootfs package in Ubuntu:
  Fix Released
Status in livecd-rootfs source package in Xenial:
  Fix Released

Bug description:
  I have found an interesting bug with grub on our cloud image builds
  for xenial. During the build `grub-install --target=i386-pc
  /dev/loop3` is called which calls `/usr/lib/grub/i386-pc/modinfo.sh`
  and `/usr/lib/grub/i386-pc/modinfo.sh` is from package `grub-pc-bin`
  but `grub2-common` which is where `grub-install` is from does not
  depend on `grub-pc-bin` so this now fails with error

  ```
  grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please 
specify --target or --directory.
  ```

  We are seeing this now on xenial as `grub-pc-bin` is now removed
  during build as part of fixing bug LP#2036195 as  `grub-pc-bin`  is
  being purged as an autoremovable package.

  The reason `grub-pc-bin` is autoremovable is because the `grub-pc`
  package was removed when `apt-get install -qqy grub-efi-amd64-signed
  grub-efi-amd64 shim-signed` as `grub-efi-amd64` replaces `grub-pc`.

  We are not seeing this on newer releases as `grub-pc` is still
  installed, and thus, so too is `grub-pc-bin`

  There were previous changes in this area [1] related to grub installs
  which would have resolved this issue as part of LP#1901906 but they
  were reverted for xenial [2][3]

  Without making further grub changes the solution is to mark `grub-pc-
  bin` as manually installed so even if `grub-pc` is removed the `grub-
  pc-bin` is not marked autoremovable.

  [1] 
https://git.launchpad.net/livecd-rootfs/tree/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary?h=eef7feef4a302c844d4c7fd1f8313e0bc188a104#n89
  [2] 
https://git.launchpad.net/livecd-rootfs/commit/?id=94cafd703d9167115be9ae73fffa70a661f05b7f
  [3] 
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1901906/comments/12

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2045418/+subscriptions


_______________________________________________
Mailing list: https://launchpad.net/~group.of.nepali.translators
Post to     : group.of.nepali.translators@lists.launchpad.net
Unsubscribe : https://launchpad.net/~group.of.nepali.translators
More help   : https://help.launchpad.net/ListHelp

Reply via email to