summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2013-07-25 17:01:57 -0400
committerScott Moser <smoser@ubuntu.com>2013-07-25 17:01:57 -0400
commit60dfcb852c3dafdcf3563cc3e6c631dfbc2bafd8 (patch)
treef4ba0644b2d7fd9920e8bfa160bc9cccb401c913 /packages
parent068009432909ae54b42e2cb56ec6557b04c677b0 (diff)
downloadvyos-cloud-init-60dfcb852c3dafdcf3563cc3e6c631dfbc2bafd8.tar.gz
vyos-cloud-init-60dfcb852c3dafdcf3563cc3e6c631dfbc2bafd8.zip
add --init-sytem to ./packages/bddeb
this way you can now do ./package/bddeb --init-system=sysvinit_deb
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/bddeb8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/bddeb b/packages/bddeb
index 00bc717e..7bf59fcd 100755
--- a/packages/bddeb
+++ b/packages/bddeb
@@ -94,12 +94,20 @@ def main():
default=False,
action='store_true')
+ parser.add_argument("--init-system", dest="init_system",
+ help=("build deb with INIT_SYSTEM=xxx"
+ " (default: %(default)s"),
+ default=os.environ.get("INIT_SYSTEM", "upstart"))
+
+
for ent in DEBUILD_ARGS:
parser.add_argument(ent, dest="debuild_args", action='append_const',
const=ent, help=("pass through '%s' to debuild" % ent))
args = parser.parse_args()
+ os.environ['INIT_SYSTEM'] = args.init_system
+
capture = True
if args.verbose:
capture = False