Commit Graph

22 Commits (f9a0b9f8683acf3b35f45f1fdf472ed6409fa004)

Author SHA1 Message Date
Victor Lowther f9a0b9f868 [PATCH 04/50] Modify root cmdline parsing to use a case statement.
This code takes less space and is easier to read at a glance.
2009-02-16 13:56:40 -05:00
Victor Lowther 9f99d479b3 [PATCH 03/50] Use getarg to get the root kernel commandline parameter. 2009-02-16 13:56:40 -05:00
Victor Lowther 047891955e [PATCH 02/50] Add a simple getarg function.
If we ever need to get more than one kernel command line argument, this
function will pay for itself.  It relies on a feature of the way bash
handles string comparisons in [[ ]] statements -- the RHS is matched
according to globbing rules, and is not a straight string match.
2009-02-16 13:56:40 -05:00
Victor Lowther 09f9fec00c [PATCH 01/50] We have a path. Do not specify full paths to commands that are in it. 2009-02-16 13:56:40 -05:00
Jeremy Katz dd1ae3a105 Slightly more reasonable timeout 2009-01-22 16:14:18 -05:00
Bill Nottingham 09bab2aa8e Go to an emergency shell if mounting the root filesystem fails. 2009-01-12 11:32:51 -05:00
Bill Nottingham 2064166d84 Fix 'root=LABEL=/'
As you can't have /dev/disk/by-label//, we need to escape the '/'
character in the same way that udev does.
2009-01-12 11:32:38 -05:00
Bill Nottingham a019b9531f Fix tense. 2009-01-12 11:32:38 -05:00
Jeremy Katz 654568b39e Basic support for loading SELinux from the initramfs 2009-01-05 13:18:50 -05:00
Jeremy Katz 641cc35629 Make the generator start to be functional on a "real" system
Start to pull in modules from the system rather than the crude hack of
everything in a tree and explicitly list some classes of modules
including what's needed for dm-crypt

With this, I am now running a dracut initramfs on my laptop
2008-12-17 17:51:15 -05:00
Jeremy Katz 7f70392f4b let mount auto-determine the fs type 2008-12-17 14:55:20 -05:00
Jeremy Katz ed16343e66 Sleep forever instead of exiting so you can scroll back 2008-12-16 16:56:28 -05:00
Jeremy Katz 7e1bf3845f Don't run udevsettle; instead, we keep looking for the rootfs 2008-12-16 14:29:43 -05:00
Jeremy Katz b8bdba2104 Cut down to only creating the nodes that plymouth actually needs 2008-12-16 14:29:07 -05:00
Jeremy Katz ca377f5294 Bump timeout to five minutes since people could be using encrypted root 2008-12-16 14:25:06 -05:00
Jeremy Katz eb25ff7a27 Support root on LUKS (dm-crypt)
Support having root on LUKS with the password prompting handled by plymouth.
This requires ensuring our input is from /dev/console and also requires that
we import vol_id info about all block devices rather than ignoring dm devs
(which is what the persistent storage rules do by default)
2008-12-16 14:22:13 -05:00
Jeremy Katz 0c70846e5d Add plymouth support
Add basic support for the use of plymouth in the new initrd world.  Also
includes a hack at the moment to install from a local plymouth tree to make
testing easier
2008-12-15 16:10:51 -05:00
Jeremy Katz ca9f625917 Some debugging helpers
Install terminfo files so that less is useful.  Also, timeout mounting
the rootfs so that we can debug better
2008-12-15 14:40:36 -05:00
Jeremy Katz 35c5d61b82 Various fixes to make things work; also listen to root=
Apparently what I had committed was broken.  This fixes some pieces up
and also adds (basic) support for using root=
2008-12-15 13:39:41 -05:00
Jeremy Katz 65e66984d6 Kill udevd 2008-12-10 17:18:22 -05:00
Jeremy Katz a5e56335b5 And licensing... 2008-12-10 16:36:31 -05:00
Jeremy Katz ec9315e562 Initial commit
First pass at a new initrd implementation.  Right now, it's a very simple
/init and we use nash's switchroot command via switch_root.  The idea is to
get a switchroot binary into util-linux that can be used instead

generate.sh will let you generate an initrd image.  Note that the generator
is intentionally super simple right now and is an area that will need a lot
of work once we're happier with how the /init process runs
2008-12-10 16:32:21 -05:00