Victor Lowther
5fff86626b
Update plymouth to work with running cryptsetup from a udev rule.
16 years ago
Victor Lowther
fa0115c3c0
Unlock our encrypted root in a udev rule.
16 years ago
Victor Lowther
f81a894eb0
Move processing root options into a pre-udev hook.
...
Also make changes that will make it easier to udevify resuming
from hibernate and mounting root.
16 years ago
Victor Lowther
88ffd2df3f
Update test framework to create and use LVM on cryptroot
16 years ago
Harald Hoyer
8214a17d58
changed mode of modules.d/90dmsetup/check to 0755
16 years ago
Harald Hoyer
04726f4169
removed exit 1 from debug
16 years ago
Harald Hoyer
bb040f9315
trigger root mount via udev rules
16 years ago
Harald Hoyer
85e90fd44b
removed trailing \
16 years ago
Harald Hoyer
ab83e0a6f5
get crypt password with rules
16 years ago
Harald Hoyer
e22d1330d1
Revert "Make plymouth play nice with the current crypt code, part 1"
...
This reverts commit 79ec17c74d
.
16 years ago
Harald Hoyer
f5f9bfee2d
add full patch to /sbin/ip and check for dhclient $pid before kill
16 years ago
Harald Hoyer
a96499538b
ignore testimages
16 years ago
Harald Hoyer
0a98b6d905
do not display "file not found" for /etc/lsb-release
16 years ago
Harald Hoyer
5c86253310
fixed bash error in inst_binary()
...
./dracut-functions: line 108: syntax error near unexpected token `<'
./dracut-functions: line 108: ` done < <(ldd $bin 2>/dev/null)'
16 years ago
Victor Lowther
32d6bc5d75
Modify Makefile to use new test harness
16 years ago
Victor Lowther
c0b5f979a8
Add a very simple test harness
...
This creates a basic root filesystem, creates an initramfs, and tries
to boot to the basic filesystem.
The init code on the test filesystem prints how much memory is used vs. free
and then drops to a shell. Exiting the shell will power off the VM.
16 years ago
Victor Lowther
7bff75da14
Make udevd shut up
...
Do this by loading /etc/group and /lib*/libnss_files.so.* onto the initramfs
16 years ago
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.
16 years ago
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.
16 years ago
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.
16 years ago
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.
16 years ago
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.
16 years ago
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.
16 years ago
Harald Hoyer
5cad5bb50e
add hostonly check procedure
16 years ago
Harald Hoyer
558fe20421
fixed Makefile and removed dracut.conf obsoleted by skip-missing
16 years ago
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)
16 years ago
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)
16 years ago
Harald Hoyer
188c20dc31
do not autoinstall 90kernel-modules-loaded 95udev-rules.ub810
16 years ago
Harald Hoyer
c215779f89
set dracutmodules to "auto"
16 years ago
Harald Hoyer
e12aac5ee0
fixed conffile and dracutmodules handling
16 years ago
Harald Hoyer
af2ac89151
fixed -c parameter handling and Makefile
16 years ago
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)
16 years ago
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.
16 years ago
Victor Lowther
47507b21a8
Added a comment for instmods.
16 years ago
Victor Lowther
3198f1711f
Fix broken -c handling and give instmods a little optimization.
16 years ago
Victor Lowther
fa2e6ce7e3
Added -c switch to dracut to use a custom dracut.conf
...
Also some doc updates.
16 years ago
Victor Lowther
02d7fdcab4
Minor changes to network scripts to bring inline with my current patch series
16 years ago
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.
16 years ago
Victor Lowther
f8fc759574
Modify modprobe.d installation and add check for plymouth
16 years ago
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.
16 years ago
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.
16 years ago
Victor Lowther
79ec17c74d
Make plymouth play nice with the current crypt code, part 1
16 years ago
Victor Lowther
91b80abdce
Tighten up 90kernel-modules-loaded a bit.
16 years ago
Victor Lowther
cb330cac77
Tighten up 90kernel-modules/install a bit.
16 years ago
Victor Lowther
3ffa5b1135
Make 90lvm load the device-mapper rules instead of 95udev-rules
16 years ago
Victor Lowther
b2a843b471
Make 90dmraid load the dm-raid udev rules instead of 95udev-rules
16 years ago
Victor Lowther
8fb66c9a3f
Use new check functionaloty to only load cryptoroot when needed
16 years ago
Victor Lowther
25a244f774
Use new check functionality to make 10redhat-i18n only work on redhat.
16 years ago
Victor Lowther
4ca2254668
Make dash module use new check functionality
16 years ago
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
16 years ago