Victor Lowther
cac7ac4a45
Fixup 90kernel-modules-loaded
...
The inst functions do not know how to handle directories directly.
Just find the files, and they will create the directories as needed.
2009-03-08 11:39:43 -05:00
Victor Lowther
7f8205e1b8
Make dracutmodules default to "auto"
...
We have OS-specific modules, and it is vital that we skip then on
OSes that they do not apply to.
2009-03-08 11:39:43 -05:00
Victor Lowther
05469ee13e
Remove all files on the initramfs before switching root
...
The code from pjones's tree did not include the recursive remove code,
so I readded it from the nash source code.
2009-03-08 11:39:31 -05:00
Victor Lowther
496d08bb19
Some versions of udevd do not look for rules in /lib/udev/rules.d
...
For those versions, install rules to /etc/udev/rules.d instead.
2009-03-07 09:11:00 -06:00
Victor Lowther
71388098b6
Clean up logic for auto vs. hostonly
...
The mass of conditional checking and multiple variables was a little
hard to read, split some of it into its own function.
2009-03-07 09:10:35 -06:00
Victor Lowther
76c88488c4
Move root option processing into a pre-mount hook.
...
This will make it easier to add support for root on nfs, root on iscsi,
root on multipath, and other such oddities.
2009-03-07 08:02:03 -06:00
Harald Hoyer
5cad5bb50e
add hostonly check procedure
2009-03-07 14:01:32 +01:00
Harald Hoyer
558fe20421
fixed Makefile and removed dracut.conf obsoleted by skip-missing
2009-03-07 13:14:59 +01:00
Seewer Philippe
ba5433e9b2
combine --skip-missing to /check infrastructure
...
This patch introduces --skip-missing to skip modules failing /check,
allowing to use the check infrastructure not only for
dracutmodules="auto".
Result: dracutmodules="auto" becomes obsolete, automatically setting
dracutmodules="all" and skipmissing="yes"
Patch is built on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)
2009-03-07 13:10:03 +01:00
Seewer Philippe
4bc2c7e23a
add /check for dmraim module
...
With the /check infrastucture in place, dmraid is missing a check file.
Patch is built on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)
2009-03-07 12:30:17 +01:00
Harald Hoyer
188c20dc31
do not autoinstall 90kernel-modules-loaded 95udev-rules.ub810
2009-03-07 12:19:55 +01:00
Harald Hoyer
c215779f89
set dracutmodules to "auto"
2009-03-07 12:18:44 +01:00
Harald Hoyer
e12aac5ee0
fixed conffile and dracutmodules handling
2009-03-07 12:18:09 +01:00
Harald Hoyer
af2ac89151
fixed -c parameter handling and Makefile
2009-03-07 12:06:17 +01:00
Seewer Philippe
4cba351e28
priorize -m over dracut.conf, add --modules and get rid of automatic use of ./dracut.conf
...
Victor Lowther introduced -c to freely set dracut.conf. Means we can get
rid of automatic use of ./dracut.conf if -l is used, use -c instead.
Second this patch prefers options before config files and adds an option
-d|--drivers to set the modules= option.
Patch is built on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)
2009-03-07 12:04:02 +01:00
Victor Lowther
faf882394b
Simplify switch_root.c a bit
...
Shift some required functionality from switch_root.c to init.
String manipulation and filtering, and testing for the existence of init
is easier in the init script than in C.
2009-03-06 22:32:37 -06:00
Victor Lowther
47507b21a8
Added a comment for instmods.
2009-03-06 21:45:34 -06:00
Victor Lowther
3198f1711f
Fix broken -c handling and give instmods a little optimization.
2009-03-06 21:41:31 -06:00
Victor Lowther
fa2e6ce7e3
Added -c switch to dracut to use a custom dracut.conf
...
Also some doc updates.
2009-03-06 21:16:41 -06:00
Victor Lowther
02d7fdcab4
Minor changes to network scripts to bring inline with my current patch series
2009-03-06 17:04:05 -06:00
Victor Lowther
601a5333d2
Tighten up the ubuntu 8.10 udev rules installation script.
...
We need to add a check file here, but I ahve no idea how to do that for ubuntu.
2009-03-06 16:53:29 -06:00
Victor Lowther
f8fc759574
Modify modprobe.d installation and add check for plymouth
2009-03-06 16:42:05 -06:00
Victor Lowther
321763882c
Chop tons of unneeded stuff out of the plymouth module
...
Most of plymouth-populate-initrd appears to have been unneeded, and is gone.
The rest was updated to match dracut usage.
2009-03-06 16:30:17 -06:00
Victor Lowther
580ea15dee
Make plymouth play nice with current ctypt code, part 2.
...
The reason this works is that inst will refuse to overwrite a file that
already exists. We jsut make plymouth's code to ask for a password have the
same name as 90crypt's password asking script, and it will override 90crypt's
script while leaving everything else intact.
2009-03-06 16:01:15 -06:00
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