mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
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";
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user