All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ted Ts'o <tytso@mit.edu>
To: Eric Sandeen <sandeen@redhat.com>
Cc: Phillip Susi <psusi@ubuntu.com>,
	ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: What is e2initrd_helper?
Date: Wed, 11 Apr 2012 14:27:36 -0400	[thread overview]
Message-ID: <20120411182736.GH12044@thunk.org> (raw)
In-Reply-To: <4F85A965.3040008@redhat.com>

On Wed, Apr 11, 2012 at 10:55:17AM -0500, Eric Sandeen wrote:
> On 4/11/12 10:46 AM, Phillip Susi wrote:
> > I came across this program in e2fsprogs and it doesn't seem to have a
> > man page.  What is its purpose?  Looking at the code, it appears to
> > extract the fs type listed in the /etc/fstab of the root fs before it
> > is mounted, but why?
> 
> +2004-09-18  Theodore Ts'o  <tytso@mit.edu>
> +
> +       * e2initrd_helper.c: New program which allows initrd scripts to
> +               check on the contents of /etc/fstab without (a) needing to
> +               mount the root filesystem, and (b) needing /bin/awk in the
> +               initrd environment.  (Addresses Debian Bug #247775)
> +

Debian used to have a system where we could transparently update the
root file system to use ext4 file system features as part of the
initrd.

At one point I had hopes that we could fix up the boot scripts so that
if an initrd was present, we could run e2fsck out of the initrd, so we
wouldn't have to play games with mounting the file system read-only.
So at one point the plan was this program would also extract all of
/etc/fstab for the initrd, and other things that might be useful
before the root file system was mounted.

I've since decided that this would involve getting fsck all-too-bound
up in distribution-specific init systems, and might actually aid and
abet the further dominance of GNOME-OS (or plymouth/upstart; I dispise
all of the modern init/initscripts systems equally), so I've since
stopped trying to implement things in that particular design
direction.

It's why I'll be abandoning Ubuntu when the new Ivy Bridge laptops
become available, and switching not to Fedora, but to Debian Testing
--- but I'm sure Mark Shuttleworth really doesn't care what distro
people like me choose to use....   :-)

						- Ted

  reply	other threads:[~2012-04-11 18:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 15:46 What is e2initrd_helper? Phillip Susi
2012-04-11 15:55 ` Eric Sandeen
2012-04-11 18:27   ` Ted Ts'o [this message]
2012-04-11 22:19     ` Phillip Susi
2012-04-11 22:21       ` Christoph Hellwig

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=20120411182736.GH12044@thunk.org \
    --to=tytso@mit.edu \
    --cc=linux-ext4@vger.kernel.org \
    --cc=psusi@ubuntu.com \
    --cc=sandeen@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.