From 78d6a1365cde90a479edc9ff7ea5dbd8b2e0cfb8 Mon Sep 17 00:00:00 2001 From: nothingnesses <18732253+nothingnesses@users.noreply.github.com> Date: Wed, 7 May 2025 16:23:03 +0100 Subject: [PATCH] Use a hard-coded UUID for the failing example to get it to work --- example/bcachefs.nix | 6 ++++-- tests/bcachefs.nix | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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") \ ' """);