Lines 354-360
Link Here
|
354 |
va_start(args, fmt); |
354 |
va_start(args, fmt); |
355 |
vsprintf(buf, fmt, args); |
355 |
vsprintf(buf, fmt, args); |
356 |
va_end(args); |
356 |
va_end(args); |
357 |
fd = sys_open("/dev/root", O_RDWR | O_NDELAY, 0); |
357 |
if (saved_root_name[0]) |
|
|
358 |
fd = sys_open(saved_root_name, O_RDWR | O_NDELAY, 0); |
359 |
else |
360 |
fd = sys_open("/dev/root", O_RDWR | O_NDELAY, 0); |
358 |
if (fd >= 0) { |
361 |
if (fd >= 0) { |
359 |
sys_ioctl(fd, FDEJECT, 0); |
362 |
sys_ioctl(fd, FDEJECT, 0); |
360 |
sys_close(fd); |
363 |
sys_close(fd); |
Lines 397-404
Link Here
|
397 |
} |
400 |
} |
398 |
#endif |
401 |
#endif |
399 |
#ifdef CONFIG_BLOCK |
402 |
#ifdef CONFIG_BLOCK |
400 |
create_dev("/dev/root", ROOT_DEV); |
403 |
if (saved_root_name[0]) { |
401 |
mount_block_root("/dev/root", root_mountflags); |
404 |
create_dev(saved_root_name, ROOT_DEV); |
|
|
405 |
mount_block_root(saved_root_name, root_mountflags); |
406 |
} else { |
407 |
create_dev("/dev/root", ROOT_DEV); |
408 |
mount_block_root("/dev/root", root_mountflags); |
409 |
} |
402 |
#endif |
410 |
#endif |
403 |
} |
411 |
} |
404 |
|
412 |
|