Skip to content
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

feat: Move bootloader off (our own) dockerhub (image) #2475

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion ic-os/bootloader/build-bootloader-tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ sudo mount -t tmpfs tmpfs-podman "${TMPFS}"
trap 'rm -rf "${TMPDIR}"; sudo podman --root "${TMPFS}" rm -f "${CONTAINER}"' exit
TMPDIR=$(mktemp -d -t build-image-XXXXXXXXXXXX)

BASE_IMAGE="docker.io/dfinity/ic-build-bazel@sha256:1978886cfda51b09057bffd60f2e5edb588c6c0b74de87696cd4e964335dba87"
BASE_IMAGE="docker.io/ubuntu@sha256:5d070ad5f7fe63623cbb99b4fc0fd997f5591303d4b03ccce50f403957d0ddc4"
Copy link
Member

Choose a reason for hiding this comment

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

Can you use this image? Or/and maybe just try updating it to this sha256.


sudo podman --root "${TMPFS}" build --iidfile ${TMPDIR}/iidfile - <<<"
FROM $BASE_IMAGE
USER root:root
RUN apt-get -y update && apt-get -y --no-install-recommends install grub-efi faketime
RUN mkdir -p /build/boot/grub
RUN cp -r /usr/lib/grub/x86_64-efi /build/boot/grub
RUN mkdir -p /build/boot/efi/EFI/Boot
Expand Down
2 changes: 1 addition & 1 deletion ic-os/bootloader/grub.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
regexp -s boot_disk '^\(([a-z0-9]*),[a-z0-9]*\)/EFI/BOOT' $cmdpath
regexp -s boot_disk '^\(([a-z0-9]*),[a-z0-9]*\)/EFI/BOOT' $fw_path

set prefix=($boot_disk,gpt2)

Expand Down
Loading