Skip to content

Commit

Permalink
ubuntu/scripts/setup-bootloader:
Browse files Browse the repository at this point in the history
- update package lists before attempting to install
  the kernel.

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

- updated copyright year to 2024.
  • Loading branch information
alanbach committed Aug 28, 2024
1 parent eb27155 commit 0faf714
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 0faf714

Please sign in to comment.