From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S8BT8-0006vQ-7w for garchives@archives.gentoo.org; Thu, 15 Mar 2012 14:15:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7882BE0C9A; Thu, 15 Mar 2012 14:15:35 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 9C4DEE0C68 for ; Thu, 15 Mar 2012 14:13:56 +0000 (UTC) Received: by wibhr17 with SMTP id hr17so3890554wib.10 for ; Thu, 15 Mar 2012 07:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sT3uHXfQEKqL80ifhWGANyVO/qQACbR+sdOlylcYGO8=; b=pL0+MmTWzz0ky8Gvok6UEQ7+eyeCZYmo9+hj7+AjO7hSoZrsLUWeMxl2oNI45XVKvz Vt/w4XBvHgRuR9924qKbSp8ELwuC/E9+ZnbcWfdKzpSYui2l26qsEk4WnlrCspcZxj4A mzVAdY6u2luVUcibUGovXRGJP1PNEz8lzE95j02nobKTp0gyk2fdzozDH73D8u8XYB3s WRdkuI1Lhql4BI9GzVvS7Zc6GewqJX/qLaTcl2OaptbC36nRxCOMpMsowQuJ05hyPoGw rYo2O6CCZrANaj/YAW+XmCkb8xpMa8ASwE0di46r1HOr/j6Nc8RFbFglXmFgXQyG/DX9 vUPA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.180.8.164 with SMTP id s4mr16141130wia.6.1331820833274; Thu, 15 Mar 2012 07:13:53 -0700 (PDT) Received: by 10.223.8.68 with HTTP; Thu, 15 Mar 2012 07:13:53 -0700 (PDT) In-Reply-To: <4F61F4FC.1090005@libertytrek.org> References: <292166434.606817.1331577566543.JavaMail.open-xchange@email.1and1.com> <4F5E853F.8060404@gmail.com> <017301cd00bd$24bce2f0$6e36a8d0$@kutulu.org> <20120313091356.5a947032@khamul.example.com> <07ed01cd01fd$ea6c6b60$bf454220$@kutulu.org> <005701cd022f$e8228fb0$b867af10$@kutulu.org> <20120315010310.GC32691@waltdnes.org> <4F615834.2050608@gmail.com> <20120315091356.62d6714c@digimed.co.uk> <4F61E382.7060803@libertytrek.org> <20120315130512.6f19efd1@digimed.co.uk> <4F61F4FC.1090005@libertytrek.org> Date: Thu, 15 Mar 2012 07:13:53 -0700 Message-ID: Subject: Re: [gentoo-user] Re: LVM, /usr and really really bad thoughts. From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: e5cd8472-d10e-40d6-bd61-c49feddfef28 X-Archives-Hash: f47bb58705b0269045e5c16bfed439a0 On Thu, Mar 15, 2012 at 6:56 AM, Tanstaafl wrote: > On 2012-03-15 9:05 AM, Neil Bothwick wrote: >> >> On Thu, 15 Mar 2012 08:41:38 -0400, Tanstaafl wrote: >> >>>> That's why I build the initramfs into the kernel and not as a separate >>>> file. If I do something to break the initramfs I just boot the >>>> previous kernel knowing it will still work. >>> >>> >>> Ok, time to show my ignorance... >>> >>> How would I know if I am using an initramfs, and if I was, whether it >>> was built into the kernel or not? > > >> Well, you built the kernel, so you should know. > > > Well, since I basically just used a kernel .config that someone else > originally set up, copying .config over and running make oldconfig when > upgrading over the years, stumbling through any changes that broke anything > (like when some changes to iptables broke my firewall back around 2.6.2x), I > really didn't know - but I just confirmed that it is indeed built into my > kernels, so, now, how do I know if I am *using* it or not? > > >> Technically, we are all using an initramfs as all 2.6/3 kernels mount an >> initramfs when they load. If does not contain an init script, they fall >> back to the legacy behaviour. > > > So, how do I know whether or not 'it contains an init script'? > > I know, my ignorance is confounding... > >> See /usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt > > > Read it, thanks, but it didn't help me answer the above... > I've only used an initramfs/initrd once so I can relate to the confusion. Assuming you have the config in /proc run: c2stable ~ # zcat /proc/config.gz | grep INITRAMFS CONFIG_INITRAMFS_SOURCE="" c2stable ~ # Also, if you didn't actually create the initramfs hierarchy and zip it up to be used by your kernel then you're not using one, other than what Neil said that we all use one that does nothing. HTH, Mark