From a07f2629f0a38b6277477b0002d39400d1ea1685 Mon Sep 17 00:00:00 2001 From: Joshua Powers Date: Fri, 24 Mar 2017 15:36:46 -0700 Subject: snap: allows for creating cloud-init snap Add a basic snapcraft.yaml file to allow the execution of cloud-init as a snap. This will always pull down the latest source from master for the snap. setup.py will now also set the default init system to be systemd when no other is passed to it. --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index e6693c90..32a44d94 100755 --- a/setup.py +++ b/setup.py @@ -138,9 +138,7 @@ class InitsysInstallData(install): self.init_system = self.init_system.split(",") if len(self.init_system) == 0: - raise DistutilsArgError( - ("You must specify one of (%s) when" - " specifying init system(s)!") % (", ".join(INITSYS_TYPES))) + self.init_system = ['systemd'] bad = [f for f in self.init_system if f not in INITSYS_TYPES] if len(bad) != 0: -- cgit v1.2.3