Skip to content

Commit e718b32

Browse files
authored
Merge branch 'main' into feat/678-implement-gpu-passthrough
2 parents 5399b67 + 86fadc6 commit e718b32

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/integration-test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ jobs:
3838
sudo microceph.ceph osd set $flag
3939
done
4040
41-
# Repurpose the ephemeral disk for ceph OSD.
42-
sudo swapoff /mnt/swapfile
43-
ephemeral_disk="$(findmnt --noheadings --output SOURCE --target /mnt | sed 's/[0-9]\+$//')"
44-
sudo microceph disk add --wipe "${ephemeral_disk}"
41+
# Create a loop device for Ceph OSD
42+
CEPH_OSD_IMG=~/ceph-osd.img
43+
CEPH_OSD_SIZE_GIB=10
44+
45+
dd if=/dev/zero of="$CEPH_OSD_IMG" bs=1M count=$((CEPH_OSD_SIZE_GIB*1024)) status=progress
46+
sync
47+
LOOP=$(sudo losetup --find --show "$CEPH_OSD_IMG")
48+
sudo microceph disk add --wipe "${LOOP}"
4549
sudo rm -rf /etc/ceph
4650
sudo ln -s /var/snap/microceph/current/conf/ /etc/ceph
4751
sudo microceph enable rgw

0 commit comments

Comments
 (0)