Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23576
b: refs/heads/master
c: 340e48e
h: refs/heads/master
v: v3
  • Loading branch information
Zdenek Pavlas authored and Linus Torvalds committed Mar 25, 2006
1 parent c6f3805 commit 316b1cb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 05eeae208d08a05a6980cf2ff61f02843c0955fd
refs/heads/master: 340e48e662dc9bf79cdd9dc755cb2eb2bad580cd
1 change: 0 additions & 1 deletion trunk/drivers/block/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ config BLK_DEV_RAM_SIZE

config BLK_DEV_INITRD
bool "Initial RAM disk (initrd) support"
depends on BLK_DEV_RAM=y
help
The initial RAM disk is a RAM disk that is loaded by the boot loader
(loadlin or lilo) and that is mounted as root before the normal boot
Expand Down
10 changes: 10 additions & 0 deletions trunk/init/initramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ void __init populate_rootfs(void)
panic(err);
#ifdef CONFIG_BLK_DEV_INITRD
if (initrd_start) {
#ifdef CONFIG_BLK_DEV_RAM
int fd;
printk(KERN_INFO "checking if image is initramfs...");
err = unpack_to_rootfs((char *)initrd_start,
Expand All @@ -525,6 +526,15 @@ void __init populate_rootfs(void)
sys_close(fd);
free_initrd();
}
#else
printk(KERN_INFO "Unpacking initramfs...");
err = unpack_to_rootfs((char *)initrd_start,
initrd_end - initrd_start, 0);
if (err)
panic(err);
printk(" done\n");
free_initrd();
#endif
}
#endif
}

0 comments on commit 316b1cb

Please sign in to comment.