update-grub run multiple times during distribution upgrade

Bug #1310087 reported by Wolter HV
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
New
Undecided
Unassigned

Bug Description

During a system distribution upgrade, the grub boot list is built and rebuilt multiple times. It seems it is built first after installing the newest linux kernel, and then after each removal of an older (obsolete) kernel.

Description: Ubuntu 14.04 LTS
Release: 14.04

update-manager:
  Installed: 1:0.196.11
  Candidate: 1:0.196.11
  Version table:
 *** 1:0.196.11 0
        500 http://ubuntu.mirror.frontiernet.net/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

It is expected to have the grub boot list built only once.

Wolter HV (wolterh)
tags: added: dist-upgrade
affects: update-manager (Ubuntu) → ubuntu-release-upgrader (Ubuntu)
summary: - Grub boot list built multiple times during distribution upgrade
+ update-grub run multiple times during distribution upgrade
Logan Rosen (logan)
tags: removed: upgrade-software-version
Revision history for this message
Peter Cordes (peter-cordes) wrote :

This kind of thing happens because each package has scripts to make sure needed stuff gets done, and there's no mechanism for telling it that more things are going to change again later.

 do-release-upgrade doesn't know the details of what every package does in its postinst. Things don't happen in one giant set of installs and removals; instead there are smaller batches of changes to minimize how much stuff has to run while there are broken dependencies.

 Is there a way to flag launchpad bugs as wishlist? Even if so, it's hard to imagine any way to minimize repeated work without making it more vulnerable to being left broken on errors / interruptions.

Revision history for this message
Wolter HV (wolterh) wrote :

Well it appeared to me that each call to update grub was independent from the others, since each was for a different application. So it occurred to me that perhaps these could all be queued up and perhaps the upgrade would perform quicker. What are your thoughts?

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.