diff options
Diffstat (limited to 'init/initramfs.c')
-rw-r--r-- | init/initramfs.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 84c6bf111300..a67ef9dbda9d 100644 --- a/init/initramfs.c +++ b/init/initramfs.c | |||
@@ -592,7 +592,7 @@ static int __init populate_rootfs(void) | |||
592 | initrd_end - initrd_start); | 592 | initrd_end - initrd_start); |
593 | if (!err) { | 593 | if (!err) { |
594 | free_initrd(); | 594 | free_initrd(); |
595 | return 0; | 595 | goto done; |
596 | } else { | 596 | } else { |
597 | clean_rootfs(); | 597 | clean_rootfs(); |
598 | unpack_to_rootfs(__initramfs_start, __initramfs_size); | 598 | unpack_to_rootfs(__initramfs_start, __initramfs_size); |
@@ -607,6 +607,7 @@ static int __init populate_rootfs(void) | |||
607 | sys_close(fd); | 607 | sys_close(fd); |
608 | free_initrd(); | 608 | free_initrd(); |
609 | } | 609 | } |
610 | done: | ||
610 | #else | 611 | #else |
611 | printk(KERN_INFO "Unpacking initramfs...\n"); | 612 | printk(KERN_INFO "Unpacking initramfs...\n"); |
612 | err = unpack_to_rootfs((char *)initrd_start, | 613 | err = unpack_to_rootfs((char *)initrd_start, |
@@ -615,6 +616,11 @@ static int __init populate_rootfs(void) | |||
615 | printk(KERN_EMERG "Initramfs unpacking failed: %s\n", err); | 616 | printk(KERN_EMERG "Initramfs unpacking failed: %s\n", err); |
616 | free_initrd(); | 617 | free_initrd(); |
617 | #endif | 618 | #endif |
619 | /* | ||
620 | * Try loading default modules from initramfs. This gives | ||
621 | * us a chance to load before device_initcalls. | ||
622 | */ | ||
623 | load_default_modules(); | ||
618 | } | 624 | } |
619 | return 0; | 625 | return 0; |
620 | } | 626 | } |