Skip to content

Commit

Permalink
build(vm): update dev-vm
Browse files Browse the repository at this point in the history
  • Loading branch information
2moe committed Apr 6, 2024
1 parent 4d4cb63 commit 7fe54c7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/vm-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,10 @@ jobs:
while {lsof disk.img} {
sleep 1
}
qemu-img convert -O qcow2 disk.img disk.qcow2
unlink disk.img
sed_args=(
-E
-e '/debian-vm-minimal/ s@(name)=.*@\1=debian-vm-dev@'
-e 's@^(external_kernel)=.*@\1=false@'
-e 's@^(\s{2,})disk\.img$@\1disk.qcow2@'
-i run
)
sed $sed_args
Expand Down Expand Up @@ -134,10 +131,14 @@ jobs:
while {lsof disk.img} {
sleep 1
}
qemu-img convert -O qcow2 disk.qcow2 disk.bak
ls -lh disk.bak disk.qcow2 ||:
mv -fv disk.qcow2 disk.bak
qemu-img convert -O qcow2 disk.img disk.qcow2
unlink disk.img
sed_args=(
-E
-e 's@^(\s{2,})disk\.img$@\1disk.qcow2@'
-i run
)
sed $sed_args
files=(
disk.qcow2
Expand Down

0 comments on commit 7fe54c7

Please sign in to comment.