summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader
Commit message (Collapse)AuthorAge
* raspberrypi-bootloader: pass initrd to kernelBen Wolsieffer2018-10-21
| | | | | NixOS is unable to boot using the RPi bootloader (w/o U-Boot) unless the initrd is configured.
* raspberrypi-bootloader: uboot: allow specification of target directoryBen Wolsieffer2018-10-21
|
* raspberrypi-bootloader: support Raspberry Pi 3 w/o U-Boot and explicitly supportBen Wolsieffer2018-10-21
| | | | Raspberry Pi Zero
* raspberrypi-bootloader: allow specification of target directoryBen Wolsieffer2018-10-21
|
* install-grub.pl: avoid double '/' in menu.lst and grub.conf (#45907)volth2018-09-02
| | | Although double '/' in paths is not a problem for GRUB supplied with nixpkgs, sometimes NixOS's grub.conf read by external GRUB and there are versions of GRUB which fail
* nixos/grub: Uses the new artwork as the default option.Samuel Dionne-Riel2018-08-29
| | | | | This also includes a set of defaults *for this option*, where when not used, other saner defaults are used.
* nixos/grub: Adds background color and mode optionsSamuel Dionne-Riel2018-08-29
| | | | | | | | | | | The background color option is self-explanatory. The mode is either `normal` or `stretch`, they are as defined by GRUB, where normal will put the image in the top-left corner of the menu, and stretch is the default, where it stretches the image without consideration for the aspect ratio. * https://www.gnu.org/software/grub/manual/grub/grub.html#background_005fimage
* treewide: Purge `stdenv.platform` and top-level `platform`John Ericson2018-08-20
| | | | Progress towards #27069
* nixos/systemd-boot: Add missing newlineThibault Polge2018-08-12
| | | | | | | | This fixes an issue where setting both `boot.loader.systemd-boot.editor` to `false` and `boot.loader.systemd-boot.consoleMode` to any value would concatenate the two configuration lines in the output, resulting in an invalid `loader.conf`.
* Merge pull request #42877 from Infinisil/systemd-boot/consoleModeSilvan Mosberger2018-08-04
|\ | | | | nixos/systemd-boot: Add consoleMode option
| * nixos/systemd-boot: Add consoleMode optionSilvan Mosberger2018-07-02
| |
* | [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|/
* added suggestion to support both str and intEmily Ann Ediger2018-06-19
|
* set default to type.strEmily Ann Ediger2018-06-19
|
* Grub: default is signed int. Fixes #42152Emily Ann Ediger2018-06-18
|
* Revert "Merge pull request #38263 from lopsided98/grub-initrd-secrets"Joachim Fasting2018-06-07
| | | | | | | This reverts commit c06d7950f1b97abf510bc70bd2a2b0445e8d36f2, reversing changes made to 4c25fbe338212f498a34d2a9b4c2072ac96c0e31. See https://github.com/NixOS/nixpkgs/issues/41608
* Merge pull request #38263 from lopsided98/grub-initrd-secretsJoachim F2018-06-06
|\ | | | | grub: support initrd secrets
| * nixos/grub: support initrd secretsBen Wolsieffer2018-05-07
| |
* | install-grub: only try to loadfont if font is not nullGraham Christensen2018-06-05
| |
* | grub-config.xml: handle a null fontGraham Christensen2018-06-05
| |
* | nixos/grub: Implements use of file format for splashImage.Samuel Dionne-Riel2018-05-13
| | | | | | | | | | | | | | | | | | | | | | | | | | GRUB 2.0 supports png, jpeg and tga. This will use the image's suffix to load the right module. As jpeg module is named jpeg, jpg is renamed jpeg. If the user uses wrong image suffix for an image, it wouldn't work anyway. This will leave up to two additional left-over files in /boot/ if user switches through all the supported file formats. The module already left the png image if the user disabled the splash image.
* | nixos/grub: Updates `splashImage` description to match reality.Samuel Dionne-Riel2018-05-13
|/ | | | Fixes #4911
* raspberrypi-bootloader: Adds `firmwareConfig` config optionBastian Köcher2018-04-22
| | | | The `firmwareConfig` option will be appended to `/boot/config.txt`.
* raspberrypi-bootloader: Adds support for using ubootBastian Köcher2018-04-22
| | | | | Uboot is copied into `/boot` in the installation process. The boot entries are created by calling the `generic-extlinux-compatible` builder.
* Merge commit '3ab2949' from staging into masterTuomas Tynkkynen2018-03-15
|\ | | | | | | | | | | Conflicts: pkgs/development/compilers/llvm/6/llvm.nix pkgs/servers/home-assistant/component-packages.nix
| * Merge remote-tracking branch 'upstream/master' into stagingTuomas Tynkkynen2018-03-13
| |\ | | | | | | | | | | | | Conflicts: pkgs/development/tools/build-managers/conan/default.nix
| * | nixos: Move uses of stdenv.shell to runtimeShell.Shea Levy2018-03-01
| | |
* | | nixos: fix install-grub.pl dependenciesJan Malakhovski2018-03-15
| |/ |/| | | | | fallback from updates to perl
* | grub-install.pl: more details on blkid failureMatthieu Coudron2018-03-12
|/
* grub module: suggest by-id paths for devicesLinus Heckemann2018-02-24
| | | | | Since they are more stable, their use should be encouraged over that of potentially volatile identifiers like /dev/[sh]da.
* nixos: Fix detection of btrfs root volumeaszlig2017-10-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regression introduced by 801c920e95642ec663d4aa486c81e5443e25b182. Since then, the btrfsSimple subtest of the installer VM test fails with: Btrfs did not return a path for the subvolume at / The reason for this is that the output for "btrfs subvol show" has changed between version 4.8.2 and 4.13.1. For example the output of "btrfs subvol show /" in version 4.8.2 was: / is toplevel subvolume In version 4.13.1, the output now is the following and thus the regular expressions used in nixos-generate-config.pl and install-grub.pl now match (which results in the error mentioned above): / Name: <FS_TREE> UUID: - Parent UUID: - Received UUID: - Creation time: - Subvolume ID: 5 Generation: 287270 Gen at creation: 0 Parent ID: 0 Top level ID: 0 Flags: - Snapshot(s): In order to fix this I've changed nixos-generate-config.pl and install-grub.pl, because both use "btrfs subvol show" in a similar vein, so the regex for parsing the output now doesn't match anymore whenever the volume path is "/", which should result in the same behaviour as we had with btrfs-progs version 4.8.2. Tested against the btrfsSimple, btrfsSubvols and btrfsSubvolDefault subtests of the installer VM test and they all succeed now. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Include date and NixOS version in systemd-boot entriesGraham Christensen2017-09-02
| | | | | | | | | | | | | Grub configs include the NixOS version and date they were built, now systemd can have fun too: version Generation 99 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-30 version Generation 100 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-30 version Generation 101 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-08-31 version Generation 102 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-09-01 version Generation 103 NixOS 17.03.1700.51a83266d1, Linux Kernel 4.9.43, Built on 2017-09-02 version Generation 104 NixOS 17.09beta41.1b8c7786ee, Linux Kernel 4.9.46, Built on 2017-09-02 version Generation 105 NixOS 17.09.git.1b8c778, Linux Kernel 4.9.46, Built on 2017-09-02
* grub module: assume /nix/store is a bind mount even if it is not read onlySymphorien Gibol2017-08-31
| | | | Fixes #14999
* systemd-boot-builder.py: add support for profiles (#26318)Kai2017-06-24
| | | | | | | | | | * systemd-boot-builder.py: add support for profiles This will also list the generations of other profiles than `system` in the boot menu. See the documentation of the `--profile-name` option of nixos-rebuild for more information on profiles. * Fix errors introduced by previous commit
* Merge pull request #26460 from romildo/fix.nixos-artworkJoachim F2017-06-13
|\ | | | | nixos-artwork: add more wallpapers
| * nixos-artwork: add more wallpapersromildo2017-06-07
| | | | | | | | | | | | | | | | | | Restructure the nixos-artwork to make it easy to selectively incorporate other components from upstream without needing to download the full package. Until now only the Gnome_Dark wallpaper was included. Add other wallpapers available in the package repository.
* | nixos: Add support for scalable fonts in Grub menus (#26227)Benjamin Staffin2017-06-10
|/ | | | | | The default font is unreadably small on some hidpi displays. This makes it possible to specify a TrueType or OpenType font at any point size, and it will automatically be converted to the format the Grub uses.
* systemd-boot: document reasoning behind syncfs(2)Jörg Thalheim2017-05-10
|
* systemd-boot: sync efi filesystem after updateJörg Thalheim2017-05-09
| | | | | | | Since fat32 provides little recovery facilities after a crash, it can leave the system in an unbootable state, when a crash/outage happens shortly after an update. To decrease the likelihood of this event sync the efi filesystem after each update.
* nixos/grub: Add another example for extraEntriesaszlig2017-04-25
| | | | | | | | | | | Someone on IRC wanted to boot Fedora from another disk. While I'm not too familiar with UEFI booting in conjunction with GRUB2 it took some time to get it to work. So in order to safe others from frustration I'm adding this as another example to the extraEntries option. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/systemd-boot-builder: Don't write .pyc filesaszlig2017-04-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has surfaced since d990aa716327abb018e8352dcf7ba2fcfb4fc34c. The "simpleUefiGummiboot" installer test fails since this commit, because that commit introduced a small check to verify whether the store was altered. While installing NixOS for the first time, the store is usually in /mnt/nix/store and without the read-only bind mount that's preventing programs from altering the store. So after nixos-install is done creating the system closure and setting it as the active system profile, the bootloader is written from the closure inside the chroot. The systemd-boot-builder is invoked during this step, which adds .pyc files for various Python modules of the Python 3 store path, which in turn invalidates the hash of the Python 3 store path itself. At the time the system is booted up again, the nix-store is verified and fails with something like this: path /nix/store/zvm545rqc4d97caqq9h7344bnd06jhzb-python3-3.5.3 was modified! expected hash b2c975f4b8d197443fbb09690fb3f6545e165dd44c9309d7d6df2fce0579ebeb, got bccca19f39c9d26d857ccf1fb72818b2b817967e6d497a25a1283e36ed0acf01 Running the interpreter with the -B argument prevents Python from writing those byte code files: https://docs.python.org/3/using/cmdline.html#cmdoption-B Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* Revert "grub module: fix efiInstallAsRemovable description"Vladimír Čunát2017-04-18
| | | | | | | | | This reverts commit c2b56626f1a872d06642777193b72d6473c8b97c. It broke creating the manual. I suspect the descriptions are auto-wrapped by <para> and </para>. We've been through this already in 3af715af90. /cc #24978, @zraexy, @Mic92.
* grub module: fix efiInstallAsRemovable descriptionzraexy2017-04-17
|
* systemd-boot: Support initrd secretsShea Levy2017-04-02
|
* grub module: fix useOSProber when installing grub as EFISymphorien Gibol2017-03-23
|
* nixos/treewide: remove boolean examples for optionsFranz Pletz2017-03-17
| | | | | | | They contain no useful information and increase the length of the autogenerated options documentation. See discussion in #18816.
* systemd-boot: Unlink loader.conf if it existsaszlig2017-02-20
| | | | | | | | | | | | | | | | | | | | | | | | | Since systemd version 232 the install subcommand of bootctl opens the loader.conf with fopen() modes "wxe", where the "e" stands for exclusive, so the call will fail if the file exists. For installing the boot loader just once this is fine, but if we're using NIXOS_INSTALL_BOOTLOADER on a systemd where the bootloader is already present this will fail. Exactly this is done within the simpleUefiGummiboot installer test, where nixos-install is called twice and thus the bootloader is also installed twice, resulting in an error during the fopen call: Failed to open loader.conf for writing: File exists Removing the file prior to calling bootctl should fix this. I've tested this using the installer.simpleUefiGummiboot test and it now succeeds. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @edolstra, @shlevy, @mic92 Fixes: #22925
* systemd-boot: Make sure /etc/machine-id existsaszlig2017-02-20
| | | | | | | | | | | | | | | | | | | | This leads to the following error when trying to install a new machine where the machine ID wasn't yet initialized during boot: Failed to get machine did: No such file or directory In addition this was also detected by the simpleUefiGummiboot installer test. So let's generate a fallback machine ID by using systemd-machine-id-setup before actually running bootctl. Tested this by running the installer.simpleUefiGummiboot test, it still fails but not because of the machine ID. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @edolstra, @shlevy, @mic92 Fixes: #22561
* grub module: add extraInitrd optionSymphorien Gibol2017-02-19
|
* grub: fix capitalisationRobin Gloster2017-02-13
| | | | Missed this occurence while renaming the option