summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd/iso-image.nix
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2020-04-09 19:43:59 -0400
committerGitHub <noreply@github.com>2020-04-09 19:43:59 -0400
commit21b50e6f6879f22b9261362bfd6dce26b7611e18 (patch)
tree45b14a4aa78e9d1a726031dc282e93f0ef9fc28b /nixos/modules/installer/cd-dvd/iso-image.nix
parent8583d99e429a99ded8c7e9433afc00cd37c27672 (diff)
downloadnixpkgs-21b50e6f6879f22b9261362bfd6dce26b7611e18.tar
nixpkgs-21b50e6f6879f22b9261362bfd6dce26b7611e18.tar.gz
nixpkgs-21b50e6f6879f22b9261362bfd6dce26b7611e18.tar.bz2
nixpkgs-21b50e6f6879f22b9261362bfd6dce26b7611e18.tar.lz
nixpkgs-21b50e6f6879f22b9261362bfd6dce26b7611e18.tar.xz
nixpkgs-21b50e6f6879f22b9261362bfd6dce26b7611e18.tar.zst
nixpkgs-21b50e6f6879f22b9261362bfd6dce26b7611e18.zip
Revert "iso-image: normalize volumeID"
Diffstat (limited to 'nixos/modules/installer/cd-dvd/iso-image.nix')
-rw-r--r--nixos/modules/installer/cd-dvd/iso-image.nix24
1 files changed, 1 insertions, 23 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index b85f20bb09b..4558b4dc955 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -417,17 +417,8 @@ in
       '';
     };
 
-    isoImage.edition = mkOption {
-      default = "";
-      description = ''
-        Specifies which edition string to use in the volume ID of the generated
-        ISO image.
-      '';
-    };
-
     isoImage.volumeID = mkOption {
-      # nixos-$EDITION-$RELEASE-$ARCH
-      default = "nixos${optionalString (config.isoImage.edition != "") "-${config.isoImage.edition}"}-${config.system.nixos.release}-${pkgs.stdenv.hostPlatform.system}";
+      default = "NIXOS_BOOT_CD";
       description = ''
         Specifies the label or volume ID of the generated ISO image.
         Note that the label is used by stage 1 of the boot process to
@@ -524,19 +515,6 @@ in
   };
 
   config = {
-    assertions = [
-      {
-        assertion = !(stringLength config.isoImage.volumeID > 32);
-        # https://wiki.osdev.org/ISO_9660#The_Primary_Volume_Descriptor
-        # Volume Identifier can only be 32 bytes
-        message = let
-          length = stringLength config.isoImage.volumeID;
-          howmany = toString length;
-          toomany = toString (length - 32);
-        in
-        "isoImage.volumeID ${config.isoImage.volumeID} is ${howmany} characters. That is ${toomany} characters longer than the limit of 32.";
-      }
-    ];
 
     boot.loader.grub.version = 2;