From: Al Viro <viro@ftp.linux.org.uk>
To: Krzysztof Halasa <khc@pm.waw.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: RFC: initramfs unpack point and rules
Date: Thu, 12 Apr 2007 12:06:37 +0100 [thread overview]
Message-ID: <20070412110637.GG4095@ftp.linux.org.uk> (raw)
In-Reply-To: <m3ejmzdmow.fsf@maximus.localdomain>
On Thu, Apr 05, 2007 at 02:34:39PM +0200, Krzysztof Halasa wrote:
> First problem: initramfs is unpacked way before console drivers
> are initialized, so you aren't going to see the panic():
>
> init/initramfs.c:static int __init populate_rootfs(void)
> ...
> 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();
>
> I wonder why is initramfs unpacked that early, before most drivers?
> I'd expect it much later in the boot sequence, just before userspace
> and initial devices (/dev/console etc) are needed. Should it be moved
> there? populate_rootfs() unpacks both builtin and external initramfs.
Nope. The point is to have it as early as possible, so that we had more
or less normal environment when drivers, etc. are being initialized.
next prev parent reply other threads:[~2007-04-12 11:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-05 12:34 RFC: initramfs unpack point and rules Krzysztof Halasa
2007-04-05 14:31 ` Krzysztof Halasa
2007-04-12 11:06 ` Al Viro [this message]
2007-04-13 12:08 ` Krzysztof Halasa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070412110637.GG4095@ftp.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=khc@pm.waw.pl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox