summary refs log tree commit diff
path: root/nixos/modules/system/boot/loader/grub
Commit message (Collapse)AuthorAge
* 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
* 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
* 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>
* grub module: assume /nix/store is a bind mount even if it is not read onlySymphorien Gibol2017-08-31
| | | | Fixes #14999
* 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.
* 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>
* 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
|
* 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.
* grub module: add extraInitrd optionSymphorien Gibol2017-02-19
|
* grub: fix capitalisationRobin Gloster2017-02-13
| | | | Missed this occurence while renaming the option
* grub: add grub.useOSProber option (#22558)symphorien2017-02-13
|
* kdm: drop serviceGraham Christensen2017-02-11
|
* Revert "fix 2 xml errors in the description of ↵Bjørn Forsman2016-12-17
| | | | | | | | | | | | | | | | | | | boot.loader.grub.efiInstallAsRemovable" This reverts commit 656cc3acafcb30e3503f4d3e39694ca996c66015 because it causes building the manual to fail: $ nixos-rebuild build ... building path(s) ‘/nix/store/s9y5z78z5pssvmixcmv9ix13gs8xj87f-manual-olinkdb’ Writing /nix/store/s9y5z78z5pssvmixcmv9ix13gs8xj87f-manual-olinkdb/manual.db for book(book-nixos-manual) ./man-pages.xml:625: element para: Relax-NG validity error : Did not expect element para there ./man-pages.xml:3: element variablelist: Relax-NG validity error : Element refsection has extra content: variablelist ./man-pages.xml:29: element refsection: Relax-NG validity error : Element refentry has extra content: refsection ./man-pages.xml:3: element reference: Relax-NG validity error : Element reference failed to validate content ./man-pages.xml fails to validate CC @cleverca22, @Mic92
* fix 2 xml errors in the description of boot.loader.grub.efiInstallAsRemovablemichael bishop2016-12-16
|
* Merge pull request #19379 from nixy/masterJörg Thalheim2016-11-21
|\ | | | | grub bootloader: add forceInstall option
| * grub bootloader: add forceInstall optionAndrew R. M2016-11-03
| | | | | | | | | | | | Using the --force option on GRUB isn't recommended, but there are very specific instances where it makes sense. One example is installing on a partitionless disk.
* | grub module: use enumEric Sagnes2016-11-04
|/
* Merge pull request #18511 from ericsagnes/feat/remove-optionSetJoachim F2016-10-01
|\ | | | | modules: optionSet -> submodule
| * grub module: optionSet -> submoduleEric Sagnes2016-09-13
| |
* | grub: Do not check for duplicated devices in mirroredBoots on UEFI (#18625)jokogr2016-09-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Grub is to be used with UEFI, it is not going to write to any MBR of any disk. As such, it is safe to use multiple "nodev" device entries when mirroring the ESP partition to multiple disks. E.g.: ``` boot.loader.grub = { enable = true; version = 2; zfsSupport = true; efiSupport = true; mirroredBoots = [ { devices = [ "nodev" ]; path = "/boot1"; efiSysMountPoint = "/boot1"; } { devices = [ "nodev" ]; path = "/boot2"; efiSysMountPoint = "/boot2"; } { devices = [ "nodev" ]; path = "/boot3"; efiSysMountPoint = "/boot3"; } ]; }; boot.loader.efi.canTouchEfiVariables = true; ``` Fixes #18584
* | grub: fix manual buildobadz2016-09-16
| |
* | grub: clarify efiInstallAsRemovable docstringobadz2016-09-16
| |
* | grub: add boot.loader.grub.efiInstallAsRemovableobadz2016-09-16
|/ | | | Closes #16374
* Fixes #14831 by using full path for binaries used in install-grub.plDomen Kožar2016-09-01
| | | | | | Both btrfs-progs and utillinux are ~5MB, we may discuss in future to handle this better but I see no better way at the moment than increaing purity in the install process.
* install-grub.pl: fix a double slash prefix bugDomen Kožar2016-09-01
|
* install-grub.pl: add commentsDomen Kožar2016-09-01
|
* Merge branch 'master' into stagingobadz2016-08-28
|\
| * Merge pull request #14311 from Profpatsch/mkRemovedOptionModule-replacementDomen Kožar2016-08-28
| |\ | | | | | | mkRemovedOptionModule: add replacement argument
| | * modules/mkRemovedOptionModule: add replacement docProfpatsch2016-05-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When displaying a warning about a removed Option we should always include reasoning why it was removed and how to get the same functionality without it. Introduces such a description argument and patches occurences (mostly with an empty string). startGnuPGAgent: further notes on replacement