about summary refs log tree commit diff
path: root/nixos/tests/installer.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-05-18Merge pull request #309236 from ElvishJerricco/sd-s1-fix-xfs-fsckPol Dellaiera1-0/+3
nixos/systemd-stage-1: Fix fsck.xfs needing bash's sh symlink
2024-05-13nixosTests.installer: test nixos-option anewJade Lovelace1-6/+5
Someone put a FIXME in here. The FIXME looked really old. I uncommented out the thing and it still passes. Calling this fixed.
2024-05-05nixos/systemd-stage-1: Enable LVM installer testWill Fancher1-0/+3
2024-04-05nixos/qemu-vm: split up the "keep EFI variables from system image" logicK9001-0/+1
2024-04-03nixos/tests/installer: avoid create_machine, clean upK9001-214/+188
- use normal VM nodes for target, with some extra trickery - rename preBootCommands to postBootCommands to match its actual intent - rename VMs to installer and target, so they're not all called machine - set platforms on non-UEFI tests properly - add missing packages for systemd-boot test - fix initrd secrets leaking into the store and having wrong paths
2024-03-15nixos: Support systemd-gpt-auto-rootWill Fancher1-2/+40
2024-02-27nixos/lib/test-driver: drop LegacyStartCommand, clean up create_machine APIK9001-1/+1
We can finally do this now that it's no longer used.
2024-02-27nixos/tests/installer: inline + fix UEFI start command generationK9001-29/+17
2024-02-19nixos/filesystems: make supportedFilesystems an attrsetpennae1-2/+1
this lets us *dis*able filesystem explicitly, as is required by e.g. the zfs-less installer images. currently that specifically is only easily possible by adding an overlay that stubs out `zfs`, with the obvious side-effect of also removing tooling that could run without the kernel module loaded.
2024-01-19nixos/tests: fix installer under network-online dep fixJade Lovelace1-0/+3
2024-01-12nixos/tests/installer: fix evalK9001-1/+1
2024-01-07Merge master into staging-nextgithub-actions[bot]1-62/+0
2024-01-07Merge branch 'master' into pr/bcachefsJörg Thalheim1-11/+75
2023-12-28Merge staging-next into staginggithub-actions[bot]1-11/+75
2023-12-21treewide: don't use python3Minimal where it is not requiredSandro Jäckel1-7/+1
Building a python environment with python3Minimal requires hydra to bootstrap pip and build all packages used in the environment which would otherwise not be built. This reduces cache re-use and duplicates things. Also common dependencies normally included in python itself are not properly checked and can cause hard to debug errors because everyone just assumes those modules are there.
2023-12-07nixos/tests/installer: test /boot on ZFSLuflosi1-11/+75
Let's test / on ZFS and /boot on ZFS in separate tests since the GRUB integration for ZFS seems to be not very well maintained. If the test breaks in the future it's easier to figure out that ZFS on /boot is at fault and either fix the issue or disable the test. The new test creates a ZFS pool where all features not compatible with GRUB2 are disabled. The dataset is then mounted on /boot and we check that the installer correctly generates a bootable configuration. Try to use as many ZFS features as possible to verify that GRUB can handle them.
2023-12-05Revert "treewide: add bcachefsLinuxTesting and bcachefsLinuxTesting tests"Madoura1-62/+0
This reverts commit c2450c45150d3a3f56f27f1d46e75e8a041f1842. No longer needed as the default is 'linuxPackages_testing'
2023-12-02nixos/tests/installer: init clevis testsJulien Malka1-15/+233
Co-Authored-By: Camille Mondon <camillemondon@free.fr>
2023-11-18treewide: add bcachefsLinuxTesting and bcachefsLinuxTesting testsMadoura1-0/+62
nixos/tests/installer: add bcachefsLinuxTesting and bcachefsLinuxTesting tests bcachefs-tools: add bcachefsLinuxTesting and bcachefsLinuxTesting tests
2023-10-29Merge pull request #262854 from ↵Ryan Lahfa1-0/+4
ElvishJerricco/systemd-stage-1-bcachefs-decryption systemd-stage-1: bcachefs decryption
2023-10-28Merge pull request #263033 from ↵Ryan Lahfa1-2/+2
ElvishJerricco/systemd-stage-1-filesystems-encrypted systemd-stage-1: Enable more encrypted installer tests
2023-10-24nixos/tests/installer: add bpool for grub files in zfsroot testmisuzu1-4/+16
2023-10-24nixos/tests/installer: add postInstallCommands to makeInstallerTestmisuzu1-4/+8
2023-10-23systemd-stage-1: Enable more encrypted installer testsWill Fancher1-2/+2
2023-10-22systemd-stage-1: bcachefs decryptionWill Fancher1-0/+4
2023-10-21Merge pull request #259347 from ↵Ryan Lahfa1-0/+3
ElvishJerricco/systemd-stage-1-zfs-sysusr-dependency systemd 254: ZFS /usr fix with systemd-stage-1
2023-10-06systemd 254: ZFS /usr fix with systemd-stage-1Will Fancher1-0/+3
2023-09-22bcachefs tests: unlock directly to the right keyringLinus Heckemann1-2/+1
2023-07-21nixos/tests/installer: fix after #244449K9001-0/+1
2023-07-08nixos/nix-channel: Apply suggestions from code reviewRobert Hensing1-8/+5
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-07-07nixos/nix-channel: Take care of NIX_PATH's non-empty default when disabledRobert Hensing1-0/+12
2023-07-07nixos: Add nixos.channel.enableRobert Hensing1-4/+82
For those who wish to get rid of nix-channel.
2023-07-07nixosTests.installer: Fix driverInteractiveRobert Hensing1-1/+6
2023-07-07nixosTests.installer: Make sure we boot into the config we generatedRobert Hensing1-0/+7
2023-07-01nixos/test/bcachefs: fix password inputJörg Thalheim1-1/+1
2023-06-19installer: remove unused withhappysalada1-1/+1
2023-06-19installer: remove reference to non existing doc optionhappysalada1-3/+0
2023-06-16nixos/qemu-vm: use persistent block device namesnikstur1-0/+5
This change removes the bespoke logic around identifying block devices. Instead of trying to find the right device by iterating over `qemu.drives` and guessing the right partition number (e.g. /dev/vda{1,2}), devices are now identified by persistent names provided by udev in /dev/disk/by-*. Before this change, the root device was formatted on demand in the initrd. However, this makes it impossible to use filesystem identifiers to identify devices. Now, the formatting step is performed before the VM is started. Because some tests, however, rely on this behaviour, a utility function to replace this behaviour in added in /nixos/tests/common/auto-format-root-device.nix. Devices that contain neither a partition table nor a filesystem are identified by their hardware serial number which is injecetd via QEMU (and is thus persistent and predictable). PCI paths are not a reliably way to identify devices because their availability and numbering depends on the QEMU machine type. This change makes the module more robust against changes in QEMU and the kernel (non-persistent device naming) and by decoupling abstractions (i.e. rootDevice, bootPartition, and bootLoaderDevice) enables further improvement down the line.
2023-05-23remove unneeded importMatthias Berndt1-1/+0
2023-05-17Merge remote-tracking branch 'upstream/master' into mberndt123/stratis-rootfsMatthias Berndt1-39/+11
2023-05-16improve stratis initrd supportMatthias Berndt1-7/+0
it is now possible to supply a stratis pool uuid for every filesystem, and if that filesystem is required for boot, the relevant pool will be started in the initramfs.
2023-05-10nixos/installer/grub1: removeajs1241-39/+11
2023-05-08address code review issuesMatthias Berndt1-35/+24
2023-05-07add installer test for stratis root fsMatthias Berndt1-3/+57
2023-05-04nixos/tests/installer.nix: add missing kbd.devVladimír Čunát1-0/+1
Sometimes the tests fail since splitting kbd.dev in PR #226247 https://hydra.nixos.org/build/218620685/nixlog/2/tail Apparently the failure isn't 100% reproducible; I don't know how/why.
2023-04-21nixos/tests(treewide): vdb → vda, vdc → vdb, vdd → vdc, … / ↵Raito Bezarius1-1/+2
bootDevice → rootDevice
2023-03-09nixos/tests/installer.nix: fix hydra evalAdam Joseph1-3/+3
Hydra Eval has been throwing these eval errors for the past four months, which makes the yellow "Eval Errors" bubble pretty useless: https://hydra.nixos.org/eval/1790611#tabs-errors ``` in job ‘nixos.tests.installer.separateBoot.aarch64-linux’: error: Non-EFI boot methods are only supported on i686 / x86_64 in job ‘nixos.tests.installer.simple.aarch64-linux’: error: Non-EFI boot methods are only supported on i686 / x86_64 in job ‘nixos.tests.installer.lvm.aarch64-linux’: error: Non-EFI boot methods are only supported on i686 / x86_64 ``` This PR moves the failure for the `!isEfi && !pkgs.stdenv.hostPlatform.isx86` case from eval-time to runtime, so the failure gets categorized under the test that produced it, rather than just being lumped in to the catch-all Eval Errors pile which... apparently nobody cares about.
2023-01-19Revert "Revert "nixos/tests/installer: test relative paths in initrd secrets""rnhmjoj1-1/+1
This reverts commit 8d45d82c71b91872e853f0bce3ed69993508ec5e. The tests shold pass now that systemd-boot handles failures in initrd for older boot entries.
2023-01-19Revert "nixos/tests/installer: test relative paths in initrd secrets"Vladimír Čunát1-1/+1
This reverts commit 9bb888c9f8224e45fc5 from PR #210812. We first need to fix nixosTests.installer.simpleUefiSystemdBoot
2023-01-18Revert "nixosTests.installer: bump memorySize"Vladimír Čunát1-1/+1
This reverts commit 309ed272be60962e4465ae7b8cd2bb5cb1bc4bee. The bump caused nixosTests.installer.luksroot hang, e.g. see https://hydra.nixos.org/build/205951019 (I don't know why.) The OOM issues were avoided by 6dccdc45851 (newer but merged earlier)