summary refs log tree commit diff
path: root/nixos/modules/installer
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-06-05 15:51:43 -0500
committerWilliam A. Kennington III <william@wkennington.com>2014-06-08 15:53:45 -0500
commitab29b6527f8339068838416c5d75fc8f28933512 (patch)
tree25b3cca890e4b08bff1e6bb06e1b72f7024bb3df /nixos/modules/installer
parente68a5b265a96134243a1572f43dfc4ff75dd082b (diff)
downloadnixlib-ab29b6527f8339068838416c5d75fc8f28933512.tar
nixlib-ab29b6527f8339068838416c5d75fc8f28933512.tar.gz
nixlib-ab29b6527f8339068838416c5d75fc8f28933512.tar.bz2
nixlib-ab29b6527f8339068838416c5d75fc8f28933512.tar.lz
nixlib-ab29b6527f8339068838416c5d75fc8f28933512.tar.xz
nixlib-ab29b6527f8339068838416c5d75fc8f28933512.tar.zst
nixlib-ab29b6527f8339068838416c5d75fc8f28933512.zip
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.
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r--nixos/modules/installer/cd-dvd/installation-cd-base.nix2
1 files changed, 1 insertions, 1 deletions
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