Commit Graph

276 Commits (e7b6ed13796581f4881c2a42c198d314375d4f9c)

Author SHA1 Message Date
Victor Lowther b32f55156d [PATCH 31/50] We no longer require plymouth. Remove it from the spec. 2009-02-16 13:56:42 -05:00
Victor Lowther 7924b21279 [PATCH 30/50] We no longer need plymouth.
init will ask for a passphrase directly if an encrypted root is detected.

Also, use udevadm settle with a 30 second timeout instead of a hardcoded
30 count loop.
2009-02-16 13:56:41 -05:00
Victor Lowther 933a523af3 [PATCH 29/50] Add echoer script 2009-02-16 13:56:41 -05:00
Victor Lowther 8cc53c16a0 [PATCH 28/50] Remove dependency on plymouth for getroot, pass 1. 2009-02-16 13:56:41 -05:00
Victor Lowther 2c6fc388b0 [PATCH 27/50] Don't leave cruft behind in /tmp 2009-02-16 13:56:41 -05:00
Victor Lowther bc6b0dec9e [PATCH 26/50] Make init less noisy and load fs modules for all mounted filesystems 2009-02-16 13:56:41 -05:00
Victor Lowther 213c781797 [PATCH 25/50] Add dmesg to the list of debugging tools 2009-02-16 13:56:41 -05:00
Victor Lowther 36b24d7c53 [PATCH 24/50] Replace inst function with a family of specialized functions
This makes things shorter and easier to read.
2009-02-16 13:56:41 -05:00
Victor Lowther 6fa0c3d60b [PATCH 23/50] Rip out old recursive module loading, replace with something simpler
bash allows unlimited recursion and several other tricks to make
finding all the dependencies of a kernel module much simpler.

This nukes about 130 lines, most of it in dracut-functions.

This diff also touches some cleanups made in the inst function.
2009-02-16 13:56:41 -05:00
Victor Lowther 170b260bd9 [PATCH 22/50] Bashify inst function where ot makes things easier to read. 2009-02-16 13:56:41 -05:00
Victor Lowther 8667f2b733 [PATCH 21/50] Simplified get_dso_deps
This takes advantage of several bash specific constructs to make
get_dso_deps easier to read and understand.
2009-02-16 13:56:41 -05:00
Victor Lowther 375a5b4084 [PATCH 20/50] set_verbose is not used anywhere. Buh-bye. 2009-02-16 13:56:41 -05:00
Victor Lowther 6b24de99d9 [PATCH 19/50] The function keyword is deprecated. Get rid of it. 2009-02-16 13:56:41 -05:00
Victor Lowther 95994c57c5 [PATCH 18/50] outfile processing can fit all on one line, so make it. 2009-02-16 13:56:41 -05:00
Victor Lowther 5a862b968a [PATCH 17/50] Tighten up the font installation case statement as well. 2009-02-16 13:56:41 -05:00
Victor Lowther b2b11f5579 [PATCH 16/50] $MNTIMAGE? I thought the install dir was $initdir. 2009-02-16 13:56:41 -05:00
Victor Lowther dce3f50a7d [PATCH 15/50] Tighten up the keymap installation case statement in dracut. 2009-02-16 13:56:41 -05:00
Victor Lowther 3c3e1e0c49 [PATCH 14/50] Tighten up conditional checking a bit more.
Use bash-style conditionals where ever it makes things shorter
and easier to read.
2009-02-16 13:56:41 -05:00
Victor Lowther 535df36653 [PATCH 13/50] Missed an instance of $initdir not being quoted. 2009-02-16 13:56:41 -05:00
Victor Lowther f9d7779e30 [PATCH 12/50] Get rid of some redundancy when sourcing our functions. 2009-02-16 13:56:41 -05:00
Victor Lowther e4191d353f [PATCH 11/50] Quote variable expansion where needed.
Otherwise, spaces in some filenames may make things interesting some fine day.
2009-02-16 13:56:40 -05:00
Victor Lowther c8937ec4a7 [PATCH 10/50] Clean up initialization in dracut.
The source keyword is deprecated, and kernel / outfile are more legible as
conditional lists.
2009-02-16 13:56:40 -05:00
Victor Lowther b368a5f3bb [PATCH 09/50] Compact option processing.
Most of the options are one-liners, and the shift can be factored out of
the case expression entirely.
2009-02-16 13:56:40 -05:00
Victor Lowther 70c26b7fce [PATCH 08/50] Don't load commands into the initrd that are built in to bash.
No sense in loading commands that will never be used.
2009-02-16 13:56:40 -05:00
Victor Lowther 8b691309de [PATCH 07/50] Get rid of `` subprocess expansion when killing udevd.
$() subprocess expansion is so much easier to read.
2009-02-16 13:56:40 -05:00
Victor Lowther 39b4c02111 [PATCH 06/50] Bashify results testing for selinux policy loading 2009-02-16 13:56:40 -05:00
Victor Lowther e0bb3c3613 [PATCH 05/50] Rewrite the mount loop using bash-specific features.
This makes the loop slightly more compact and easier to read.
2009-02-16 13:56:40 -05:00
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
Jeremy Katz c58bf1b1f2 Also rescan after each new lvm2 member appears so we can find all devs 2009-01-22 16:14:18 -05:00
Jeremy Katz e47d25ffb8 Don't use deprecated git-* commands 2009-01-22 16:14:18 -05:00
Jeremy Katz ce1d00e166 Import volume info here too (noticed by wtogami with root-on-crypt-lv) 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 549e53a4ee Now that module dependencies work, we don't have to list as much 2009-01-05 15:50:44 -05:00
Jeremy Katz a1119a718d Fix module dependency handling
Module dependency handling wasn't being followed correctly; fix it
2009-01-05 15:45:39 -05:00
Jeremy Katz 6eedcafc37 Clean up noise from eu-readelf 2009-01-05 15:42:56 -05:00
Jeremy Katz aabc0553b5 Add first pass of keyboard/console font setup
First pass of keyboard/console font setup.  This ends up being Fedora/RHEL
specific as everyone specifies these things in a different place
2009-01-05 14:40:34 -05:00
Jeremy Katz dd19241084 Fix typo with local mode installing switch_root 2009-01-05 14:39:35 -05:00
Jeremy Katz 55ca5f4f14 Update the documentation a bit for current status 2009-01-05 13:28:20 -05:00
Jeremy Katz 654568b39e Basic support for loading SELinux from the initramfs 2009-01-05 13:18:50 -05:00
Jeremy Katz 0d666d610a Stop depending on nash to find the program interpreter; use eu-readelf instead 2009-01-05 12:47:36 -05:00
Jeremy Katz 38672ee8b4 Add a spec file for rpm building 2008-12-19 14:44:38 -05:00
Jeremy Katz ee67b75f1e Handle rules.d being from the installed location 2008-12-19 14:43:46 -05:00
Jeremy Katz 4f25a3b9c0 Fedora calls --allow-missing as an arg to mkinitrd; noop it 2008-12-19 14:43:30 -05:00
Jeremy Katz 5533709cdb plymouth calls set_verbose(), no noop it 2008-12-19 14:43:06 -05:00