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:
@@ -47,5 +47,12 @@ init_fs(char *disk_name)
|
|||||||
exit(0);
|
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;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user