Bootloader: Difference between revisions
imported>Niscolas No edit summary |
imported>Winny tidy up boot parameters section and make it its own section |
||
Line 54: | Line 54: | ||
== Troubleshooting == | == Troubleshooting == | ||
=== Kernel initramfs parameters for troubleshooting boot issues === | |||
You can add these flags to systemd-boot and grub boot entries via using the <code>e</code> command to edit the currently selected entry, then use arrow keys to move curser and type your additions in the entry area. Type return or <code>F10</code> (Grub) to boot the entry. | |||
* <code>boot.trace</code> uses <code>set -x</code> to trace the shell scripts. | |||
* <code>boot.shell_on_fail</code> allows for root shell if failure to boot. ''Requires root password.'' | |||
* <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. | |||
=== Re-installing the bootloader === | === Re-installing the bootloader === | ||
Line 66: | Line 81: | ||
sudo nixos-rebuild --install-bootloader switch | sudo nixos-rebuild --install-bootloader switch | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== From an installation media ==== | ==== From an installation media ==== |