public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Is grub2 stable and who uses it?
Date: Wed, 5 Oct 2011 21:33:11 +0700	[thread overview]
Message-ID: <CAA2qdGVYus8T-DfxfHjxXa5813T2nk1yhXf1-NhG16OTdx-77g@mail.gmail.com> (raw)
In-Reply-To: <j6hnla$oui$1@dough.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 2305 bytes --]

On Oct 5, 2011 8:59 PM, "Grant Edwards" <grant.b.edwards@gmail.com> wrote:
>
> On 2011-10-04, Canek Pel??ez Vald??s <caneko@gmail.com> wrote:
> > On Tue, Oct 4, 2011 at 3:14 PM, Grant Edwards <grant.b.edwards@gmail.com>
wrote:
> >> On 2011-10-04, Canek Pel??ez Vald??s <caneko@gmail.com> wrote:
> >>> On Tue, Oct 4, 2011 at 2:24 PM, Grant Edwards <
grant.b.edwards@gmail.com> wrote:
> >>>> On 2011-10-04, Canek Pel??ez Vald??s <caneko@gmail.com> wrote:
> >>>>
> >>>>> Then any boot loader will need to call something to start it.
> >>>>> Understand this: any Linux/Unix init system (systemd, SysV, Upstart,
> >>>>> OpenRC) is simply a program... that the Linux kernel itself
executes.
> >>>>
> >>>> I know. ??What I don't understand is the statement that grub2 calls
(or
> >>>> connects to) the init system.
> >>>>
> >>>>> That's the init= command line in the kernel.
> >>>>>
> >>>>> The bootloader calls an operating system. The init system (if at
all)
> >>>>> that the OS uses doesn't matter: so if you have an operating system,
> >>>>> any bootloader should be able to boot it (bearing things like being
> >>>>> able to understand the filesystem etc.)
> >>>>
> >>>> I know how bootloaders like LILO and grub-legacy work. ??What I don't
> >>>> understand is the statement that grub2 is somehow aware of the booted
> >>>> OS's init system.
> >>>
> >>> Oh. The configuration file of GRUB2 is autogenerated, and this means
> >>> that the init=systemd has to be passed to the kernel line.
> >>>
> >>> In that sense, GRUB2 is "aware" of it.
> >>
> >> So to use grub2 you have to replace the normal "init" program that's
> >> started by the kernle as PID#1 with something else?
> >
> > No.
>
> I give up.  I've absolutely no idea what grub2 has to do with the OS's
> init system, and none of what you've written makes any sense to me.

I think what he meant was:

The *installer* portion of grub2 is aware of which pid#0 is running when it
auto-creates the bootloader's configuration. That pid#0 is passed on to the
kernel by the bootloader.

The *bootloader* portion of grub2 don't know and don't care what is being
used as pid#0 by the OS. All it knows is that the installer portion has
specified something to be passed to the OS. And that's what it does, without
understanding anything about pid#0.

rgds,

[-- Attachment #2: Type: text/html, Size: 3366 bytes --]

  reply	other threads:[~2011-10-05 14:34 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04  9:49 [gentoo-user] Is grub2 stable and who uses it? Dale
2011-10-04 10:07 ` Neil Bothwick
2011-10-04 10:16   ` Pandu Poluan
2011-10-04 12:56     ` Michael Orlitzky
2011-10-05 16:20       ` ny6p01
2011-10-05 16:47         ` Jonas de Buhr
2011-10-05 23:18           ` Peter Humphrey
2011-10-06  8:12             ` Neil Bothwick
2011-10-06 11:01               ` Alan McKinnon
2011-10-06 13:47                 ` Neil Bothwick
2011-10-06 15:17                   ` Alan McKinnon
2011-10-06 15:25                     ` Michael Mol
2011-10-06 15:35                       ` Alan McKinnon
2011-10-06 15:37                       ` Neil Bothwick
2011-10-06 16:40                       ` Sebastian Beßler
2011-10-07  0:08                         ` Peter Humphrey
2011-10-07  0:42                           ` Michael Mol
2011-10-07  7:38                           ` Alan McKinnon
2011-10-06  8:20             ` [gentoo-user] OT: change and improvement (was: Is grub2 stable and who uses it?) Jonas de Buhr
2011-10-06 19:27               ` [gentoo-user] OT: change and improvement Michael Orlitzky
2011-10-06 19:42                 ` Dale
2011-10-06 20:21                   ` Mick
2011-10-07  3:19                     ` Dale
2011-10-06 21:00                 ` Jonas de Buhr
2011-10-06 21:23                   ` Michael Orlitzky
2011-10-06 21:30                     ` Paul Hartman
2011-10-06 22:33                     ` Canek Peláez Valdés
2011-10-06 23:42                     ` Jonas de Buhr
2011-10-07  0:55                       ` Michael Orlitzky
2011-10-07  7:36                         ` Jonas de Buhr
2011-10-07 13:59                           ` Michael Orlitzky
2011-10-07 14:46                             ` Brennan Shacklett
2011-10-07 15:03                               ` Michael Orlitzky
2011-10-07 16:16                             ` Jonas de Buhr
2011-10-07 17:02                               ` Michael Orlitzky
2011-10-07 19:15                             ` [gentoo-user] " Grant Edwards
2011-10-07  8:47                         ` [gentoo-user] " Neil Bothwick
2011-10-07 13:43                           ` Michael Orlitzky
2011-10-07 14:29                         ` Alan Mackenzie
2011-10-07 14:55                           ` Michael Orlitzky
2011-10-07 15:18                             ` Dale
2011-10-07 15:43                               ` Paul Hartman
2011-10-07  1:41                       ` [gentoo-user] " Grant Edwards
2011-10-07  1:40                   ` Grant Edwards
2011-10-07  3:32                     ` Dale
2011-10-07  3:39                       ` Michael Mol
2011-10-07  4:42                         ` Michael Orlitzky
2011-10-07  5:01                           ` Michael Mol
2011-10-07  5:09                         ` Canek Peláez Valdés
2011-10-07 19:11                           ` Grant Edwards
2011-10-07 19:20                             ` Dale
2011-10-04 14:35   ` [gentoo-user] Re: Is grub2 stable and who uses it? Grant Edwards
2011-10-04 14:53     ` Dale
2011-10-04 20:13       ` Alan McKinnon
2011-10-04 20:52         ` Grant Edwards
2011-10-04 21:20       ` walt
2011-10-04 21:26         ` Grant Edwards
2011-10-04 15:08     ` Canek Peláez Valdés
2011-10-04 18:31       ` Grant Edwards
2011-10-04 18:56         ` Canek Peláez Valdés
2011-10-04 20:33           ` pk
2011-10-04 20:50           ` Grant Edwards
2011-10-04 20:53             ` Canek Peláez Valdés
2011-10-04 21:02               ` Grant Edwards
2011-10-04 21:14                 ` Canek Peláez Valdés
2011-10-04 21:24                   ` Grant Edwards
2011-10-04 21:32                     ` Canek Peláez Valdés
2011-10-04 22:14                       ` Grant Edwards
2011-10-04 22:21                         ` Canek Peláez Valdés
2011-10-05 13:55                           ` Grant Edwards
2011-10-05 14:33                             ` Pandu Poluan [this message]
2011-10-05 14:46                               ` Grant Edwards
2011-10-05 15:01                                 ` Alan McKinnon
2011-10-05 15:29                                 ` Neil Bothwick
2011-10-05 16:56                                 ` Canek Peláez Valdés
2011-10-05 18:42                                   ` Grant Edwards
2011-10-05 19:10                                     ` Canek Peláez Valdés
2011-10-05 19:33                                       ` Alan McKinnon
2011-10-05 14:36                             ` Sebastian Beßler
2011-10-05 16:51                             ` Canek Peláez Valdés
2011-10-05  6:54                       ` Alan McKinnon
2011-10-04 21:33                   ` Michael Schreckenbauer
2011-10-04 21:46                     ` Canek Peláez Valdés
2011-10-04 22:04                       ` Michael Schreckenbauer
2011-10-05  0:09                       ` Dale
2011-10-05  3:16                         ` Canek Peláez Valdés
2011-10-05  8:26                     ` Neil Bothwick
2011-10-04 20:11       ` Alan McKinnon
2011-10-04 20:36         ` Canek Peláez Valdés
2011-10-05  8:31         ` Neil Bothwick
2011-10-04 22:31     ` Neil Bothwick
2011-10-06 12:51     ` Harry Putnam
2011-10-06 13:03       ` Tanstaafl
2011-10-06 13:51       ` Neil Bothwick
2011-10-06 17:48         ` Harry Putnam
2011-10-06 19:15           ` Alan McKinnon

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=CAA2qdGVYus8T-DfxfHjxXa5813T2nk1yhXf1-NhG16OTdx-77g@mail.gmail.com \
    --to=pandu@poluan.info \
    --cc=gentoo-user@lists.gentoo.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