]> git.hungrycats.org Git - linux/commit
[PATCH] drivers/block/initrd.c removal
authorAndrew Morton <akpm@osdl.org>
Thu, 16 Oct 2003 00:29:46 +0000 (17:29 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 16 Oct 2003 00:29:46 +0000 (17:29 -0700)
commit0af6568743dd65469d9bb21794c9511feef055ed
tree2c13ae5d76bf9ac19b5f51c6e1576cd43a24100d
parent01d259fe61c43fe659b9e94d098288c50bdc6c61
[PATCH] drivers/block/initrd.c removal

From: viro@parcelfarce.linux.theplanet.co.uk

* drivers/block/initrd.c gone

* chunk of memory where the current tree would look for intird image is
  checked for being a valid initramfs image first; then, it is either
  unpacked (in addition to normal built-in image) or, if it wasn't a valid
  image, copied into a regular file on rootfs called /dev/initrd.  Then
  memory is freed.

Result:

a) we can put initramfs image in place of initrd one and kernel will DTRT.

b) initrd images still work as usual; code that shoves the thing to
   ramdisk, etc.  doesn't care whether it reads from a block device or
   regular file.

c) initrd.c is gone, so is fake block device and a lot of irregularities
   with it.

It has been in -mm for almost two weeks with no reported problems.
drivers/block/Makefile
drivers/block/initrd.c [deleted file]
init/do_mounts_initrd.c
init/initramfs.c