1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 14:23:11 +00:00

Don't assume tty is present

This commit is contained in:
Darren Shepherd
2021-10-23 00:16:51 -07:00
parent 8159c29d9b
commit 5a216b8ac4

View File

@@ -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