public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] eject and util-linux blocker
Date: Wed, 18 Mar 2015 17:55:33 -0400	[thread overview]
Message-ID: <CAGfcS_nkyjAgGbSwkuV2C9QnaOS8xE5wRZnv9pAg-MXgS4ZcOA@mail.gmail.com> (raw)
In-Reply-To: <5509C01F.8020405@gmail.com>

On Wed, Mar 18, 2015 at 2:12 PM, Dale <rdalek1967@gmail.com> wrote:
>
> I thought there was a tool that just lists the contents.  Things is, I'm
> not sure what I would be looking at.

An initramfs is just a root filesystem.  init is /sbin/init unless the
kernel is told otherwise.

If you took your entire root filesystem, compressed it into a cpio
archive, and put that in grub as your initramfs, then your entire
distro would run from a ramdisk and you might not even notice the
difference (well, assuming you had enough RAM).

The only real "magic" with an initramfs is that it mounts your real
root somewhere, then swaps it out for the real root:
http://manpages.courier-mta.org/htmlman8/switch_root.8.html

This is a bit like chroot, but the old root filesystem is deleted in
the process (so that your initramfs does not consume any RAM once the
system actually boots).  I'm not sure exactly how dracut does it with
systemd, since my understanding is that during shutdown systemd
actually pivots back to the initramfs (which allows all filesystems to
be cleanly unmounted instead of merely being mounted read-only).

-- 
Rich


  reply	other threads:[~2015-03-18 21:55 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16 14:08 [gentoo-user] eject and util-linux blocker Dale
2015-03-16 15:34 ` Walter Dnes
2015-03-17  1:43   ` Dale
2015-03-17  8:14     ` Alan McKinnon
2015-03-17 17:01       ` Dale
2015-03-17 17:30         ` Alan McKinnon
2015-03-17 18:10           ` Dale
2015-03-17 18:40             ` Mike Gilbert
2015-03-17 20:16               ` Dale
2015-03-17 20:31                 ` Alan McKinnon
2015-03-17 21:07                   ` Dale
2015-03-18  8:54                     ` Peter Humphrey
2015-03-18  9:08                       ` Neil Bothwick
2015-03-18  9:33                       ` Dale
2015-03-18 10:21                         ` Peter Humphrey
2015-03-18 16:14                           ` Dale
2015-03-18 17:03                             ` Peter Humphrey
2015-03-18 16:37                     ` Rich Freeman
2015-03-18 17:56                       ` Poncho
2015-03-18 18:12                         ` Dale
2015-03-18 21:55                           ` Rich Freeman [this message]
2015-03-18 23:12                           ` Peter Humphrey
2015-03-19  4:14                             ` Dale
2015-03-19  9:34                               ` Peter Humphrey
2015-03-19 15:29                                 ` Dale
2015-03-17 18:50             ` Alan McKinnon
2015-03-17 20:20               ` Dale
2015-03-17 20:46                 ` 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=CAGfcS_nkyjAgGbSwkuV2C9QnaOS8xE5wRZnv9pAg-MXgS4ZcOA@mail.gmail.com \
    --to=rich0@gentoo.org \
    --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