mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
nixos/tests/glusterfs: Use autoFormat
This commit is contained in:
@@ -19,17 +19,18 @@ let
|
||||
networking.firewall.enable = false;
|
||||
services.glusterfs.enable = true;
|
||||
|
||||
# create a mount point for the volume
|
||||
boot.initrd.postDeviceCommands = ''
|
||||
${pkgs.e2fsprogs}/bin/mkfs.ext4 -L data /dev/vdb
|
||||
'';
|
||||
|
||||
virtualisation.emptyDiskImages = [ 1024 ];
|
||||
virtualisation.emptyDiskImages = [
|
||||
{
|
||||
size = 1024;
|
||||
driveConfig.deviceExtraOpts.serial = "data";
|
||||
}
|
||||
];
|
||||
|
||||
virtualisation.fileSystems = {
|
||||
"/data" = {
|
||||
device = "/dev/disk/by-label/data";
|
||||
device = "/dev/disk/by-id/virtio-data";
|
||||
fsType = "ext4";
|
||||
autoFormat = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user