summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd/iso-image.nix
diff options
context:
space:
mode:
authorwmertens <Wout.Mertens@gmail.com>2014-11-15 00:14:26 +0100
committerwmertens <Wout.Mertens@gmail.com>2014-11-15 00:14:26 +0100
commit0b34eb149334a4b22f1d2a345f783484e7ae177d (patch)
treeaeffab88d6144a3607e174dc419cf324ccc7049a /nixos/modules/installer/cd-dvd/iso-image.nix
parent5cad555ab1dfa7d6bedc5df083470566131a400e (diff)
downloadnixpkgs-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar
nixpkgs-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.gz
nixpkgs-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.bz2
nixpkgs-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.lz
nixpkgs-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.xz
nixpkgs-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.zst
nixpkgs-0b34eb149334a4b22f1d2a345f783484e7ae177d.zip
Allow starting a shell on stage 1 failure
When people copy the ISO to USB it can happen that the root device isn't known. Having a shell greatly improves that situation.
Diffstat (limited to 'nixos/modules/installer/cd-dvd/iso-image.nix')
-rw-r--r--nixos/modules/installer/cd-dvd/iso-image.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index 22f31c46080..84de7800c2a 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -176,7 +176,10 @@ in
     # UUID of the USB stick.  It would be nicer to write
     # `root=/dev/disk/by-label/...' here, but UNetbootin doesn't
     # recognise that.
-    boot.kernelParams = [ "root=LABEL=${config.isoImage.volumeID}" ];
+    boot.kernelParams =
+      [ "root=LABEL=${config.isoImage.volumeID}"
+        "boot.shell_on_fail"
+      ];
 
     fileSystems."/" =
       { fsType = "tmpfs";