Wrong order or lower layers when building overlays for OEM and third-party drivers

Bug #2039076 reported by Olivier Gayot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
Undecided
Olivier Gayot

Bug Description

When doing an offline install, ubuntu-drivers would sometimes list a package that is available in the archive but not present in the pool. This would lead to a failed install when trying to download/install such package.

This is not something we would expect since we run apt-get update (with only the pool configured when offline) in the install tree.

However, it turned out that we create the overlay with the lower layers specified in the wrong order - which essentially makes APT indexes visible in the source tree also visible in the OEM/third-party driver overlay.

When calling setup_overlay(lowers=[a, b, c]), Subiquity invokes mount with lowerdir=c:b:a (in the reverse order).

This means that c is top, b is middle and a is bottom.

For the OEM and third-party drivers, we build overlays that are based on:

    the source tree
    the configured tree
    the install tree

Unfortunately, we are stacking the lower layers in the wrong order.

Revision history for this message
Olivier Gayot (ogayot) wrote :
Changed in subiquity:
status: New → Fix Committed
assignee: nobody → Olivier Gayot (ogayot)
Olivier Gayot (ogayot)
Changed in subiquity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.