Skip to content

Commit

Permalink
Merge pull request #928 from aos/aos/xfs-options
Browse files Browse the repository at this point in the history
doc: simple xfs with options
  • Loading branch information
Mic92 authored Dec 29, 2024
2 parents 3a4de9f + 7d9940a commit 84a5b93
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
34 changes: 34 additions & 0 deletions example/xfs-with-quota.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
disko.devices = {
disk = {
main = {
device = "/dev/disk/by-id/some-disk-id";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "xfs";
mountpoint = "/";
mountOptions = [ "defaults" "pquota" ];
};
};
};
};
};
};
};
}
13 changes: 13 additions & 0 deletions tests/xfs.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ pkgs ? import <nixpkgs> { }
, diskoLib ? pkgs.callPackage ../lib { }
}:
diskoLib.testLib.makeDiskoTest {
inherit pkgs;
name = "xfs";
disko-config = ../example/xfs-with-quota.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
machine.succeed("xfs_quota -c 'print' / | grep -q '(pquota)'")
'';
}

0 comments on commit 84a5b93

Please sign in to comment.