From ada9b3b666e58158223686be37d8641c42748575 Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Sun, 10 Jan 2016 11:35:44 +0200 Subject: [PATCH] azure-image: azure resource manager doesn't base64-encode custom data, unlike azure service manager --- nixos/modules/virtualisation/azure-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/azure-image.nix b/nixos/modules/virtualisation/azure-image.nix index 1ab869cd6a88..08944e641d76 100644 --- a/nixos/modules/virtualisation/azure-image.nix +++ b/nixos/modules/virtualisation/azure-image.nix @@ -105,7 +105,7 @@ in path = [ pkgs.coreutils ]; script = '' - eval "$(base64 --decode /metadata/CustomData.bin)" + eval "$(cat /metadata/CustomData.bin)" if ! [ -z "$ssh_host_ecdsa_key" ]; then echo "downloaded ssh_host_ecdsa_key" echo "$ssh_host_ecdsa_key" > /etc/ssh/ssh_host_ed25519_key