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",
24 "echo password | bcachefs format --encrypted --metadata_replicas 2 --label vtest /dev/vdb1 /dev/vdb2",
25 "echo password | bcachefs unlock /dev/vdb1",
26 "mount -t bcachefs /dev/vdb1:/dev/vdb2 /tmp/mnt",
28 "bcachefs fs usage /tmp/mnt",