From db89554357b346e070394707745e48941f836e24 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 24 May 2023 11:17:47 -0700 Subject: [PATCH] _support_server: only create temp dir when needed Signed-off-by: Adam Williamson --- tests/_support_server.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_support_server.pm b/tests/_support_server.pm index 05475efc..c33cd025 100644 --- a/tests/_support_server.pm +++ b/tests/_support_server.pm @@ -23,11 +23,11 @@ sub _pxe_setup { # install and configure bootloaders my $ourversion = get_var("CURRREL"); my $testversion = get_var("RELEASE"); - assert_script_run "mkdir -p /var/tmp/fedora"; my $arch = get_var("ARCH"); if ($arch eq 'x86_64') { # x86_64: use syslinux for BIOS, grub2 with 'linuxefi' for UEFI + assert_script_run "mkdir -p /var/tmp/fedora"; assert_script_run "mkdir -p /var/lib/tftpboot/pxelinux.cfg"; # install bootloader packages assert_script_run "dnf -y install syslinux", 120;