New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu image kernel updates aren't found by dist-upgrade #975
Comments
I don't think it's going to be possible to prevent the installation of The best approach I can think of is using the dpkg ( |
Great repro and definitely something for us to think about as I don't think the consequences of that line were ever taken into account especially with longer lived boxes. I expect that the dpkg exclude is probably the best call but we'll give this a look for the next release. |
Finally getting around to working on this today and should have this tested/PRed by the end of the week. |
This is looking promising, running a few more tests but this looks good so far #987 |
Many thanks! |
Hi!
STR:
mkdir bento-test && cd bento-test
vagrant init bento/ubuntu-16.04
vagrant up
vagrant ssh
uname -r
sudo apt-get update
sudo apt-get dist-upgrade
(Using: Windows 10 host, Vagrant 2.0.1, Virtualbox 5.2.2, bento/ubuntu-16.04 v201801.02.0)
Expected:
That the
dist-upgrade
command offer to upgrade the existing4.4.0-87-generic
kernel to the newly released4.4.0-109-generic
- ie the list of packages to be updated should includelinux-image-generic
andlinux-image-4.4.0-109-generic
.Actual:
No kernel package updates are offered:
Initially I thought that perhaps it's just too soon after the packages were released, however they are available:
Manually running
sudo apt-get install linux-image-generic --no-install-recommends
and then rebooting successfully installs the latest kernel.The problem appears to be that the Ubuntu build cleanup step also removes
linux-image-generic
when removing/purginglinux-firmware
here:bento/ubuntu/scripts/cleanup.sh
Lines 45 to 46 in 4e5a5a5
Without this virtual package,
dist-upgrade
has no way of knowing that the installedlinux-image-4.4.0-87-generic
package is now superseded by another package with a different name (linux-image-4.4.0-109-generic
) - so doesn't think there are any kernel updates available.To prove it's that cleanup step causing the issue, manual install
linux-image-generic
(which sadly has a dep onlinux-firmware
, so re-installs that too), and then repeat what the cleanup script does, like so:It may be that this is unavoidable (if wanting to reduce image size by removing the firmware), but if it's seen as an intentional/acceptable trade-off (given new Bento box versions will come with the newer kernel releases anyway) it would be good to document in the README.
Many thanks :-)
The text was updated successfully, but these errors were encountered: