aboutsummaryrefslogtreecommitdiff
path: root/nixos/tests/installer.nix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* nixos/tests: add test for showing child configuration in grub menuVenkateswara Rao Mandela2019-07-111-1/+70
| | | | | | | | | | | | | - Create a child configuration named "Work" with an extra config file. - Name the default configuration as "Home" :-) - Once the VM is setup, reboot and verify that it has booted into default configuration. - Reboot into the "Work" configuration via grub. - Verify that we have booted into the "Work" configuration and that the extra config file is present. This test works for the simple grub configuration and simple UEFI Grub configuration. UEFI Systemd is not included in the test.
* nixos/tests: installer: restructure simpleUefiGrub test dataVenkateswara Rao Mandela2019-07-111-15/+16
|
* nixos/tests: installer: restructure simple test dataVenkateswara Rao Mandela2019-07-111-15/+17
|
* nixos/tests: fix luksroot installer test nameFranz Pletz2019-06-081-1/+1
| | | | Both tests were previously called "luksroot-luks2".
* nixos/tests/installer: add cryptsetup tests for LUKS format 2 & default formatAndreas Rammhold2019-03-021-31/+39
|
* treewide: remove wkennington as maintainerJörg Thalheim2019-01-261-1/+1
| | | | | | He prefers to contribute to his own nixpkgs fork triton. Since he is still marked as maintainer in many packages this leaves the wrong impression he still maintains those.
* nixos/tests/installer.nix: shorten test name to fit length limitSymphorien Gibol2018-11-171-1/+1
| | | | | | | | | | | | | | | previously one of the tests would fail with boot-after-install: starting vm Path length (109) is longer than maximum supported length (108) and will be truncated at /nix/store/0ingn8cwwnl84i374hcl6nafsm2c5m2p-perl-5.28.0/lib/perl5/5.28.0/x86_64-linux-thread-multi/Socket.pm line 872, <__ANONIO__> line 268. boot-after-install# qemu-system-x86_64: -monitor unix:./monitor: Failed to connect socket ./monitor: No such file or directory error: QEMU died prematurely QEMU died prematurely vde_switch: EOF on stdin, cleaning up and exiting cleaning up builder for '/nix/store/zbpxwwxwy7f6z5z3kg4nf5mjqsywzjvx-vm-test-run-installer-filesystemEncryptedWithKeyfile.drv' failed with exit code 4 Shortening the test name fixes the issue.
* tests: refactor to carry the package set as an argumentLéo Gaspard2018-11-111-2/+5
| | | | | This way, the package set will be possible to pass without re-importing all the time
* nixos/tests/installer: stop udev queue before calling mdadmUli Baum2018-09-221-0/+2
| | | | | | In the swraid test, temporarily stop udev queue execution while creating mdraid devices to prevent a race with udev, see https://groups.google.com/forum/#!topic/scylladb-dev/u87yHgo3ylU
* nixos/tests/installer: use flock for all parted callsUli Baum2018-09-221-11/+11
| | | | | | to further reduce risk of race with udev, like util-linux recommends for sfdisk: https://github.com/karelzak/util-linux/blob/v2.32/disk-utils/sfdisk.8#L71
* nixos/tests/installer: prevent race between parted and udevUli Baum2018-09-221-41/+41
| | | | | by combining all parted commands into a single parted call. This eliminates one cause of non-deterministic failure.
* nixos/tests/installer: grub1 needs /tmp to exist.Samuel Dionne-Riel2018-09-171-0/+1
|
* nixos/tests/installer: add missing system.extraDependenciesUli Baum2018-09-011-0/+3
| | | | | | | Since 1b11fdd0df2254a762a16d04e603ba99e42169c0 the test VM depends on some extra packages to build the system to be installed. This broke the installer test as it tried to download/build these packages in a sandbox.
* Reviews use of old nixos wallpaper to use one with the new logo.Samuel Dionne-Riel2018-08-291-1/+1
| | | | | | | | The wallpaper used is *structurally compatible* with the other one, meaning that the logo is at the same location, and not bigger. It has one drawback: the logo is brighter, which clashes with the grub usage. This is to be fixed with new options in grub.
* nixos/tests/luksroot: Fix OCR of passphrase promptaszlig2018-08-111-1/+1
| | | | | | | | | | | | Since a9d69a74d6edb6bcca29b1189d4bc3b203ecaf25, the passphrase prompt now no longer starts with "Enter passphrase for" but now it's just "Passphrase for", which causes the luksroot installer test to fail. I've tested this on a x86_64-linux machine and the test now succeeds. Signed-off-by: aszlig <aszlig@nix.build> Cc: @oxij, @samueldr Issue: #29441
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-201-1/+1
|
* Merge pull request #43857 from volth/unusedFrederik Rietdijk2018-07-201-3/+0
|\ | | | | [bot] treewide: remove unreferenced code
| * [bot]: remove unreferenced codevolth2018-07-201-3/+0
| |
* | treewide: remove aliases in nixpkgsMatthew Bauer2018-07-181-1/+1
|/ | | | | | | | | | | | | | | | | | This makes the command ‘nix-env -qa -f. --arg config '{skipAliases = true;}'’ work in Nixpkgs. Misc... - qtikz: use libsForQt5.callPackage This ensures we get the right poppler. - rewrites: docbook5_xsl -> docbook_xsl_ns docbook_xml_xslt -> docbook_xsl diffpdf: fixup
* nixos/tests: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-301-1/+1
|
* installer tests: avoid udisks2Vladimír Čunát2018-06-221-0/+4
| | | | This is a temporary hack to fix channel until we resolve #42324.
* nixos/tests/installer: Add lndir to extraDepsaszlig2018-05-151-0/+1
| | | | | | | | | | | | | In commit 17dd7bcd89d568596f52356624be82201ea84779 the systemd unit generator now uses lndir instead of "ln -s", so we need to have lndir available in the Nix store for the installer tests to be able to build the units and thus the whole system. This should fix the installer tests, although I have only tested it with the "simple" subtest. Signed-off-by: aszlig <aszlig@nix.build> Cc: @jtojnar, @xeji, @edolstra
* nixos/tests/installer: Give eval failure on unsupported boot methodsTuomas Tynkkynen2018-03-241-2/+3
|
* nixos/tests: Make simpleUefiGrub test work on AArch64Tuomas Tynkkynen2018-03-211-2/+8
| | | | Needs more refactoring for the AArch64 '-enable-kvm' stuff some day...
* Don't try hashed mirrors in the installer testEelco Dolstra2018-02-271-0/+5
|
* nixos/tests/installer.nix: Don't use a writable storeEelco Dolstra2018-02-271-1/+0
| | | | This is no longer needed.
* Fix commentsEelco Dolstra2018-02-071-3/+2
|
* nixos/tests: Drop unnecessary qemu-flags.nix includeTuomas Tynkkynen2018-01-301-1/+0
| | | | None of these files are using anything from there.
* nixos.tests.installer.swraid: increase drive sizeVladimír Čunát2017-11-251-4/+4
| | | | | | The latest staging caused this test not to fit anymore. I'm all for keeping closure sizes under control, but I don't think *this* is a good place.
* nixos: run parted with --script option (3rd)Bjørn Forsman2017-11-191-5/+5
| | | | | | | Doh, should have included this in previous commit. Ref. 0ff4bb5f875afe8eb208bbabb3f52dc29539d2bc ("nixos: run parted with --script option").
* nixos: run parted with --script option (2nd)Bjørn Forsman2017-11-191-5/+5
| | | | | Ref. 0ff4bb5f875afe8eb208bbabb3f52dc29539d2bc ("nixos: run parted with --script option")
* Merge pull request #29269 from Moredread/test_crypt_with_keyfileFranz Pletz2017-11-191-0/+41
|\ | | | | Test opening encrypted filesystem with keyfile
| * Test opening encrypted filesystem with keyfileAndré-Patrick Bubel2017-09-141-0/+41
| | | | | | | | | | Checks for regression of missing cryptsetup, when no luks device without keyfile is configured
* | nixos installer tests: Add UEFI Grub testTuomas Tynkkynen2017-11-141-10/+41
| | | | | | | | Fixed merge conflict. Closes #22923.
* | nixos: run parted with --script optionBjørn Forsman2017-10-141-32/+32
|/ | | | | | | | | | | | | | | | | -s, --script: never prompts for user intervention Sometimes the NixOS installer tests fail when they invoke parted, e.g. https://hydra.nixos.org/build/62513826/nixlog/1. But instead of exiting right there, the tests hang until the Nix builder times out (and kills the build). With this change the tests would instead fail immediately, which is preferred. While at it, use "parted --script" treewide, so nobody gets build timeout due to parted error (or misuse). (Only nixos/ use it, and only non-interactive.) A few instances already use the short option "-s", convert them to long option "--short".
* rogue: omit from the installation mediaVladimír Čunát2017-08-291-1/+1
| | | | | At least for now. It would increase the ISO size by ~10 MB, after the fixup in the parent commit.
* nixos/tests/installer: Add stdenvNoCC to extraDependenciesTuomas Tynkkynen2017-08-241-0/+3
| | | | | | | | | | | | | | | | | | The installer tests are failing after 505e94256ef247dc54250 due to `nixos-rebuild switch` in the installed system trying to build stdenvNoCC. Seems that previously, stdenvNoCC wasn't in the installed system either, but all the direct dependencies for the build were (I don't really understand why, for that matter), so the building actually went fine and everything worked. But now gcc is also a direct build dependency due to allowedRequisites containing gcc (even though it doesn't become a runtime dependency) which doesn't get to the installed system. All in all, let's ensure stdenvNoCC actually gets to the installed system. It's after all necessary in almost any NixOS config build.
* tests/installer: Rename simpleUefiGummiboot -> simpleUefiSystemdBootTuomas Tynkkynen2017-08-191-1/+1
| | | | It hasn't been called Gummiboot for ages.
* nixos: installer.nix test: test ZFS install use caseGraham Christensen2017-06-281-0/+39
|
* nixos-artwork: add more wallpapersromildo2017-06-071-1/+1
| | | | | | | | | 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.
* OVMF: separate output for ovmf binariesJoachim Fasting2017-05-201-1/+1
| | | | | | | | | | | | | | | | | | OVMF{,CODE,VARS}.fd are now available in a dedicated fd output, greatly reducing the closure in the common case where only those files are used (a few MBs versus several hundred MBs for the full OVMF). Note: it's unclear why `dontPatchELF` is now necessary for the build to pass (on my end, at any rate) but it doesn't make much sense to run this fixup anyway, Note: my reading of xen's INSTALL suggests that --with-system-ovmf should point directly to the OVMF binary. As such, the previous invocation was incorrect (it pointed to the root of the OVMF tree). In any case, I have only built xen with `--with-system-ovmf`, I have not tested it. Fixes https://github.com/NixOS/nixpkgs/issues/25854 Closes https://github.com/NixOS/nixpkgs/pull/25855
* Refactor nixos-install to separate out filesystem build logicDan Peebles2017-04-161-3/+15
| | | | | | | | | | | The key distinction I'm drawing is that there's a component that deals with the store of the machine being built, and another component for the store building it. The inner part of it assumes nothing from the builder (doesn't need chroot or root powers) so it can run comfortably inside a Nix build, as well as nixos-rebuild. I have some upcoming work that will use that to significantly speed up and streamline image builds for NixOS, especially on virtualized hosts like EC2, but it's also a reasonable speedup on native hosts.
* tests.installer: rely on swap.target in testsRobin Gloster2017-01-251-2/+2
| | | | fixes #5258
* nixos/tests/installer.nix: add libxml2 & libxslt to prevent download attemptsobadz2016-08-091-10/+12
|
* nixos/tests/installer.nix: add curl on host machineobadz2016-07-171-0/+4
| | | | | add curl so that rather than seeing the test attempt to download curl's tarball, we see what it's trying to download.
* Revert "nixos/tests/installer: Fix matching LUKS prompt"Nikolay Amiantov2016-07-171-1/+1
| | | | | | This reverts commit ec072cbc4c87edd4ece210121dba83abeff0a018. See also 193ab8be67ef941321e6b079db7e73b1d04cf9a8
* nixos/tests/installer: Fix matching LUKS promptaszlig2016-07-171-1/+1
| | | | | | | | | | | | | | | | The LUKS passphrase prompt has changed from "Enter passphrase" to "Enter LUKS Passphrase" in c69c76ca7efecba24aba555c2a03f933997d1fd5, so the OCR detection of the test fails indefinitely. Unfortunately, this doesn't fix the test because we have a real problem here: Enter LUKS Passphrase: killall: cryptsetup: no process killed Enter LUKS Passphrase: Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @abbradar
* Rename boot.loader.gummiboot.enable -> boot.loader.systemd-boot.enableEelco Dolstra2016-06-011-7/+7
|
* Use systemd-boot instead of gummibootEelco Dolstra2016-05-311-1/+0
| | | | Gummiboot is part of systemd now so we may as well use it.
* nixos/tests/installer.nix: nixos-generate-config detects LUKS since a7baec7obadz2016-05-261-5/+0
| | | | Fixes nix-build '<nixos/release.nix>' -A tests.installer.luksroot.x86_64-linux