From 550e2744ab245406d7bc5bfc13b01406781bf870 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 17 Feb 2022 23:53:00 +0100 Subject: test/distro/ubuntu: Use DEBIAN_FRONTEND=noninteractive for apt on 22.04 Removing the needrestart package doesn't seem to work anymore, and I'm getting again prompts to restart services after installing gcc and make: export DEBIAN_FRONTEND=noninteractive before installing packages to avoid that. Signed-off-by: Stefano Brivio --- test/distro/ubuntu | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/distro/ubuntu b/test/distro/ubuntu index b67c1f3..781daab 100644 --- a/test/distro/ubuntu +++ b/test/distro/ubuntu @@ -187,6 +187,7 @@ host guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/ host ./qrap 5 qemu-system-s390x -m 2048 -smp 2 -serial stdio -nodefaults -nographic __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-ccw host service systemd-resolved stop +host export DEBIAN_FRONTEND=noninteractive host apt-get -y remove needrestart snapd host dhclient sleep 2 -- cgit v1.2.3