All of lore.kernel.org
 help / color / mirror / Atom feed
* Dracut -- Cross distribution initramfs infrastructure
@ 2008-12-17 18:54 Jeremy Katz
  2008-12-17 19:07 ` Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 39+ messages in thread
From: Jeremy Katz @ 2008-12-17 18:54 UTC (permalink / raw)
  To: initramfs; +Cc: linux-kernel, Kay Sievers, Dave Jones, cjwatson

As davej started talking about a few months ago at Kernel Summit and
LPC, there's a lot of duplication between distros on the tools used to
generate the initramfs as well as the contents and how the initramfs
works.  Ultimately, there's little reason for this not to be something
that is shared and worked on by everyone.  Added to this is the fact
that everyone's infrastructures for this have grown up over a long-ish
period of time without significant amounts of reworking for the way that
the kernel and early boot works these days.

Therefore I've started on a new project, dracut, to try to be a new
initramfs tool that can be used across various distributions.  From the
README...

Unlike existing initramfs's, this is an attempt at having as little as
possible hard-coded into the initramfs as possible.  The initramfs has
(basically) one purpose in life -- getting the rootfs mounted so that we
can transition to the real rootfs.  This is all driven off of device
availability.  Therefore, instead of scripts hard-coded to do various
things, we depend on udev to create device nodes for us and then when we
have the rootfs's device node, we mount and carry on. This helps to keep
the time required in the initramfs as little as possible so that things
like a 5 second boot aren't made impossible as a result of the very
existence of an initramfs.  It's likely that we'll grow some hooks for
running arbitrary commands in the flow of the script, but it's worth
trying to resist the urge as much as we can as hooks are guaranteed to
be the path to slow-down.

Also, there is an attempt to keep things as distribution-agnostic as
possible.  Every distribution has their own tool here and it's not
something which is really interesting to have separate across them. So
contributions to help decrease the distro-dependencies are welcome.

The git tree can be found at git://fedorapeople.org/~katzj/dracut.git
for now.  See the TODO file for things which still need to be done and
HACKING for some instructions on how to get started using the tool.
There is also a mailing list that is being used for the discussion --
initramfs@vger.kernel.org.  

Currently, there are a few Fedora-isms which have crept in just as a
result of it being the shortest path to solving some problems, but I'm
actively trying to get those out sooner rather than later as well as
getting to where I'm using it to boot my laptop.

Comments and discussion welcome

Jeremy


^ permalink raw reply	[flat|nested] 39+ messages in thread
* Dracut -- Cross distribution initramfs infrastructure
@ 2008-12-17 18:54 Jeremy Katz
  0 siblings, 0 replies; 39+ messages in thread
From: Jeremy Katz @ 2008-12-17 18:54 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Kay Sievers, Dave Jones,
	cjwatson-GeWIH/nMZzLQT0dZR+AlfA

As davej started talking about a few months ago at Kernel Summit and
LPC, there's a lot of duplication between distros on the tools used to
generate the initramfs as well as the contents and how the initramfs
works.  Ultimately, there's little reason for this not to be something
that is shared and worked on by everyone.  Added to this is the fact
that everyone's infrastructures for this have grown up over a long-ish
period of time without significant amounts of reworking for the way that
the kernel and early boot works these days.

Therefore I've started on a new project, dracut, to try to be a new
initramfs tool that can be used across various distributions.  From the
README...

Unlike existing initramfs's, this is an attempt at having as little as
possible hard-coded into the initramfs as possible.  The initramfs has
(basically) one purpose in life -- getting the rootfs mounted so that we
can transition to the real rootfs.  This is all driven off of device
availability.  Therefore, instead of scripts hard-coded to do various
things, we depend on udev to create device nodes for us and then when we
have the rootfs's device node, we mount and carry on. This helps to keep
the time required in the initramfs as little as possible so that things
like a 5 second boot aren't made impossible as a result of the very
existence of an initramfs.  It's likely that we'll grow some hooks for
running arbitrary commands in the flow of the script, but it's worth
trying to resist the urge as much as we can as hooks are guaranteed to
be the path to slow-down.

Also, there is an attempt to keep things as distribution-agnostic as
possible.  Every distribution has their own tool here and it's not
something which is really interesting to have separate across them. So
contributions to help decrease the distro-dependencies are welcome.

The git tree can be found at git://fedorapeople.org/~katzj/dracut.git
for now.  See the TODO file for things which still need to be done and
HACKING for some instructions on how to get started using the tool.
There is also a mailing list that is being used for the discussion --
initramfs-u79uwXL29TaiAVqoAR/hOA@public.gmane.org  

Currently, there are a few Fedora-isms which have crept in just as a
result of it being the shortest path to solving some problems, but I'm
actively trying to get those out sooner rather than later as well as
getting to where I'm using it to boot my laptop.

Comments and discussion welcome

Jeremy

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2009-01-07 16:14 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 18:54 Dracut -- Cross distribution initramfs infrastructure Jeremy Katz
2008-12-17 19:07 ` Christoph Hellwig
     [not found]   ` <20081217190700.GA15377-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2008-12-18  7:36     ` Hannes Reinecke
2008-12-18  7:36   ` Hannes Reinecke
     [not found]     ` <4949FD67.6040906-l3A5Bk7waGM@public.gmane.org>
2008-12-18 20:12       ` Jeremy Katz
     [not found]         ` <1229631131.13174.23.camel-T9xAYgMuJli44ywRPIzf9A@public.gmane.org>
2008-12-19  8:21           ` Hannes Reinecke
     [not found]             ` <494B5979.3080606-l3A5Bk7waGM@public.gmane.org>
2008-12-19 17:08               ` Jeremy Katz
     [not found]                 ` <44C50A6A-0FDB-4BF0-8B8B-CD9DAC7B7ED4-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-12-19 20:05                   ` Seewer Philippe
     [not found]                     ` <494BFE7E.8090301-omB+W0Dpw2o@public.gmane.org>
2008-12-19 20:41                       ` Jeremy Katz
2008-12-23 11:32                       ` Till Maas
2009-01-07 16:14                   ` Hannes Reinecke
2008-12-19  7:41       ` Seewer Philippe
2008-12-19  7:41         ` Seewer Philippe
     [not found]         ` <494B5031.5080306-omB+W0Dpw2o@public.gmane.org>
2008-12-19  8:18           ` Bernhard Walle
2008-12-19  8:18             ` Bernhard Walle
     [not found]             ` <20081219091841.207bc951-Hxm9IJOWyO+kWa+peg0mPg@public.gmane.org>
2008-12-19 13:55               ` Hannes Reinecke
2008-12-19 13:55                 ` Hannes Reinecke
     [not found]                 ` <494BA7CE.2020007-l3A5Bk7waGM@public.gmane.org>
2008-12-19 15:27                   ` Theodore Tso
2008-12-19 15:27                     ` Theodore Tso
     [not found]                     ` <20081219152708.GE9871-3s7WtUTddSA@public.gmane.org>
2008-12-19 16:56                       ` Jeremy Katz
2008-12-19 16:56                         ` Jeremy Katz
     [not found]                         ` <9C4F1B7D-CCBC-48D7-8624-9A7C314C1590-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2008-12-20 13:50                           ` Daniel Pittman
2008-12-20 13:50                             ` Daniel Pittman
     [not found]                             ` <87skojrm5e.fsf-zvVxMF7wGoXk1uMJSBkQmQ@public.gmane.org>
2008-12-20 18:22                               ` Dave Jones
2008-12-20 18:22                                 ` Dave Jones
2009-01-07 16:04                                 ` Hannes Reinecke
     [not found] ` <1229540094.28858.150.camel-T9xAYgMuJli44ywRPIzf9A@public.gmane.org>
2008-12-17 19:07   ` Christoph Hellwig
2008-12-17 19:31   ` Neil Horman
2008-12-17 19:31 ` Neil Horman
     [not found]   ` <20081217193151.GA7356-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2008-12-17 19:48     ` Jeremy Katz
     [not found]       ` <1229543309.28858.163.camel-T9xAYgMuJli44ywRPIzf9A@public.gmane.org>
2008-12-17 20:17         ` Neil Horman
2008-12-17 20:29         ` Kay Sievers
     [not found]           ` <ac3eb2510812171229g57eee496o6ad9e2fa97609455-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-12-17 21:06             ` Neil Horman
     [not found]               ` <20081217210645.GC7356-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2008-12-17 21:15                 ` David Zeuthen
     [not found]                   ` <1229548507.1229.4.camel-v34h5/LVXhbZaaYASwVUlg@public.gmane.org>
2008-12-17 21:22                     ` Neil Horman
2008-12-18 14:07             ` Karel Zak
2008-12-18  9:27     ` Loïc Grenié
2008-12-18  9:27   ` Loïc Grenié
  -- strict thread matches above, loose matches on Subject: below --
2008-12-17 18:54 Jeremy Katz

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.