Skip to content

Commit

Permalink
ci - debug no-gdisk mounting...
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileskyfi authored Sep 24, 2024
1 parent 6b7304e commit 66ea4df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion no-gdisk
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ rm -rf /tmp/chr-$ROSVER.im*

modprobe nbd
qemu-nbd -c /dev/nbd0 chr-$ROSVER.qcow2
echo "/dev..."
ls /dev

rm -rf /tmp/tmp*

Expand All @@ -39,10 +41,15 @@ mount /dev/nbd0p2 /tmp/tmpmount/
mkdir diskfiles/part2
rsync -a /tmp/tmpmount/ ./diskfiles/part2/
umount /dev/nbd0p2

echo "/tmp..."
ls /tmp
echo "/diskfiles..."
ls diskfiles
rm -rf /tmp/tmp*

echo "unmount orginal image"
qemu-nbd -d /dev/nbd0
sleep 2

echo "created file chr.qcow2, now back to raw but uncompressed..."
qemu-img convert -f qcow2 -O raw chr-$ROSVER.qcow2 chr-$ROSVER.uefi-fat.raw
Expand Down

0 comments on commit 66ea4df

Please sign in to comment.