From ab29b6527f8339068838416c5d75fc8f28933512 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Thu, 5 Jun 2014 15:51:43 -0500 Subject: [PATCH] nixos-iso: Use a simpler disk label When formatting a nixos usb using my windows machine I noticed that the disk labeling using periods was not compatible with my linux kernel / udev recognition. When labeling a volume NIXOS_14.10 under Windows, it would show up as NIXOS_14_10 on NixOS. This meant that /dev/root would never come up at boot time, preventing the livecd from starting. This patch works around this issue by eliminating any special characters other than underscores. The previous versioning didn't seem all that useful, especially when consdering there are many different version of the year.month named iso. --- nixos/modules/installer/cd-dvd/installation-cd-base.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/cd-dvd/installation-cd-base.nix b/nixos/modules/installer/cd-dvd/installation-cd-base.nix index eb7c4026857b..4d87c20559d6 100644 --- a/nixos/modules/installer/cd-dvd/installation-cd-base.nix +++ b/nixos/modules/installer/cd-dvd/installation-cd-base.nix @@ -19,7 +19,7 @@ with lib; # ISO naming. isoImage.isoName = "${config.isoImage.isoBaseName}-${config.system.nixosVersion}-${pkgs.stdenv.system}.iso"; - isoImage.volumeID = substring 0 11 "NIXOS_${config.system.nixosVersion}"; + isoImage.volumeID = substring 0 11 "NIXOS_ISO"; # Make the installer more likely to succeed in low memory # environments. The kernel's overcommit heustistics bite us