mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
feat: noop partitions
Some deployments just need a raw block device because the app works better when handling those. Examples: Ceph, Longhorn, OpenEBS. The new `noop` type supports that. It just does nothing with the partitions created, whenever applied. @moduon MT-904
This commit is contained in:
parent
1af856886e
commit
9b53ee7b11
2 changed files with 15 additions and 1 deletions
|
|
@ -56,13 +56,20 @@ import <nixpkgs/nixos/tests/make-test.nix> ({ pkgs, ... }: let
|
|||
};
|
||||
home = {
|
||||
type = "lv";
|
||||
size = "100M";
|
||||
size = "10M";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/home";
|
||||
};
|
||||
};
|
||||
raw = {
|
||||
type = "lv";
|
||||
size = "10M";
|
||||
content = {
|
||||
type = "noop";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -92,6 +99,7 @@ in {
|
|||
$machine->succeed("echo 'secret' > /tmp/secret.key");
|
||||
$machine->succeed("${pkgs.writeScript "create" ((import ../lib).create disko-config)}");
|
||||
$machine->succeed("${pkgs.writeScript "mount" ((import ../lib).mount disko-config)}");
|
||||
$machine->succeed("test -b /dev/mapper/pool-raw");
|
||||
'';
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue