mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Make directory exist before creating file
This commit is contained in:
parent
3aea1ec7d6
commit
c0cc673c63
@ -187,6 +187,7 @@ def update_boot_linux(profiledir, profile, label):
|
||||
profiledir + '/boot/boot/grub.cfg'
|
||||
]
|
||||
for grubcfgpth in grubcfgpath:
|
||||
os.makedirs(os.path.dirname(grubcfgpth), 0o755, exist_ok=True)
|
||||
with open(grubcfgpth, 'w') as grubout:
|
||||
grubout.write(grubcfg)
|
||||
ipxeargs = kernelargs
|
||||
|
Loading…
Reference in New Issue
Block a user