diff --git a/example/bcachefs.nix b/example/bcachefs.nix index 37ab460..7e153af 100644 --- a/example/bcachefs.nix +++ b/example/bcachefs.nix @@ -129,8 +129,9 @@ }; }; - # Example showing a bcachefs filesystem without subvolumes - # and which relies on a subvolume in another filesystem being mounted. + # Example showing a bcachefs filesystem without subvolumes, + # which relies on a subvolume in another filesystem being mounted + # and uses a hard-coded UUID. relies_on_external_subvolume = { type = "bcachefs_filesystem"; mountpoint = "/home/Documents"; @@ -141,6 +142,7 @@ mountOptions = [ "verbose" ]; + uuid = "64e50034-ebe2-eaf8-1f93-cf56266a8d86"; }; }; }; diff --git a/tests/bcachefs.nix b/tests/bcachefs.nix index 4becbde..ccd235d 100644 --- a/tests/bcachefs.nix +++ b/tests/bcachefs.nix @@ -109,7 +109,7 @@ diskoLib.testLib.makeDiskoTest { | .. \ | select(.target? == "/home/Documents") \ | .source \ - | contains("/dev/vdd1") \ + | contains("/dev/disk/by-uuid/64e50034-ebe2-eaf8-1f93-cf56266a8d86") \ ' """);