From 68afbf9d6385032be9fc368dbfa4ad4ba2cc45e0 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 2 Feb 2021 17:40:46 -0500 Subject: [PATCH] installer: add deprecation warning about sd-card file move --- .../installer/cd-dvd/sd-image-aarch64-new-kernel.nix | 9 +++++++++ nixos/modules/installer/cd-dvd/sd-image-aarch64.nix | 9 +++++++++ .../installer/cd-dvd/sd-image-armv7l-multiplatform.nix | 9 +++++++++ nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix | 9 +++++++++ nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix | 9 +++++++++ nixos/modules/installer/cd-dvd/sd-image.nix | 9 +++++++++ 6 files changed, 54 insertions(+) diff --git a/nixos/modules/installer/cd-dvd/sd-image-aarch64-new-kernel.nix b/nixos/modules/installer/cd-dvd/sd-image-aarch64-new-kernel.nix index 923c775c17a8..a669d61571fe 100644 --- a/nixos/modules/installer/cd-dvd/sd-image-aarch64-new-kernel.nix +++ b/nixos/modules/installer/cd-dvd/sd-image-aarch64-new-kernel.nix @@ -1,5 +1,14 @@ +{ config, ... }: { imports = [ ../sd-card/sd-image-aarch64-new-kernel-installer.nix ]; + config = { + warnings = [ + '' + .../cd-dvd/sd-image-aarch64-new-kernel.nix is deprecated and will eventually be removed. + Please switch to .../sd-card/sd-image-aarch64-new-kernel-installer.nix, instead. + '' + ]; + }; } diff --git a/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix b/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix index b2062801021e..76c1509b8f7e 100644 --- a/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix +++ b/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix @@ -1,5 +1,14 @@ +{ config, ... }: { imports = [ ../sd-card/sd-image-aarch64-installer.nix ]; + config = { + warnings = [ + '' + .../cd-dvd/sd-image-aarch64.nix is deprecated and will eventually be removed. + Please switch to .../sd-card/sd-image-aarch64-installer.nix, instead. + '' + ]; + }; } diff --git a/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix b/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix index 15ddf0ad23b3..6ee0eb9e9b8d 100644 --- a/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix +++ b/nixos/modules/installer/cd-dvd/sd-image-armv7l-multiplatform.nix @@ -1,5 +1,14 @@ +{ config, ... }: { imports = [ ../sd-card/sd-image-armv7l-multiplatform-installer.nix ]; + config = { + warnings = [ + '' + .../cd-dvd/sd-image-armv7l-multiplatform.nix is deprecated and will eventually be removed. + Please switch to .../sd-card/sd-image-armv7l-multiplatform-installer.nix, instead. + '' + ]; + }; } diff --git a/nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix b/nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix index 3a67546a50f5..747440ba9c61 100644 --- a/nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix +++ b/nixos/modules/installer/cd-dvd/sd-image-raspberrypi.nix @@ -1,5 +1,14 @@ +{ config, ... }: { imports = [ ../sd-card/sd-image-raspberrypi-installer.nix ]; + config = { + warnings = [ + '' + .../cd-dvd/sd-image-raspberrypi.nix is deprecated and will eventually be removed. + Please switch to .../sd-card/sd-image-raspberrypi-installer.nix, instead. + '' + ]; + }; } diff --git a/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix b/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix index e57bc37a45db..79db1fa29bc4 100644 --- a/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix +++ b/nixos/modules/installer/cd-dvd/sd-image-raspberrypi4.nix @@ -1,5 +1,14 @@ +{ config, ... }: { imports = [ ../sd-card/sd-image-raspberrypi4-installer.nix ]; + config = { + warnings = [ + '' + .../cd-dvd/sd-image-raspberrypi4.nix is deprecated and will eventually be removed. + Please switch to .../sd-card/sd-image-raspberrypi4-installer.nix, instead. + '' + ]; + }; } diff --git a/nixos/modules/installer/cd-dvd/sd-image.nix b/nixos/modules/installer/cd-dvd/sd-image.nix index aca446d097d3..e2d6dcb3fe3a 100644 --- a/nixos/modules/installer/cd-dvd/sd-image.nix +++ b/nixos/modules/installer/cd-dvd/sd-image.nix @@ -1,5 +1,14 @@ +{ config, ... }: { imports = [ ../sd-card/sd-image.nix ]; + config = { + warnings = [ + '' + .../cd-dvd/sd-image.nix is deprecated and will eventually be removed. + Please switch to .../sd-card/sd-image.nix, instead. + '' + ]; + }; }