Index: uspace/srv/loader/main.c
===================================================================
--- uspace/srv/loader/main.c	(revision bb9ec2db4560230aeb342903a2cb929d99678366)
+++ uspace/srv/loader/main.c	(revision 0b97336d11bcc58a2ceb2de62e7d789187fda193)
@@ -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;
