| OLD | NEW |
| 1 #include <linux/module.h> | 1 #include <linux/module.h> |
| 2 #include <linux/sched.h> | 2 #include <linux/sched.h> |
| 3 #include <linux/ctype.h> | 3 #include <linux/ctype.h> |
| 4 #include <linux/fd.h> | 4 #include <linux/fd.h> |
| 5 #include <linux/tty.h> | 5 #include <linux/tty.h> |
| 6 #include <linux/suspend.h> | 6 #include <linux/suspend.h> |
| 7 #include <linux/root_dev.h> | 7 #include <linux/root_dev.h> |
| 8 #include <linux/security.h> | 8 #include <linux/security.h> |
| 9 #include <linux/delay.h> | 9 #include <linux/delay.h> |
| 10 #include <linux/genhd.h> | 10 #include <linux/genhd.h> |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 * | 378 * |
| 379 * Note: this is a potential source of long boot delays. | 379 * Note: this is a potential source of long boot delays. |
| 380 * For example, it is not atypical to wait 5 seconds here | 380 * For example, it is not atypical to wait 5 seconds here |
| 381 * for the touchpad of a laptop to initialize. | 381 * for the touchpad of a laptop to initialize. |
| 382 */ | 382 */ |
| 383 wait_for_device_probe(); | 383 wait_for_device_probe(); |
| 384 #endif | 384 #endif |
| 385 async_synchronize_full(); | 385 async_synchronize_full(); |
| 386 | 386 |
| 387 md_run_setup(); | 387 md_run_setup(); |
| 388 dm_run_setup(); |
| 388 | 389 |
| 389 if (saved_root_name[0]) { | 390 if (saved_root_name[0]) { |
| 390 root_device_name = saved_root_name; | 391 root_device_name = saved_root_name; |
| 391 if (!strncmp(root_device_name, "mtd", 3) || | 392 if (!strncmp(root_device_name, "mtd", 3) || |
| 392 !strncmp(root_device_name, "ubi", 3)) { | 393 !strncmp(root_device_name, "ubi", 3)) { |
| 393 mount_block_root(root_device_name, root_mountflags); | 394 mount_block_root(root_device_name, root_mountflags); |
| 394 goto out; | 395 goto out; |
| 395 } | 396 } |
| 396 ROOT_DEV = name_to_dev_t(root_device_name); | 397 ROOT_DEV = name_to_dev_t(root_device_name); |
| 397 if (strncmp(root_device_name, "/dev/", 5) == 0) | 398 if (strncmp(root_device_name, "/dev/", 5) == 0) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 415 | 416 |
| 416 if (is_floppy && rd_doload && rd_load_disk(0)) | 417 if (is_floppy && rd_doload && rd_load_disk(0)) |
| 417 ROOT_DEV = Root_RAM0; | 418 ROOT_DEV = Root_RAM0; |
| 418 | 419 |
| 419 mount_root(); | 420 mount_root(); |
| 420 out: | 421 out: |
| 421 devtmpfs_mount("dev"); | 422 devtmpfs_mount("dev"); |
| 422 sys_mount(".", "/", NULL, MS_MOVE, NULL); | 423 sys_mount(".", "/", NULL, MS_MOVE, NULL); |
| 423 sys_chroot("."); | 424 sys_chroot("."); |
| 424 } | 425 } |
| OLD | NEW |