1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-29 09:03:08 +00:00

_support_server: only create temp dir when needed

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-05-24 11:17:47 -07:00
parent ed5e1e28dc
commit db89554357

View File

@ -23,11 +23,11 @@ sub _pxe_setup {
# install and configure bootloaders # install and configure bootloaders
my $ourversion = get_var("CURRREL"); my $ourversion = get_var("CURRREL");
my $testversion = get_var("RELEASE"); my $testversion = get_var("RELEASE");
assert_script_run "mkdir -p /var/tmp/fedora";
my $arch = get_var("ARCH"); my $arch = get_var("ARCH");
if ($arch eq 'x86_64') { if ($arch eq 'x86_64') {
# x86_64: use syslinux for BIOS, grub2 with 'linuxefi' for UEFI # 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"; assert_script_run "mkdir -p /var/lib/tftpboot/pxelinux.cfg";
# install bootloader packages # install bootloader packages
assert_script_run "dnf -y install syslinux", 120; assert_script_run "dnf -y install syslinux", 120;