[Bug 1743787] Re: FTBFS in Trusty

Launchpad Bug Tracker 1743787 at bugs.launchpad.net
Thu Feb 15 07:43:21 UTC 2018


This bug was fixed in the package debian-installer -
20101020ubuntu318.43

---------------
debian-installer (20101020ubuntu318.43) trusty; urgency=medium

  * Include $efi_name in shim filename. (LP: #1743787)
  * Rebuild to pick up the latest change in preseed. (LP: #1745531)

 -- Eric Desrochers <eric.desrochers at canonical.com>  Fri, 19 Jan 2018
09:20:25 -0500

** Changed in: debian-installer (Ubuntu Trusty)
       Status: Fix Committed => Fix Released

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

Title:
  FTBFS in Trusty

Status in debian-installer package in Ubuntu:
  Fix Released
Status in debian-installer source package in Trusty:
  Fix Released

Bug description:
  [Impact]

  d-i FBTFS is a blocker for any future preseed SRU that require a d-i
  rebuild to create for instance a new mini.iso (Minimal image of
  Ubuntu).

  [Test Case]

  * Perform the following :

   $ pull-lp-source debian-installer trusty
   $ cd debian-installer-*
   $ dch -i # Bump version in debian/changelog
   $ debuild -S -k<YOUR_LP_GPG_KEY>
   $ dput ppa:<YOUR_LP_ID>:<YOUR_PPA_NAME> ../debian-installer*.source.changes

  * The build will fail with the following error in the build log
  ------------------------------------------------------------------
  ...
  Using signed grub version 2.02~beta2-9ubuntu1.14
  cp: cannot stat ‘/usr/lib/shim/shim.efi.signed’: No such file or directory
  make[7]: *** [x86_grub_efi] Error 1
  make[6]: *** [_build] Error 2
  make[5]: *** [flavour_build] Error 2
  make[4]: *** [medium_build] Error 2
  make[3]: *** [subarch_build] Error 2
  make[2]: *** [all_build] Error 2
  make[2]: Leaving directory `/<<PKGBUILDDIR>>/build'
  make[1]: *** [build-images] Error 2
  make[1]: Leaving directory `/<<PKGBUILDDIR>>'
  make: *** [install] Error 2
  dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2
  ------------------------------------------------------------------

  [Regression Potential]

  No regression anticipated, it will simply fix the FTBFS by making sure
  d-i reflect new shim-signed package reality.

  [Other Info]

  Only trusty is impacted.

  [Original Description]

  When building d-i on Trusty as-is, we are getting a FBTFS situation
  with the following error:

  # Launchpad Buildlog
  ...
  Using signed grub version 2.02~beta2-9ubuntu1.14
  cp: cannot stat ‘/usr/lib/shim/shim.efi.signed’: No such file or directory
  make[7]: *** [x86_grub_efi] Error 1
  make[6]: *** [_build] Error 2
  make[5]: *** [flavour_build] Error 2
  make[4]: *** [medium_build] Error 2
  make[3]: *** [subarch_build] Error 2
  make[2]: *** [all_build] Error 2
  make[2]: Leaving directory `/<<PKGBUILDDIR>>/build'
  make[1]: *** [build-images] Error 2
  make[1]: Leaving directory `/<<PKGBUILDDIR>>'
  make: *** [install] Error 2
  dpkg-buildpackage: error: fakeroot debian/rules binary-arch gave error exit status 2

  The problem is that d-i for Trusty hasn't been built for a long time
  and recent shim-signed change never been adapt into d-i for Trusty
  which explain why it no longer build properly anymore.

  When looking shim-signed pkg on Trusty, there is no presence of "/usr/lib/shim/shim.efi.signed" anymore but we see "/usr/lib/shim/shimx64.efi.signed"
  https://pastebin.canonical.com/207767/

  # debian-installer src ci=ode per release :
  t/debian-installer-20101020ubuntu318.42/build/util/efi-image:        cp /usr/lib/shim/shim.efi.signed "$workdir/boot$efi_name.efi"

  x/debian-installer-20101020ubuntu451.18/build/util/efi-image:        cp "/usr/lib/shim/shim$efi_name.efi.signed" "$workdir/boot$efi_name.efi"
  z/debian-installer-20101020ubuntu504/build/util/efi-image:        cp "/usr/lib/shim/shim$efi_name.efi.signed" "$workdir/boot$efi_name.efi"
  a/debian-installer-20101020ubuntu523.1/build/util/efi-image:        cp "/usr/lib/shim/shim$efi_name.efi.signed" "$workdir/boot$efi_name.efi"
  b/debian-installer-20101020ubuntu527/build/util/efi-image:        cp "/usr/lib/shim/shim$efi_name.efi.signed" "$workdir/boot$efi_name.efi"

  The required shim change in d-i for Trusty never been integrated which
  explain why it works as expected on all releases but Trusty.

  Trusty is the only release who still have an hard-coded no longer
  existing file and not using the "$efi_name" variable.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1743787/+subscriptions



More information about the foundations-bugs mailing list