Skip to content

Commit 7811740

Browse files
authored
Merge pull request coreos#937 from HuijingHei/ci-get-esp
ci: get esp part using `sfdisk`
2 parents f2c8d4c + e5a02cf commit 7811740

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ jobs:
6767
--disable-selinux --generic-image --via-loopback /target/myimage.raw
6868
# Verify we installed grub.cfg and shim on the disk
6969
sudo losetup -P -f myimage.raw
70-
device=$(losetup --list --noheadings --output NAME,BACK-FILE | grep myimage.raw | awk '{print $1}')
71-
sudo mount "${device}p2" /mnt/
70+
device=$(losetup -a myimage.raw --output NAME -n)
71+
esp_part=$(sudo sfdisk -l -J "${device}" | jq -r '.partitiontable.partitions[] | select(.type == "C12A7328-F81F-11D2-BA4B-00A0C93EC93B").node')
72+
sudo mount "${esp_part}" /mnt/
7273
arch="$(uname --machine)"
7374
if [[ "${arch}" == "x86_64" ]]; then
7475
shim="shimx64.efi"

ci/Containerfile.c9s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ WORKDIR /build
88
# We aren't using the full recommendations there, just the simple bits.
99
RUN --mount=type=cache,target=/build/target --mount=type=cache,target=/var/roothome make && make bin-archive && mkdir -p /out && cp target/bootupd.tar.zst /out
1010

11-
FROM quay.io/centos-bootc/centos-bootc-dev:stream9
11+
FROM quay.io/centos-bootc/centos-bootc:stream9
1212
COPY --from=build /out/bootupd.tar.zst /tmp
1313
RUN tar -C / --zstd -xvf /tmp/bootupd.tar.zst && rm -rvf /tmp/*

0 commit comments

Comments
 (0)