diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 17:19:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-29 17:19:21 -0400 |
commit | 602cada851b28c5792339786efe872fbdc1f5d41 (patch) | |
tree | 233d474b74d6038b5bb54a07ad91dd1bb10b0218 /init/do_mounts.c | |
parent | 82991c6f2c361acc17279b8124d9bf1878973435 (diff) | |
parent | fee68d1cc0d9bd863e51c16cdcd707737b16bb38 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/devfs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/devfs-2.6: (22 commits)
[PATCH] devfs: Remove it from the feature_removal.txt file
[PATCH] devfs: Last little devfs cleanups throughout the kernel tree.
[PATCH] devfs: Rename TTY_DRIVER_NO_DEVFS to TTY_DRIVER_DYNAMIC_DEV
[PATCH] devfs: Remove the tty_driver devfs_name field as it's no longer needed
[PATCH] devfs: Remove the line_driver devfs_name field as it's no longer needed
[PATCH] devfs: Remove the videodevice devfs_name field as it's no longer needed
[PATCH] devfs: Remove the gendisk devfs_name field as it's no longer needed
[PATCH] devfs: Remove the miscdevice devfs_name field as it's no longer needed
[PATCH] devfs: Remove the devfs_fs_kernel.h file from the tree
[PATCH] devfs: Remove devfs_remove() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_cdev() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_bdev() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_symlink() function from the kernel tree
[PATCH] devfs: Remove devfs_mk_dir() function from the kernel tree
[PATCH] devfs: Remove devfs_*_tape() functions from the kernel tree
[PATCH] devfs: Remove devfs support from the sound subsystem
[PATCH] devfs: Remove devfs support from the ide subsystem.
[PATCH] devfs: Remove devfs support from the serial subsystem
[PATCH] devfs: Remove devfs from the init code
[PATCH] devfs: Remove devfs from the partition code
...
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r-- | init/do_mounts.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index 21b3b8f33a72..94aeec7aa917 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c | |||
@@ -325,7 +325,7 @@ static int __init mount_nfs_root(void) | |||
325 | { | 325 | { |
326 | void *data = nfs_root_data(); | 326 | void *data = nfs_root_data(); |
327 | 327 | ||
328 | create_dev("/dev/root", ROOT_DEV, NULL); | 328 | create_dev("/dev/root", ROOT_DEV); |
329 | if (data && | 329 | if (data && |
330 | do_mount_root("/dev/root", "nfs", root_mountflags, data) == 0) | 330 | do_mount_root("/dev/root", "nfs", root_mountflags, data) == 0) |
331 | return 1; | 331 | return 1; |
@@ -386,7 +386,7 @@ void __init mount_root(void) | |||
386 | change_floppy("root floppy"); | 386 | change_floppy("root floppy"); |
387 | } | 387 | } |
388 | #endif | 388 | #endif |
389 | create_dev("/dev/root", ROOT_DEV, root_device_name); | 389 | create_dev("/dev/root", ROOT_DEV); |
390 | mount_block_root("/dev/root", root_mountflags); | 390 | mount_block_root("/dev/root", root_mountflags); |
391 | } | 391 | } |
392 | 392 | ||
@@ -397,8 +397,6 @@ void __init prepare_namespace(void) | |||
397 | { | 397 | { |
398 | int is_floppy; | 398 | int is_floppy; |
399 | 399 | ||
400 | mount_devfs(); | ||
401 | |||
402 | if (root_delay) { | 400 | if (root_delay) { |
403 | printk(KERN_INFO "Waiting %dsec before mounting root device...\n", | 401 | printk(KERN_INFO "Waiting %dsec before mounting root device...\n", |
404 | root_delay); | 402 | root_delay); |
@@ -428,10 +426,8 @@ void __init prepare_namespace(void) | |||
428 | 426 | ||
429 | mount_root(); | 427 | mount_root(); |
430 | out: | 428 | out: |
431 | umount_devfs("/dev"); | ||
432 | sys_mount(".", "/", NULL, MS_MOVE, NULL); | 429 | sys_mount(".", "/", NULL, MS_MOVE, NULL); |
433 | sys_chroot("."); | 430 | sys_chroot("."); |
434 | security_sb_post_mountroot(); | 431 | security_sb_post_mountroot(); |
435 | mount_devfs_fs (); | ||
436 | } | 432 | } |
437 | 433 | ||