about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJean-François Roche <jfroche@pyxel.be>2023-04-25 13:33:29 +0200
committerGitHub <noreply@github.com>2023-04-25 13:33:29 +0200
commit25671114cd9266e27b2609d94babdc66f52357a6 (patch)
tree2c3f408c51548552779bd8cf64417e28effb4706 /nixos
parentc1e467b13c66c71a00e7fd12bcd168be32d55cb2 (diff)
cloud-init: add udhcpc support (#226216)
* cloud-init: 22.4 -> 23.1.1

* cloud-init: add udhcpc support

Cloud-init use as dhcp client, dhclient, which is coming from the unmaintained package, isc-dhcp-client (refer https://www.isc.org/dhcp/) which ended support in 2022. dhclient is deprecated in nixos

Add patch to use `udhcpc` dhcp client coming from busybox instead.

PR based on #226173

refs #215571

upstream PR: https://github.com/canonical/cloud-init/pull/2125
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/system/cloud-init.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/system/cloud-init.nix b/nixos/modules/services/system/cloud-init.nix
index d75070dea4346..82506596bc7f6 100644
--- a/nixos/modules/services/system/cloud-init.nix
+++ b/nixos/modules/services/system/cloud-init.nix
@@ -10,6 +10,7 @@ let cfg = config.services.cloud-init;
       openssh
       shadow
       util-linux
+      busybox
     ] ++ optional cfg.btrfs.enable btrfs-progs
       ++ optional cfg.ext4.enable e2fsprogs
     ;