Change into the root dir of the FS directly after mounting.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11585 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2005-03-05 20:39:02 +00:00
parent f64fcd3794
commit e19f027e30
@@ -46,6 +46,13 @@ init_fs(char *disk_name)
printf("could not mount %s on /myfs\n", disk_name);
exit(0);
}
err = sys_chdir(1, -1, "/myfs");
if (err != 0) {
printf("Failed to cd into /myfs.");
sys_unmount(1, -1, "/myfs");
exit(0);
}
return data;
}