Skip to content

Commit

Permalink
hack
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed May 1, 2024
1 parent 0113a68 commit 4b7584c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build-katsu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,16 @@ jobs:
- name: ${{ env.KATSU_BUILD_TASK_NAME }}
run: |
modprobe loop max_part=63 || true
LOOPDEV=$(losetup --partscan --find --show "$IMAGE")
lsblk --raw --output "NAME,MAJ:MIN" --noheadings $LOOPDEV | tail -n +2 | while read dev node;
do
MAJ=$(echo $node | cut -d: -f1)
MIN=$(echo $node | cut -d: -f2)
[ ! -e "/dev/$dev" ] && mknod "/dev/$dev" b $MAJ $MIN
done
pushd katsu
KATSU_LOG=trace katsu -v --output=disk-image modules/${{ matrix.variant }}-${{ matrix.arch }}.yaml
KATSU_LOG=trace katsu -v --output=disk-image "modules/${{ matrix.variant }}-${{ matrix.arch }}.yaml"
popd
- name: Upload Artifact
Expand Down Expand Up @@ -139,7 +147,7 @@ jobs:
- name: ${{ env.KATSU_BUILD_TASK_NAME }}
run: |
pushd katsu
KATSU_LOG=trace katsu -v --output=iso modules/${{ matrix.variant }}.yaml
KATSU_LOG=trace katsu -v --output=iso "modules/${{ matrix.variant }}.yaml"
# get the ISO name, and then append the arch
# e.g. flagship-live.iso -> flagship-live-x86_64.iso
Expand Down

0 comments on commit 4b7584c

Please sign in to comment.