<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/init/initramfs.c, branch linux-2.6.30.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-2.6.30.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-2.6.30.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2009-05-06T23:36:10Z</updated>
<entry>
<title>initramfs: clean up messages related to initramfs unpacking</title>
<updated>2009-05-06T23:36:10Z</updated>
<author>
<name>Eric Piel</name>
<email>eric.piel@tremplin-utc.net</email>
</author>
<published>2009-05-06T23:03:06Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=a1e6b6c1a676d25acdf079ee8ab5cdfeb5e5b835'/>
<id>urn:sha1:a1e6b6c1a676d25acdf079ee8ab5cdfeb5e5b835</id>
<content type='text'>
With the removal of duplicate unpack_to_rootfs() (commit
df52092f3c97788592ef72501a43fb7ac6a3cfe0) the messages displayed do not
actually correspond to what the kernel is doing.  In addition, depending
if ramdisks are supported or not, the messages are not at all the same.

So keep the messages more in sync with what is really doing the kernel,
and only display a second message in case of failure.  This also ensure
that the printk message cannot be split by other printk's.

Signed-off-by: Eric Piel &lt;eric.piel@tremplin-utc.net&gt;
Acked-by: H. Peter Anvin &lt;hpa@zytor.com&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: fix initramfs to work with hardlinked init</title>
<updated>2009-04-13T22:04:31Z</updated>
<author>
<name>Randy Robertson</name>
<email>rmrobert@vmware.com</email>
</author>
<published>2009-04-13T21:40:04Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d20d5a7456d57d8affa88f45f27ae96ea49c29e4'/>
<id>urn:sha1:d20d5a7456d57d8affa88f45f27ae96ea49c29e4</id>
<content type='text'>
Change cb6ff208076b5f434db1b8c983429269d719cef5 ("NOMMU: Support XIP on
initramfs") seems to have broken booting from initramfs with /sbin/init
being a hardlink.

It seems like the logic required for XIP on nommu, i.e.  ftruncate to
reported cpio header file size (body_len) is broken for hardlinks, which
have a reported size of 0, and the truncate thus nukes the contents of the
file (in my case busybox), making boot impossible and ending with runaway
loop modprobe binfmt-0000 - and of course 0000 is not a valid binary
format.

My fix is to only call ftruncate if size is non-zero which fixes things
for me, but I'm not certain whether this will break XIP for those files on
nommu systems, although I would guess not.

Signed-off-by: Randy Robertson &lt;rmrobert@vmware.com&gt;
Acked-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Acked-by: H. Peter Anvin &lt;hpa@zytor.com&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>init/initramfs: fix warning with CONFIG_BLK_DEV_RAM=n</title>
<updated>2009-04-13T22:04:28Z</updated>
<author>
<name>Nikanth Karthikesan</name>
<email>knikanth@suse.de</email>
</author>
<published>2009-04-13T21:39:38Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b52bb3712a64c404846f30300b339cfd01e316be'/>
<id>urn:sha1:b52bb3712a64c404846f30300b339cfd01e316be</id>
<content type='text'>
init/initramfs.c:520: warning: 'clean_rootfs' defined but not used

Signed-off-by: Nikanth Karthikesan &lt;knikanth@suse.de&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: prevent initramfs printk message being split by messages from other code.</title>
<updated>2009-04-03T02:04:51Z</updated>
<author>
<name>Simon Kitching</name>
<email>skitching@apache.org</email>
</author>
<published>2009-04-02T23:57:00Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c1c490e017b66b31f6559db9cbb51a3ce00cf639'/>
<id>urn:sha1:c1c490e017b66b31f6559db9cbb51a3ce00cf639</id>
<content type='text'>
initramfs uses printk without a linefeed, then does some work, then uses
printk to finish the message off.  However if some other code does a
printk in between, then the messages get mixed together.  Better for each
message to be an independent line...

Example of problem that this fixes:

    checking if image is initramfs...&lt;7&gt;Switched to high resolution mode on CPU 1
    Switched to high resolution mode on CPU 0
    it is

Signed-off-by: Simon Kitching &lt;skitching@apache.org&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>Merge git://git.kernel.org/pub/scm/linux/kernel/git/arjan/linux-2.6-async-for-30</title>
<updated>2009-03-28T21:00:33Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-03-28T21:00:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=eedf2c5296a8dfaaf9aec1a938c1d3bd73159a30'/>
<id>urn:sha1:eedf2c5296a8dfaaf9aec1a938c1d3bd73159a30</id>
<content type='text'>
* git://git.kernel.org/pub/scm/linux/kernel/git/arjan/linux-2.6-async-for-30:
  fastboot: remove duplicate unpack_to_rootfs()
  ide/net: flip the order of SATA and network init
  async: remove the temporary (2.6.29) "async is off by default" code

Fix up conflicts in init/initramfs.c manually
</content>
</entry>
<entry>
<title>fastboot: remove duplicate unpack_to_rootfs()</title>
<updated>2009-03-28T20:06:22Z</updated>
<author>
<name>Li, Shaohua</name>
<email>shaohua.li@intel.com</email>
</author>
<published>2008-08-13T09:26:01Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=df52092f3c97788592ef72501a43fb7ac6a3cfe0'/>
<id>urn:sha1:df52092f3c97788592ef72501a43fb7ac6a3cfe0</id>
<content type='text'>
we check if initrd is initramfs first and then do the real unpack. The check
isn't required, we can directly do unpack.  If the initrd isn't an
initramfs, we can remove the garbage.  In my laptop, this saves 0.1s boot
time.

This patch penalizes non-initramfs initrd case, but nowadays, initramfs is
the most widely used method for initrds.

Signed-off-by: Shaohua Li &lt;shaohua.li@intel.com&gt;
Acked-by: Arjan van de Ven &lt;arjan@infradead.org&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>init: make initrd/initramfs decompression failure a KERN_EMERG event</title>
<updated>2009-01-14T19:28:35Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@linux.intel.com</email>
</author>
<published>2009-01-14T19:28:35Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=73310a169aebe257efdd35a763cce1c7658f40c9'/>
<id>urn:sha1:73310a169aebe257efdd35a763cce1c7658f40c9</id>
<content type='text'>
Impact: More consistent behaviour, avoid policy in the kernel

Upgrade/downgrade initrd/initramfs decompression failure from
inconsistently a panic or a KERN_ALERT message to a KERN_EMERG event.
It is, however, possible do design a system which can recover from
this (using the kernel builtin code and/or the internal initramfs),
which means this is policy, not a technical necessity.

A good way to handle this would be to have a panic-level=X option, to
force a panic on a printk above a certain level.  That is a separate
patch, however.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>bzip2/lzma: comprehensible error messages for missing decompressor</title>
<updated>2009-01-12T22:34:31Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@linux.intel.com</email>
</author>
<published>2009-01-12T22:24:04Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=23a22d57a8962479ca630c9542e62d6f86fdf927'/>
<id>urn:sha1:23a22d57a8962479ca630c9542e62d6f86fdf927</id>
<content type='text'>
Instead of failing to identify a compressed image with a decompressor
that we don't have compiled in, identify it and fail with a
comprehensible panic message.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>bzip2/lzma: make flush_buffer() unconditional</title>
<updated>2009-01-10T11:06:19Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2009-01-10T11:06:19Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=736f93236ce786d1bcf09ad4dcb38a360d35ea1b'/>
<id>urn:sha1:736f93236ce786d1bcf09ad4dcb38a360d35ea1b</id>
<content type='text'>
Impact: build fix

flush_buffer() is used unconditionally:

  init/initramfs.c:456: error: 'flush_buffer' undeclared (first use in this function)
  init/initramfs.c:456: error: (Each undeclared identifier is reported only once
  init/initramfs.c:456: error: for each function it appears in.)

So remove the decompressor #ifdefs from around it.

Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>Merge branch 'linus' into x86/setup-lzma</title>
<updated>2009-01-10T11:04:41Z</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@elte.hu</email>
</author>
<published>2009-01-10T11:04:41Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b17304245f0db0ac69b795c411407808f3f2796d'/>
<id>urn:sha1:b17304245f0db0ac69b795c411407808f3f2796d</id>
<content type='text'>
Conflicts:
	init/do_mounts_rd.c
</content>
</entry>
</feed>
