Skip to content

Commit a36e3c3

Browse files
committed
Don't warn if /dev was already mounted
This happens in syspart mode when CONFIG_DEVTMPFS_MOUNT=y.
1 parent 753acbb commit a36e3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mininit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ int main(int argc, char **argv, char **envp)
9797
logfile = stderr;
9898

9999
/* Mount devtmpfs to get a full set of device nodes. */
100-
if (mount("devtmpfs", "/dev", "devtmpfs", 0, NULL)) {
100+
if (mount("devtmpfs", "/dev", "devtmpfs", 0, NULL) && errno != EBUSY) {
101101
INFO("Couldn't mount devtmpfs on /dev: %d\n", errno);
102102
/* If there are sufficient static device nodes in the fs containing
103103
* mininit, we can boot without devtmpfs, so don't give up yet. */

0 commit comments

Comments
 (0)