Skip to content

Commit

Permalink
fix: ubuntu kernel installation failures (#259)
Browse files Browse the repository at this point in the history
ubuntu/scripts/setup-bootloader:

- update package lists before attempting to install the kernel.

- This ensures images built a while back do no fail to install the
kernel due to outdated lists.

- updated copyright year to 2024.
  • Loading branch information
alanbach authored Aug 29, 2024
1 parent eb27155 commit 9046979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ubuntu/scripts/setup-bootloader
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# Author: Alexsander de Souza <[email protected]>
#
# Copyright (C) 2023 Canonical
# Copyright (C) 2024 Canonical
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
Expand All @@ -25,6 +25,8 @@ export DEBIAN_FRONTEND=noninteractive
rm /var/cache/debconf/config.dat
dpkg --configure -a

# Update the package lists before attempting to install the kernel
apt-get update
# Ensure the existence of linux-image-generic for non-cloudimg images.
apt-get -y install linux-image-generic

Expand Down

0 comments on commit 9046979

Please sign in to comment.