From 8c84af971d1cdfb148b37f548beaf1eca3d74ced Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 16 Jun 2014 17:51:30 +0100 Subject: Add '--' when calling run-parts to specify the end of the options. Using '--' we prevent passing options in SYSTEM_INTEGRATION_PATH. --- morphlib/builder2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morphlib/builder2.py b/morphlib/builder2.py index f8969973..0248b7de 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -743,7 +743,7 @@ class SystemBuilder(BuilderBase): # pragma: no cover mounted.append(path) self.app.runcmd(['chroot', rootdir, 'sh', '-c', - 'cd / && run-parts "$1"', '-', SYSTEM_INTEGRATION_PATH], + 'cd / && run-parts -- "$1"', '-', SYSTEM_INTEGRATION_PATH], env=env) except BaseException, e: self.app.status( -- cgit v1.2.1