nixos/bcachefs: re-enable encryption in test
This commit is contained in:
parent
5a8602a87b
commit
4ee9b84ec5
|
@ -6,7 +6,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
virtualisation.emptyDiskImages = [ 4096 ];
|
virtualisation.emptyDiskImages = [ 4096 ];
|
||||||
networking.hostId = "deadbeef";
|
networking.hostId = "deadbeef";
|
||||||
boot.supportedFilesystems = [ "bcachefs" ];
|
boot.supportedFilesystems = [ "bcachefs" ];
|
||||||
environment.systemPackages = with pkgs; [ parted ];
|
environment.systemPackages = with pkgs; [ parted keyutils ];
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
|
@ -20,10 +20,9 @@ import ./make-test-python.nix ({ pkgs, ... }: {
|
||||||
"parted --script /dev/vdb mklabel msdos",
|
"parted --script /dev/vdb mklabel msdos",
|
||||||
"parted --script /dev/vdb -- mkpart primary 1024M 50% mkpart primary 50% -1s",
|
"parted --script /dev/vdb -- mkpart primary 1024M 50% mkpart primary 50% -1s",
|
||||||
"udevadm settle",
|
"udevadm settle",
|
||||||
# Due to #32279, we cannot use encryption for this test yet
|
"keyctl link @u @s",
|
||||||
# "echo password | bcachefs format --encrypted --metadata_replicas 2 --label vtest /dev/vdb1 /dev/vdb2",
|
"echo password | bcachefs format --encrypted --metadata_replicas 2 --label vtest /dev/vdb1 /dev/vdb2",
|
||||||
# "echo password | bcachefs unlock /dev/vdb1",
|
"echo password | bcachefs unlock /dev/vdb1",
|
||||||
"bcachefs format --metadata_replicas 2 --label vtest /dev/vdb1 /dev/vdb2",
|
|
||||||
"mount -t bcachefs /dev/vdb1:/dev/vdb2 /tmp/mnt",
|
"mount -t bcachefs /dev/vdb1:/dev/vdb2 /tmp/mnt",
|
||||||
"udevadm settle",
|
"udevadm settle",
|
||||||
"bcachefs fs usage /tmp/mnt",
|
"bcachefs fs usage /tmp/mnt",
|
||||||
|
|
Loading…
Reference in a new issue