anchor.diff:  
   with lib;
   
  -let cfg = config.ec2; in
  +let
  +
  +  cfg = config.ec2;
  +
  +  udhcpcScript = pkgs.writeScript "udhcp-script"
  +    ''
  +      #! /bin/sh
  +      if [ "$1" = bound ]; then
  +        ip address add "$ip/$mask" dev "$interface"
  +        if [ -n "$router" ]; then
  +          ip route add default via "$router" dev "$interface"
  +        fi
  +        if [ -n "$dns" ]; then
  +          rm -f /etc/resolv.conf
  +          for i in $dns; do
  +            echo "nameserver $dns" >> /etc/resolv.conf
  +          done
  +        fi
  +      fi
  +    '';
  +
  +in
   
   {
     imports = [ ../profiles/headless.nix ./ec2-data.nix ./amazon-grow-partition.nix ./amazon-init.nix ];
  
positive.code:       autoResize = true;
      };
  
      boot.initrd.kernelModules = [ "xen-blkfront" ];
      boot.kernelModules = [ "xen-netfront" ];
      boot.kernelParams = mkIf cfg.hvm [ "console=ttyS0" ];
  
      # Prevent the nouveau kernel module from being loaded, as it
  
negative.code:             mkdir -m 1777 -p $targetRoot/$diskForUnionfs/root/tmp $targetRoot/tmp
              mount --bind $targetRoot/$diskForUnionfs/root/tmp $targetRoot/tmp
  
              if [ "$(cat "$metaDir/ami-manifest-path")" != "(unknown)" ]; then
                  mkdir -m 755 -p $targetRoot/$diskForUnionfs/root/var $targetRoot/var
                  mount --bind $targetRoot/$diskForUnionfs/root/var $targetRoot/var
  
  