From d76db390c89d6d208f0c652e2ddb62855bb37ed5 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Mon, 11 Oct 2021 20:39:03 +0000 Subject: [PATCH] stages/grub2.inst: ensure /var/tmp exists Ensure that `/var/tmp` exists in the build root before trying to create a file there. It seems to not be there on RHEL 7 build roots. --- stages/org.osbuild.grub2.inst | 1 + 1 file changed, 1 insertion(+) diff --git a/stages/org.osbuild.grub2.inst b/stages/org.osbuild.grub2.inst index 98c7c19b..060a762b 100755 --- a/stages/org.osbuild.grub2.inst +++ b/stages/org.osbuild.grub2.inst @@ -199,6 +199,7 @@ def core_mkimage(platform: str, prefix: str, options: Dict,): pt_label = options["partlabel"] fs_type = options["filesystem"] + os.makedirs("/var/tmp", exist_ok=True) core_path = "/var/tmp/grub2-core.img" # Create the level-2 & 3 stages of the bootloader, aka the core