From 15bed77a223ff0d7699b7ab52d722e9984223a5c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 25 Jul 2023 15:16:54 +0200 Subject: [PATCH] setup filesystem wrappers before we mark the root as setup Signed-off-by: Robin Appelman --- lib/private/Files/SetupManager.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/Files/SetupManager.php b/lib/private/Files/SetupManager.php index 469102e21cf15..69d80a90b7acc 100644 --- a/lib/private/Files/SetupManager.php +++ b/lib/private/Files/SetupManager.php @@ -335,12 +335,13 @@ public function setupRoot(): void { if ($this->rootSetup) { return; } + + $this->setupBuiltinWrappers(); + $this->rootSetup = true; $this->eventLogger->start('fs:setup:root', 'Setup root filesystem'); - $this->setupBuiltinWrappers(); - $rootMounts = $this->mountProviderCollection->getRootMounts(); foreach ($rootMounts as $rootMountProvider) { $this->mountManager->addMount($rootMountProvider);