On Sun, Dec 02, 2007 at 08:18:32AM -0500, Robert P. J. Day wrote: > On Sun, 2 Dec 2007, Erik Mouw wrote: > > > On Sat, Dec 01, 2007 at 09:22:28PM -0500, Robert P. J. Day wrote: > > > > > > just perusing the simple code in init/noinitramfs.c, which is > > > what's invoked if you choose not to build in initrd support: > > > > No, that's invoked when you choose not to build initramfs. IOW: it > > is used when you build with initrd. > > i disagree. check the code. heck, check the excerpt from > init/Kconfig: > > config BLK_DEV_INITRD > bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" > > if you choose not to add that feature, you get *neither* initramfs nor > initrd support, regardless of what that filename suggests. (it is > precisely this kind of misunderstanding that inspired me to go thru > the code to see exactly what was happening.) OK, apparantly that part changed since the last time I went over that code. /me consults git... erik@arthur:~/git/linux-2.6 > git log init/noinitramfs.c commit c33df4eaaf41fd3e34837a6ae9a5f9970c393d9f Author: Jean-Paul Saman <jean-paul.saman@xxxxxxx> Date: Sat Feb 10 01:44:43 2007 -0800 [PATCH] disable init/initramfs.c It changed. > > No, when you don't use initrd, you get initramfs. > > when i referred to "not building in initrd support," i meant > specifically not selecting BLK_DEV_INITRD above. which removes your > ability to use initramfs. in point of fact, that Kconfig variable is > now *horribly* misnamed as it actually refers to initramfs support, > both internal and external. > > whether you still have the ability to use non-cpio external ramdisk > images (that is, the old style ext2 images) is now dictated by your > selection of CONFIG_BLK_DEV_RAM. Old style doesn't imply ext2. Early distribution boot disks used Minix, for example. > p.s. quite simply, when you mention "initrd" support these days, > you're actually talking about initramfs support, as you can see from > this snippet from init/Makefile: > > ifneq ($(CONFIG_BLK_DEV_INITRD),y) > obj-y += noinitramfs.o > else > obj-$(CONFIG_BLK_DEV_INITRD) += initramfs.o > endif Yeah, it became quite confusing. Erik -- They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
Attachment:
signature.asc
Description: Digital signature