sd-image: Adds removed options for removed options
This will keep configuration configuring the size of the /boot partition
still build, while showing the deprecation warning.
In 99.9% of cases I assume ignoring the configuration is better, as the
sd-image builder already is pretty opinionated in that matter.
commit288118cdfa35df235b1442ca9e535711ad7bf371
authorSamuel Dionne-Riel <samuel@dionne-riel.com>
dateSun 16 Jun 2019, 17:45 (7 years ago)
parentc113c09
nixos/modules/installer/cd-dvd/sd-image.nix+5
@@ -25,6 +25,11 @@ let
2525 });
2626in
2727{
28+ imports = [
29+ (mkRemovedOptionModule [ "sdImage" "bootPartitionID" ] "The FAT partition for SD image now only holds the Raspberry Pi firmware files. Use firmwarePartitionID to configure that partition's ID.")
30+ (mkRemovedOptionModule [ "sdImage" "bootSize" ] "The boot files for SD image have been moved to the main ext4 partition. The FAT partition now only holds the Raspberry Pi firmware files. Changing its size may not be required.")
31+ ];
32+
2833 options.sdImage = {
2934 imageName = mkOption {
3035 default = "${config.sdImage.imageBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}.img";