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:
parent
bf5a7cdbb0
commit
d76db390c8
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue