diff options
author | wmertens <Wout.Mertens@gmail.com> | 2014-11-15 00:14:26 +0100 |
---|---|---|
committer | wmertens <Wout.Mertens@gmail.com> | 2014-11-15 00:14:26 +0100 |
commit | 0b34eb149334a4b22f1d2a345f783484e7ae177d (patch) | |
tree | aeffab88d6144a3607e174dc419cf324ccc7049a /nixos | |
parent | 5cad555ab1dfa7d6bedc5df083470566131a400e (diff) | |
download | nixlib-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar nixlib-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.gz nixlib-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.bz2 nixlib-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.lz nixlib-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.xz nixlib-0b34eb149334a4b22f1d2a345f783484e7ae177d.tar.zst nixlib-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')
-rw-r--r-- | nixos/modules/installer/cd-dvd/iso-image.nix | 5 |
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 22f31c460802..84de7800c2a9 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"; |