<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/init/initramfs.c, branch v2.6.25</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v2.6.25</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v2.6.25'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2008-03-15T18:58:04Z</updated>
<entry>
<title>ACPI: Remove ACPI_CUSTOM_DSDT_INITRD option</title>
<updated>2008-03-15T18:58:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2008-03-15T18:53:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9a9e0d685553af76cb6ae2af93cca4913e7fcd47'/>
<id>urn:sha1:9a9e0d685553af76cb6ae2af93cca4913e7fcd47</id>
<content type='text'>
This essentially reverts commit 71fc47a9adf8ee89e5c96a47222915c5485ac437
("ACPI: basic initramfs DSDT override support"), because the code simply
isn't ready.

It did ugly things to the init sequence to populate the rootfs image
early, but that just ended up showing other problems with the whole
approach.  The fact is, the VFS layer simply isn't initialized this
early, and the relevant ACPI code should either run much later, or this
shouldn't be done at all.

For 2.6.25, we'll just pick the latter option.  We can revisit this
concept later if necessary.

Cc: Dave Hansen &lt;haveblue@us.ibm.com&gt;
Cc: Tilman Schmidt &lt;tilman@imap.cc&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Thomas Renninger &lt;trenn@suse.de&gt;
Cc: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Cc: Len Brown &lt;len.brown@intel.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Markus Gaugusch &lt;dsdt@gaugusch.at&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>ACPI: basic initramfs DSDT override support</title>
<updated>2008-02-07T03:07:41Z</updated>
<author>
<name>Markus Gaugusch</name>
<email>dsdt@gaugusch.at</email>
</author>
<published>2008-02-04T23:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=71fc47a9adf8ee89e5c96a47222915c5485ac437'/>
<id>urn:sha1:71fc47a9adf8ee89e5c96a47222915c5485ac437</id>
<content type='text'>
The basics of DSDT from initramfs. In case this option is selected,
populate_rootfs() is called a bit earlier to have the initramfs content
available during ACPI initialization.

This is a very similar path to the one available at
http://gaugusch.at/kernel.shtml but with some update in the
documentation, default set to No and the change of populate_rootfs() the
"Jeff Mahony way" (which avoids reading the initramfs twice).

Signed-off-by: Thomas Renninger &lt;trenn@suse.de&gt;
Signed-off-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Signed-off-by: Len Brown &lt;len.brown@intel.com&gt;
</content>
</entry>
<entry>
<title>Remove superfluous checks for CONFIG_BLK_DEV_INITRD from initramfs.c</title>
<updated>2008-02-06T18:41:06Z</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2008-02-06T09:37:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b25b7819e51f388f8c8d7ae4679a658895dc67cc'/>
<id>urn:sha1:b25b7819e51f388f8c8d7ae4679a658895dc67cc</id>
<content type='text'>
Given that init/Makefile includes initramfs.c in the build only if
CONFIG_BLK_DEV_INITRD is defined, there seems to be no point checking for
it yet again.

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>initramfs: missing __init</title>
<updated>2007-07-26T18:11:56Z</updated>
<author>
<name>Al Viro</name>
<email>viro@ftp.linux.org.uk</email>
</author>
<published>2007-07-26T16:33:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=b0a5ab93158586e599ecd0d24a9a72da74d23ddd'/>
<id>urn:sha1:b0a5ab93158586e599ecd0d24a9a72da74d23ddd</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add retain_initrd boot option</title>
<updated>2007-02-11T18:51:24Z</updated>
<author>
<name>Michael Neuling</name>
<email>mikey@neuling.org</email>
</author>
<published>2007-02-10T09:44:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0a7b35cb18c52d651f6ed9cd59edc979200ab880'/>
<id>urn:sha1:0a7b35cb18c52d651f6ed9cd59edc979200ab880</id>
<content type='text'>
Add retain_initrd option to control freeing of initrd memory after
extraction.  By default, free memory as previously.

The first boot will need to hold a copy of the in memory fs for the second
boot.  This image can be large (much larger than the kernel), hence we can
save time when the memory loader is slow.  Also, it reduces the memory
footprint while extracting the first boot since you don't need another copy
of the fs.

Signed-off-by: Michael Neuling &lt;mikey@neuling.org&gt;
Cc: "Randy.Dunlap" &lt;rdunlap@xenotime.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Make sure we populate the initroot filesystem late enough</title>
<updated>2006-12-11T20:12:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@woody.osdl.org</email>
</author>
<published>2006-12-11T20:12:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=8d610dd52dd1da696e199e4b4545f33a2a5de5c6'/>
<id>urn:sha1:8d610dd52dd1da696e199e4b4545f33a2a5de5c6</id>
<content type='text'>
We should not initialize rootfs before all the core initializers have
run.  So do it as a separate stage just before starting the regular
driver initializers.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Make initramfs printk a warning on incorrect cpio type</title>
<updated>2006-12-07T16:39:36Z</updated>
<author>
<name>Arjan van de Ven</name>
<email>arjan@linux.intel.com</email>
</author>
<published>2006-12-07T04:37:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2e591bbc0d563e12f5a260fbbca0df7d5810910e'/>
<id>urn:sha1:2e591bbc0d563e12f5a260fbbca0df7d5810910e</id>
<content type='text'>
It turns out that the "-c" option of cpio is highly unportable even between
distros let alone unix variants, and may actually make the wrong type of
cpio archive.  I just wasted quite some time on this, and the kernel can
detect this and warn about it (it's __init memory so it gets thrown away
and thus there is no runtime overhead)

Signed-off-by: Arjan van de Ven &lt;arjan@linux.intel.com&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] initramfs overwrite fix</title>
<updated>2006-06-26T16:58:40Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2006-06-26T07:28:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=2139a7fbf3effd8cad505871e3a3c308780ada32'/>
<id>urn:sha1:2139a7fbf3effd8cad505871e3a3c308780ada32</id>
<content type='text'>
This patch ensures that initramfs overwrites work correctly, even when dealing
with device nodes of different types.  Furthermore, when replacing a file
which already exists, we must make very certain that we truncate the existing
file.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Cc: Michael Neuling &lt;mikey@neuling.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] initramfs: fix CPIO hardlink check</title>
<updated>2006-05-15T18:20:55Z</updated>
<author>
<name>Mark Huang</name>
<email>mlhuang@CS.Princeton.EDU</email>
</author>
<published>2006-05-15T16:44:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6a050da45b5d855b48b057446847ff1542977b52'/>
<id>urn:sha1:6a050da45b5d855b48b057446847ff1542977b52</id>
<content type='text'>
Copy the filenames of hardlinks when inserting them into the hash, since
the "name" pointer may point to scratch space (name_buf).  Not doing so
results in corruption if the scratch space is later overwritten: the wrong
file may be hardlinked, or, if the scratch space contains garbage, the link
will fail and a 0-byte file will be created instead.

Signed-off-by: Mark Huang &lt;mlhuang@cs.princeton.edu&gt;
Acked-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Fix typo causing bad mode of /initrd.image</title>
<updated>2006-03-26T16:56:58Z</updated>
<author>
<name>Jason Gunthorpe</name>
<email>jgunthorpe@obsidianresearch.com</email>
</author>
<published>2006-03-26T09:37:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=33644c5e15917b36c26f0c30c48786c5e8e62be1'/>
<id>urn:sha1:33644c5e15917b36c26f0c30c48786c5e8e62be1</id>
<content type='text'>
I noticed that after boot with an initrd in 2.6.16 the rootfs had:

--w-r-xr-T    1 root     root      6241141 Jan  1  1970 initrd.image

Which is caused by a small typo:

Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
