From 0b34eb149334a4b22f1d2a345f783484e7ae177d Mon Sep 17 00:00:00 2001 From: wmertens <Wout.Mertens@gmail.com> Date: Sat, 15 Nov 2014 00:14:26 +0100 Subject: [PATCH] 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. --- nixos/modules/installer/cd-dvd/iso-image.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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";