about summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/systemd-boot/systemd-boot-builder.py
Commit message (Collapse)AuthorAge
* Add configurationLimit to systemd-boot to prevent running out of disk spaceDomen Kožar2019-06-22
| | | | Refs #23926
* nixos/systemd-boot: don't remove directories from EFI dirNikolay Amiantov2019-06-03
| | | | This will only result in an error. These directories might be created by, for example, fwupdmgr.
* nixos/systemd-boot: add support for memtest86 EFI app(cdep)illabout2019-05-06
| | | | | This commit adds support for installing the memtest86 EFI app and adding a boot entry for it with systemd-boot.
* 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`.
* nixos/systemd-boot: Add consoleMode optionSilvan Mosberger2018-07-02
|
* 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
* 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
* 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/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>
* systemd-boot: Support initrd secretsShea Levy2017-04-02
|
* 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
* systemd-boot: allow setting editor security option (#21853)Linus Heckemann2017-01-21
|
* systemd-boot: inline add_entry functionJörg Thalheim2016-09-30
|
* systemd-boot: port builder to python3Jörg Thalheim2016-09-30
| | | | see #18185
* Deprecate --install-grub in favor of --install-bootloader for nixos-rebuild.Shea Levy2016-08-16
| | | | Fixes #14293
* Rename gummiboot moduleEelco Dolstra2016-06-01