nixos/tests/orangefs: Use autoFormat

Changed files
+8 -5
nixos
tests
+8 -5
nixos/tests/orangefs.nix
···
{ pkgs, ... }:
{
networking.firewall.allowedTCPPorts = [ 3334 ];
-
boot.initrd.postDeviceCommands = ''
-
${pkgs.e2fsprogs}/bin/mkfs.ext4 -L data /dev/vdb
-
'';
-
virtualisation.emptyDiskImages = [ 4096 ];
+
virtualisation.emptyDiskImages = [
+
{
+
size = 4096;
+
driveConfig.deviceExtraOpts.serial = "data";
+
}
+
];
virtualisation.fileSystems = {
"/data" = {
-
device = "/dev/disk/by-label/data";
+
device = "/dev/disk/by-id/virtio-data";
fsType = "ext4";
+
autoFormat = true;
};
};