Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision 1701a24df3b958382b7af2d39357461f78f63806)
+++ uspace/srv/loader/main.c	(revision ea5609867cbe89cffaf2f98eed3bae5a2cdb99cd)
@@ -261,4 +261,11 @@
 	}
 
+	/*
+	 * We need to set the root early for dynamically linked binaries so
+	 * that the loader can use it too.
+	 */
+	if (str_cmp(name, "root") == 0)
+		vfs_root_set(file);
+
 	inbox[inbox_entries].name = name;
 	inbox[inbox_entries].file = file;
