mirror of
https://github.com/nix-community/disko.git
synced 2026-12-03 14:33: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 = {
|
disk = {
|
||||||
main = {
|
main = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = disk;
|
device = builtins.elemAt disks 0;
|
||||||
content = {
|
content = {
|
||||||
type = "table";
|
type = "table";
|
||||||
format = "gpt";
|
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