removal: a target under the Data volume's root is inside it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Tobi Lütke
2026-09-25 15:39:33 +00:00
co-authored by Claude Opus 5.5
parent b9ba523a92
commit 46711fc816
+3 -1
View File
@@ -390,7 +390,9 @@ fn refuse(
if home_key.is_some_and(|home| home.starts_with(&key)) {
return Some("it contains the home directory".into());
}
if !key.starts_with(&root_key) {
// By spelling too: the Data volume's root keeps its name as a key, while
// everything under it is keyed as under `/`.
if !key.starts_with(&root_key) && !path.starts_with(root) {
return Some("outside the scanned root".into());
}
if let Some(system) = system_tree(&key, home_key) {