summaryrefslogtreecommitdiffstats
path: root/nixos/modules/system/boot/loader/systemd-boot
AgeCommit message (Collapse)Author
2019-07-23system-boot: configurationLimit should be null as defaultDomen Kožar
2019-06-22Add configurationLimit to systemd-boot to prevent running out of disk spaceDomen Kožar
Refs #23926
2019-06-05Merge pull request #62333 from kampka/buildPackages-for-config-buildersMatthew Bauer
Build packages for config builders
2019-06-03nixos/systemd-boot: don't remove directories from EFI dirNikolay Amiantov
This will only result in an error. These directories might be created by, for example, fwupdmgr.
2019-05-31Revert "treewide: use buildPackages for config builders"Christian Kampka
This reverts commit 35af6e36057cafbb30df684326803e9e54bb377e.
2019-05-20Merge pull request #61036 from cdepillabout/nixos-memtest-loaderMatthew Bauer
nixos/systemd-boot: add support for memtest86 EFI app
2019-05-21Change non-open-source to unfree in description.(cdep)illabout
2019-05-13FIx some malformed XML in option descriptionsEelco Dolstra
E.g. these were using "<para>" at the *end* of a description. The real WTF is that this is possible at all...
2019-05-06nixos/systemd-boot: add support for memtest86 EFI app(cdep)illabout
This commit adds support for installing the memtest86 EFI app and adding a boot entry for it with systemd-boot.
2019-01-02treewide: use buildPackages for config buildersMatthew Bauer
2018-08-12nixos/systemd-boot: Add missing newlineThibault Polge
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`.
2018-07-02nixos/systemd-boot: Add consoleMode optionSilvan Mosberger
2017-09-02Include date and NixOS version in systemd-boot entriesGraham Christensen
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
2017-06-24systemd-boot-builder.py: add support for profiles (#26318)Kai
* 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
2017-05-10systemd-boot: document reasoning behind syncfs(2)Jörg Thalheim
2017-05-09systemd-boot: sync efi filesystem after updateJörg Thalheim
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.
2017-04-20nixos/systemd-boot-builder: Don't write .pyc filesaszlig
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>
2017-04-02systemd-boot: Support initrd secretsShea Levy
2017-02-20systemd-boot: Unlink loader.conf if it existsaszlig
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
2017-02-20systemd-boot: Make sure /etc/machine-id existsaszlig
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
2017-01-21systemd-boot: fix evaluationFranz Pletz
2017-01-21systemd-boot: allow setting editor security option (#21853)Linus Heckemann
2016-09-30systemd-boot: inline add_entry functionJörg Thalheim
2016-09-30systemd-boot: port builder to python3Jörg Thalheim
see #18185
2016-08-16Deprecate --install-grub in favor of --install-bootloader for nixos-rebuild.Shea Levy
Fixes #14293
2016-06-01Rename gummiboot moduleEelco Dolstra