Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
Don't assume tty is present
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Oct 23, 2021
1 parent 8159c29 commit 5a216b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ros-image-build
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,12 @@ iso()
qcow()
{
ID=qcow-${RANDOM}
if docker run -it --device /dev/kvm busybox /bin/true; then
if docker run -i --device /dev/kvm busybox /bin/true; then
build --target qcow-build --build-arg ACCEL=kvm -t $ID
docker run --net=host -it --device /dev/kvm --name $ID $ID
docker run --net=host -i --device /dev/kvm --name $ID $ID
else
build --target qcow-build --build-arg ACCEL=tcg -t $ID
docker run --net=host -it --name $ID $ID
docker run --net=host -i --name $ID $ID
fi || {
docker rm -fv $ID
docker rmi $ID
Expand Down

0 comments on commit 5a216b8

Please sign in to comment.