Bootloader: Difference between revisions

imported>Iceychris
m add a simple way of reinstalling the bootloader while the system is running
imported>CsawyerYumaed
added grub kernel command line options for booting.
Line 61: Line 61:
sudo nixos-rebuild --install-bootloader switch
sudo nixos-rebuild --install-bootloader switch
</syntaxhighlight>
</syntaxhighlight>
kernel command line options to help debugging (reached via e on the grub boot menu)
* <code>boot.trace</code> uses set -x to trace the shell scripts.
* <code>boot.shell_on_fail</code> allows for a shell if failure to boot.
* <code>boot.debug1</code> allows shell and stops right away on failure.
* <code>boot.debug1devices</code> stop after loading modules and creating device nodes.
* <code>boot.debug1mounts</code> stop after mounting file systems.
* <code>boot.panic_on_fail</code> panics on failure.
* <code>console=</code> set the console to something
* <code>root=</code> If a root device is specified on the kernel command line, make it available through the symlink /dev/root.
* <code>findiso=</code> if an iso name is supplied, try to find the device where the iso resides on.
* <code>copytoram</code> Skip mounting the ISO and copy its content to a tmpfs.


==== From an installation media ====
==== From an installation media ====