forked from ungleich-public/cdist
create output directory, if it does not exist
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
55f26cbe25
commit
b125c0a4f2
1 changed files with 7 additions and 0 deletions
|
@ -194,14 +194,21 @@ cp -L "$src" "$real_dst"
|
||||||
log.info("Creating initramfs ...")
|
log.info("Creating initramfs ...")
|
||||||
subprocess.check_call(cmd, shell=True)
|
subprocess.check_call(cmd, shell=True)
|
||||||
|
|
||||||
|
def ensure_out_dir_exists(self):
|
||||||
|
os.makedirs(self.out_dir, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
def create_iso(self, out_dir):
|
def create_iso(self, out_dir):
|
||||||
self.out_dir = out_dir
|
self.out_dir = out_dir
|
||||||
|
|
||||||
|
self.ensure_out_dir_exists()
|
||||||
|
|
||||||
raise cdist.Error("Generating ISO is not yet supported")
|
raise cdist.Error("Generating ISO is not yet supported")
|
||||||
|
|
||||||
def create_pxe(self, out_dir):
|
def create_pxe(self, out_dir):
|
||||||
self.out_dir = out_dir
|
self.out_dir = out_dir
|
||||||
|
|
||||||
|
self.ensure_out_dir_exists()
|
||||||
self.create_kernel()
|
self.create_kernel()
|
||||||
self.create_initramfs()
|
self.create_initramfs()
|
||||||
self.create_pxeconfig()
|
self.create_pxeconfig()
|
||||||
|
|
Loading…
Reference in a new issue