[elbe-devel] [PATCH v2 1/5] Add options for building ISO image
dion at linutronix.de
dion at linutronix.de
Thu Jul 18 14:07:58 CEST 2019
From: Olivier Dion <dion at linutronix.de>
ISO images are built in 'RepoBase.buildiso'. Adding an optional
arguments 'options' defaulted to the empty string, allowed the callers
to pass options to 'genisoimage'.
The options must be a valid shell string passed as direct argument to
'genisoimage', e.g. options="-V 'MYVOLUMEID'".
Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Kurt Kanzenbach <kurt at linutronix.de>
---
elbepack/repomanager.py | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index 1969c8f9..b7ac15b5 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -317,21 +317,20 @@ class RepoBase(object):
def include_init_dsc(self, path, component="main"):
self._includedsc(path, self.init_attr.codename, component)
- def buildiso(self, fname):
+ def buildiso(self, fname, options=""):
files = []
if self.volume_count == 0:
new_path = '"' + self.fs.path + '"'
- self.log.do(
- "genisoimage -o %s -J -joliet-long -R %s" %
- (fname, new_path))
+ self.log.do("genisoimage %s -o %s -J -joliet-long -R %s" %
+ (options, fname, new_path))
files.append(fname)
else:
for i in range(self.volume_count + 1):
volfs = self.get_volume_fs(i)
newname = fname + ("%02d" % i)
self.log.do(
- "genisoimage -o %s -J -joliet-long -R %s" %
- (newname, volfs.path))
+ "genisoimage %s -o %s -J -joliet-long -R %s" %
+ (options, newname, volfs.path))
files.append(newname)
return files
--
2.11.0
More information about the elbe-devel
mailing list