Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/Dockerfile.x86_64-unknown-linux-gnu
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:16.04
FROM ubuntu:20.04

COPY common.sh /
RUN /common.sh
Expand Down
7 changes: 6 additions & 1 deletion docker/linux-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ main() {
;;
x86_64)
arch=amd64
kernel="${kversion}-amd64"
#kernel="${kversion}-amd64"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While building an image with ubuntu 20.04 it fails to find some packages. Adding this allows it to find them, and the kernel bump was necessary for the image to build locally. Also, as far as I can see there is only one docker image using amd64 that is using this script so these changes will have no effect on other images

kernel="5.4.0-52-generic"
debsource="deb http://no.archive.ubuntu.com/ubuntu/ focal main restricted"
debsource="${debsource}\ndeb http://no.archive.ubuntu.com/ubuntu/ focal-updates main restricted"
debsource="${debsource}\ndeb http://no.archive.ubuntu.com/ubuntu/ focal universe"
debsource="${debsource}\ndeb http://no.archive.ubuntu.com/ubuntu/ focal-updates universe"
;;
*)
echo "Invalid arch: ${arch}"
Expand Down