From 27e05f98fc379a601aadfda8fefb75dbf1779d22 Mon Sep 17 00:00:00 2001 From: Philipp Hausmann Date: Fri, 21 Apr 2017 12:48:02 +0200 Subject: [PATCH] cloud-init: Fix growpart support --- pkgs/tools/virtualization/cloud-init/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/virtualization/cloud-init/default.nix b/pkgs/tools/virtualization/cloud-init/default.nix index 60f38bb1802f..94dae1e47faa 100644 --- a/pkgs/tools/virtualization/cloud-init/default.nix +++ b/pkgs/tools/virtualization/cloud-init/default.nix @@ -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