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.
This commit is contained in:
Christian Kellner 2021-10-11 20:39:03 +00:00
parent bf5a7cdbb0
commit d76db390c8

View file

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