Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Catalyst (http://www.linux-archive.org/gentoo-catalyst/)
-   -   LiveCD without Initrd (http://www.linux-archive.org/gentoo-catalyst/286978-livecd-without-initrd.html)

Shinkan 11-27-2009 12:49 PM

LiveCD without Initrd
 
Hi again,

I would like to build a stage2 livecd which would contain a kernel without initrd.
I saw it is possible to specify genkernel options in spec file, so I put "--static", but how can I be sure Catalyst will not put any initrd reference in grub or things like this.



I would like to do this because I know my hardware targets so I do not want a "Gentoo LiveCD" like initrd which loads almost every possible driver at boot.

I'm open if is there's another solution than bypassing initrd.


--
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I wonder why we think faster than we speak. Probably so we can think twice." - Bill Watterson

Andrew Gaffney 11-27-2009 04:36 PM

LiveCD without Initrd
 
On 11/27/2009 07:49 AM, Shinkan wrote:
> Hi again,
>
> I would like to build a stage2 livecd which would contain a kernel
> without initrd.

The CD will not boot without an initramfs. The linuxrc in it is what mounts the
squashfs on the ISO and calls switch_root.

--
Andrew Gaffney http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer Catalyst/Genkernel + Release Engineering Lead

Shinkan 11-27-2009 05:07 PM

LiveCD without Initrd
 
2009/11/27 Andrew Gaffney <agaffney@gentoo.org>


On 11/27/2009 07:49 AM, Shinkan wrote:

> Hi again,

>

> I would like to build a stage2 livecd which would contain a kernel

> without initrd.



The CD will not boot without an initramfs. The linuxrc in it is what mounts the

squashfs on the ISO and calls switch_root.

Right, silly me ...



Anyway, passing "--static" to genkernel gives a working boot sequence with no modules.
Thanks.
*




--

Andrew Gaffney * * * * * * * * * * * * * * * * http://dev.gentoo.org/~agaffney/

Gentoo Linux Developer * * * * * *Catalyst/Genkernel + Release Engineering Lead





--
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I wonder why we think faster than we speak. Probably so we can think twice." - Bill Watterson


All times are GMT. The time now is 12:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.