cloud-init: Fix growpart support
This commit is contained in:
parent
5083a75a92
commit
27e05f98fc
@ -1,4 +1,4 @@
|
|||||||
{ lib, pythonPackages, fetchurl, kmod, systemd }:
|
{ lib, pythonPackages, fetchurl, kmod, systemd, cloud-utils }:
|
||||||
|
|
||||||
let version = "0.7.9";
|
let version = "0.7.9";
|
||||||
|
|
||||||
@ -20,6 +20,9 @@ in pythonPackages.buildPythonApplication rec {
|
|||||||
--replace /etc $out/etc \
|
--replace /etc $out/etc \
|
||||||
--replace /lib/systemd $out/lib/systemd \
|
--replace /lib/systemd $out/lib/systemd \
|
||||||
--replace 'self.init_system = ""' 'self.init_system = "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
|
propagatedBuildInputs = with pythonPackages; [ cheetah jinja2 prettytable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user