Victor Lowther
79ec17c74d
Make plymouth play nice with the current crypt code, part 1
2009-03-06 16:00:56 -06:00
Victor Lowther
91b80abdce
Tighten up 90kernel-modules-loaded a bit.
2009-03-06 15:36:41 -06:00
Victor Lowther
cb330cac77
Tighten up 90kernel-modules/install a bit.
2009-03-06 15:34:43 -06:00
Victor Lowther
3ffa5b1135
Make 90lvm load the device-mapper rules instead of 95udev-rules
2009-03-06 15:29:09 -06:00
Victor Lowther
b2a843b471
Make 90dmraid load the dm-raid udev rules instead of 95udev-rules
2009-03-06 15:26:24 -06:00
Victor Lowther
8fb66c9a3f
Use new check functionaloty to only load cryptoroot when needed
2009-03-06 15:15:59 -06:00
Victor Lowther
25a244f774
Use new check functionality to make 10redhat-i18n only work on redhat.
2009-03-06 14:29:28 -06:00
Victor Lowther
4ca2254668
Make dash module use new check functionality
2009-03-06 14:27:03 -06:00
Victor Lowther
8d02da427b
Add dracutmodules=auto functionality
...
To use this, your module needs to supply a check script which returns 0
if the module is applicable to this system, 1 otherwise.
If a module does not include a check script, it will be sourced. If no modules
have check scripts, then dracutmodules=auto behaves exactly like
dracutmodules=all
2009-03-06 14:23:37 -06:00
Victor Lowther
9a8a00cff8
Some minor formatting fixups in the main dracut script
2009-03-06 14:06:48 -06:00
Victor Lowther
8d38524882
Fix formatting in instmods a bit.
2009-03-06 14:00:34 -06:00
Victor Lowther
c7b2624f2e
Simplify inst_script a bit
...
We do not need separate source and target parameters, so do not use them.
2009-03-06 13:58:56 -06:00
Victor Lowther
6b25d71acd
Rename find_file to find_binary and simplify it.
...
Since we are not using find_file as a general-purpose file existence
testing function anymore, it can be made simpler.
2009-03-06 13:56:06 -06:00
Victor Lowther
992acaa9d0
Make calling modprobe look prettier.
2009-03-06 13:51:28 -06:00
Victor Lowther
74534e19c9
Remove a useless use of cat in instmods
...
We also need to decide whenter we are going to support modules.* files.
Not only are they Fedora-specific, but doing so makes =* arguments to instmods
have two different and incompatible meanings depending on whether that file
exists.
2009-03-06 13:50:04 -06:00
Victor Lowther
34fffd88ce
inst never takes 3 arguments anymore.
...
Remove the misleading help message and the 3 argument processing.
2009-03-06 13:44:48 -06:00
Harald Hoyer
a62ac42d63
fixed the previous incomplete patch for 95udev-rules.ub810
2009-03-06 17:12:51 +01:00
Harald Hoyer
8123d43838
/etc/modprobe.d might have subdirs, so install them also
2009-03-06 16:58:44 +01:00
Seewer Philippe
a916b0709d
dracut and ubuntu 8.10
...
Followup: Harald Hoyers "Merge" repository boots on ub8.10 with a dracut.conf similar to the following one and the attached patch applied
> cat dracut.conf
modules="ata_piix sd_mod sg"
dracutmodules="dash kernel-modules debug terminfo udev-rules.ub810 base"
2009-03-06 16:35:05 +01:00
Harald Hoyer
06bb5abe9b
add 90kernel-modules-loaded to install currently loaded kernel modules
2009-03-06 16:31:43 +01:00
Harald Hoyer
743c38d878
be more precise, when checking the dracutmodules string, also print
...
message which module is used
2009-03-06 16:27:56 +01:00
Harald Hoyer
4ab702040a
install modprobe.d for special rules and blacklists
2009-03-06 15:44:50 +01:00
Harald Hoyer
0515a94129
add sd_mod to hardcode module list of doom
2009-03-06 15:44:25 +01:00
Harald Hoyer
8e7089689f
add --ignore-install to modprobe calls
2009-03-06 15:39:02 +01:00
Harald Hoyer
2749c2f320
fixed the use of e.g. instmods =drivers/foobar
2009-03-06 15:37:16 +01:00
Harald Hoyer
cfee8a70c0
fixed the use of e.g. instmods =drivers/foobar
2009-03-06 15:25:04 +01:00
Harald Hoyer
52245267a4
fixed instmods
2009-03-06 15:11:42 +01:00
Harald Hoyer
86c9fa4847
add the special "=ata" case for instmods
2009-03-06 15:09:44 +01:00
Harald Hoyer
9ec23437fa
add /sbin to $PATH
2009-03-06 14:36:18 +01:00
Harald Hoyer
20122a83f8
used modules.<subsystem> if present for instmod =<subsystem>
2009-03-06 14:35:19 +01:00
Harald Hoyer
7cd15fe768
use $(( instead of $[
2009-03-06 14:33:42 +01:00
Harald Hoyer
379dd5de55
use udev rules to autoassemble a md raid and added mdmon pre-pivot
2009-03-06 12:43:13 +01:00
Harald Hoyer
2394813bf3
mount move instead of umount and fix the search for fallback inits
...
chdir to newroot, then mount move instead of umount /dev, /sys, etc.
search for fallback init bins in current dirs
2009-03-06 11:53:49 +01:00
Harald Hoyer
1e984a27d2
start udevd with --resolve-names=never
2009-03-06 10:57:16 +01:00
Harald Hoyer
63efe29bb3
use switch_root code from http://pjones.fedorapeople.org/mkstart/usr/lib/mkstart/switchroot.c
2009-03-06 10:57:12 +01:00
Harald Hoyer
883594c833
added mdraid module
2009-03-06 10:32:17 +01:00
Harald Hoyer
1e5527e3e2
fail, if install failed
2009-03-06 10:32:17 +01:00
Harald Hoyer
6b5951b3d6
added mdraid autoassembling
2009-03-06 10:32:12 +01:00
Harald Hoyer
771577a56a
/usr/libexec -> /usr/lib
2009-03-05 19:12:18 +01:00
Harald Hoyer
8df054faac
add gitignore
2009-03-05 19:07:33 +01:00
Harald Hoyer
dd737cf94e
fixed modules install
2009-03-05 19:07:24 +01:00
Harald Hoyer
d554c7eceb
do not rename dracut-functions to functions
2009-03-05 18:56:12 +01:00
Harald Hoyer
3f74659287
s/error /echo /
2009-03-05 18:55:51 +01:00
Harald Hoyer
751c4d43eb
removed rule files (better use upstream rules)
2009-03-05 17:17:44 +01:00
Harald Hoyer
a890fe2922
redirect more to null
2009-03-05 17:17:32 +01:00
Harald Hoyer
0f46778162
added plymouth with crypt handling
2009-03-05 17:16:56 +01:00
Harald Hoyer
59dc373677
keep compat arguments for "inst"
2009-03-05 17:13:34 +01:00
Harald Hoyer
e548dabcef
make crypt more failsafe
2009-03-05 14:47:00 +01:00
Harald Hoyer
879305557c
kill udev before switch_root and bail out after 10 seconds of mount tries
2009-03-05 14:21:59 +01:00
Harald Hoyer
38f31d8e78
only react to "add" to prevent duplicate /cryptroot lines
2009-03-05 14:21:20 +01:00