cloud-init: Fix growpart support

This commit is contained in:
Philipp Hausmann 2017-04-21 12:48:02 +02:00
parent 5083a75a92
commit 27e05f98fc

View File

@ -1,4 +1,4 @@
{ lib, pythonPackages, fetchurl, kmod, systemd }:
{ lib, pythonPackages, fetchurl, kmod, systemd, cloud-utils }:
let version = "0.7.9";
@ -20,6 +20,9 @@ in pythonPackages.buildPythonApplication rec {
--replace /etc $out/etc \
--replace /lib/systemd $out/lib/systemd \
--replace 'self.init_system = ""' 'self.init_system = "systemd"'
substituteInPlace cloudinit/config/cc_growpart.py \
--replace 'util.subp(["growpart"' 'util.subp(["${cloud-utils}/bin/growpart"'
'';
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable