From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 541341381F4 for ; Sun, 12 Aug 2012 15:37:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EF247E05FA; Sun, 12 Aug 2012 15:36:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9C729E0540 for ; Sun, 12 Aug 2012 15:35:57 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id D76D31B4030 for ; Sun, 12 Aug 2012 15:35:56 +0000 (UTC) Received: by wibhm2 with SMTP id hm2so2042371wib.10 for ; Sun, 12 Aug 2012 08:35:53 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.180.86.133 with SMTP id p5mr11284690wiz.17.1344785753927; Sun, 12 Aug 2012 08:35:53 -0700 (PDT) Received: by 10.223.3.142 with HTTP; Sun, 12 Aug 2012 08:35:53 -0700 (PDT) In-Reply-To: References: <5026EAE7.4040600@gmail.com> <20120812001239.27781.qmail@stuge.se> Date: Sun, 12 Aug 2012 11:35:53 -0400 Message-ID: Subject: Re: [gentoo-dev] Re: Questions about SystemD and OpenRC From: Mike Gilbert To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 2e66260d-0039-4fd3-8459-4ee45e738c2e X-Archives-Hash: a79639e62ddccca3049f5cf12fcb60da On Sun, Aug 12, 2012 at 8:25 AM, Rich Freeman wrote: > I think that people get this confused because 99% of linux users have > an initramfs (and about 2% of Gentoo users it seems), and most > initramfs implementations DO interpret the root=parameter. If you > specify an initramfs then the kernel actually ignores the > root=parameter entirely, mounting the initramfs as root, and passing > control to its init. The initramfs is expected to mount root (or not > - you could just run the whole system off an initramfs I guess). Most > initramfs implementations just parse the root= line on the kernel, > although it is worth noting that genkernel's initramfs does not and > uses real_root instead. Small correction: genkernel's /init script accepts both real_root and root on the kernel command line. If real_root is not specified, the value of root is used. It seems that the real_root option is a remnant of the initrd (not intramfs) code, where root needed to be a ram disk (/dev/ram0). With initramfs, the kernel ignores root, so we are free to use it for specifying the actual root device. So, when you see grub2-mkconfig generating entries with root=..., please do not panic; this works just fine. :-)