mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
add test for hybrid configuration
This commit is contained in:
1 parent
daaba55a28
commit
d23fcb611e
2 files changed
+11
-2
No files matched your search
+2
-2
@@ -1,9 +1,9 @@
|
||||
{ disk, ... }:
|
||||
{ disks ? [ "/dev/vda" ], ... }:
|
||||
{
|
||||
disk = {
|
||||
main = {
|
||||
type = "disk";
|
||||
device = disk;
|
||||
device = builtins.elemAt disks 0;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{ pkgs ? (import <nixpkgs> { })
|
||||
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
|
||||
}:
|
||||
makeDiskoTest {
|
||||
disko-config = ../example/hybrid.nix;
|
||||
extraTestScript = ''
|
||||
machine.succeed("mountpoint /");
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user