1 import ./make-test-python.nix ({ pkgs, ... }: {
3 meta.maintainers = with pkgs.lib.maintainers; [ Madouura ];
5 nodes.machine = { pkgs, ... }: {
6 virtualisation.emptyDiskImages = [ 4096 ];
7 networking.hostId = "deadbeef";
8 boot.supportedFilesystems = [ "bcachefs" ];
9 environment.systemPackages = with pkgs; [ parted keyutils ];
13 machine.succeed("modprobe bcachefs")
14 machine.succeed("bcachefs version")
15 machine.succeed("ls /dev")
20 "parted --script /dev/vdb mklabel msdos",
21 "parted --script /dev/vdb -- mkpart primary 1024M 50% mkpart primary 50% -1s",
23 "echo password | bcachefs format --encrypted --metadata_replicas 2 --label vtest /dev/vdb1 /dev/vdb2",
24 "echo password | bcachefs unlock -k session /dev/vdb1",
25 "echo password | mount -t bcachefs /dev/vdb1:/dev/vdb2 /tmp/mnt",
27 "bcachefs fs usage /tmp/mnt",