Commit Graph

2707 Commits (a43f97c4e35d0d9c7e6e315e11c909e86936e1cc)

Author SHA1 Message Date
Harald Hoyer 47f151f762 Merge branch 'enhanced-test-framework' of git://fnordovax.org/dracut into test
Conflicts:
	modules.d/50plymouth/63-luks.rules
	modules.d/50plymouth/cryptroot.sh
	modules.d/50plymouth/install
	modules.d/90crypt/63-luks.rules
	modules.d/90crypt/cryptroot.sh
	modules.d/90crypt/install
2009-03-23 15:28:14 +01:00
Victor Lowther 37dcb40001 do not use grep to test if sysroot is mounted 2009-03-23 15:06:45 +01:00
Victor Lowther 7bc0e5714b module 90kernel-modules-loaded
On Mon, 2009-03-09 at 16:00 +0100, Harald Hoyer wrote:
> Victor Lowther wrote:
> > How does it handle nfsroot?
>
> not yet.. thus the old hooks are still called. :-/

Hmmm... your udev based resume and root mounting do not work at all for
me.  If I do not install the shell-based mount hooks, the root
filesystem never gets mounted -- I have to mount it manually.

Also,
2009-03-23 15:06:02 +01:00
Victor Lowther 6ce3123192 Updated test-init to only create fstab symlink as needed. 2009-03-20 03:51:05 -05:00
Victor Lowther 0abfff0ddf Don't regenerate the test image when anything changes
Only regenerate it if we changed test-init or make-test-root
2009-03-20 03:40:02 -05:00
Victor Lowther 4620284073 Move loading crypt kernel modules to the crypt module 2009-03-20 03:36:21 -05:00
Victor Lowther 9239133486 Minor updates to the testing framework 2009-03-20 03:34:30 -05:00
Victor Lowther 80c9d068b2 Just pass args the kernel passed to us, not /proc/cmdline args. 2009-03-20 03:08:40 -05:00
Victor Lowther b5c7c7e829 Silence in the initramfs is golden.
Get rid of gratuitous text -- we should only talk if asking a question or
if something screwed up.
2009-03-20 03:08:40 -05:00
Victor Lowther 8faaa8f082 Change default install target for udev rules.
Also make sure that udev does not complain about a missing rules.d directory.
2009-03-20 03:08:40 -05:00
Victor Lowther 597bd00990 Load all our usual dracut modules 2009-03-20 03:08:40 -05:00
Victor Lowther 35f90aafd2 Move finding and mounting root on block devices into its own hook. 2009-03-20 03:08:40 -05:00
Victor Lowther 99576a2a63 Split out resume handling into its own hook. 2009-03-20 03:08:40 -05:00
Victor Lowther 1b87b9670a Move parsing rootfs options to a pre-udev hook. 2009-03-20 03:08:40 -05:00
Victor Lowther 5fff86626b Update plymouth to work with running cryptsetup from a udev rule. 2009-03-20 03:08:40 -05:00
Victor Lowther fa0115c3c0 Unlock our encrypted root in a udev rule. 2009-03-20 03:08:39 -05:00
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.
2009-03-20 03:08:39 -05:00
Victor Lowther 88ffd2df3f Update test framework to create and use LVM on cryptroot 2009-03-20 03:08:39 -05:00
Harald Hoyer 8214a17d58 changed mode of modules.d/90dmsetup/check to 0755 2009-03-09 13:18:06 +01:00
Harald Hoyer 04726f4169 removed exit 1 from debug 2009-03-09 13:11:38 +01:00
Harald Hoyer bb040f9315 trigger root mount via udev rules 2009-03-09 13:08:12 +01:00
Harald Hoyer 85e90fd44b removed trailing \ 2009-03-09 13:08:12 +01:00
Harald Hoyer ab83e0a6f5 get crypt password with rules 2009-03-09 13:08:12 +01:00
Harald Hoyer e22d1330d1 Revert "Make plymouth play nice with the current crypt code, part 1"
This reverts commit 79ec17c74d.
2009-03-09 13:08:12 +01:00
Harald Hoyer f5f9bfee2d add full patch to /sbin/ip and check for dhclient $pid before kill 2009-03-09 13:08:12 +01:00
Harald Hoyer a96499538b ignore testimages 2009-03-09 13:06:19 +01:00
Harald Hoyer 0a98b6d905 do not display "file not found" for /etc/lsb-release 2009-03-09 09:18:25 +01:00
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)'
2009-03-09 09:17:41 +01:00
Victor Lowther 32d6bc5d75 Modify Makefile to use new test harness 2009-03-08 11:51:21 -05:00
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.
2009-03-08 11:39:55 -05:00
Victor Lowther 7bff75da14 Make udevd shut up
Do this by loading /etc/group and /lib*/libnss_files.so.* onto the initramfs
2009-03-08 11:39:43 -05:00
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