Commit Graph

237 Commits (055)

Author SHA1 Message Date
Harald Hoyer 8afc472432 don't be verbose on testimage target 2009-06-03 17:04:43 +02:00
Harald Hoyer c00f04f57a introduce modular test suite 2009-05-25 15:32:26 +02:00
Harald Hoyer ce743a71cc create test/initramfs.testing from Makefile target 2009-05-25 12:11:27 +02:00
Victor Lowther 4957ab92f2 Create test image on an md array and improve cryptroot handling
If we purport to test booting to an md raid, we may as well test it.

We do not need the plymouth module and the normal crypt module to include
duplicate functionality.
2009-05-25 11:36:32 +02:00
Victor Lowther c92e789ff4 Remove generated test initramfs'es when cleaning up 2009-05-25 11:36:32 +02:00
Harald Hoyer e2367e1948 add APPEND and DRACUTOPTS to make target "test"
call test with additional dracut options and kernel command line
parameter:

$ make APPEND="udevinfo quiet" DRACUTOPTS="-verbose" test
2009-05-15 13:16:15 +02:00
Harald Hoyer c4ad7ffff4 add debug and changed verbose parameter
previous -verbose is now -debug (set -x)
-verbose adds some information about the resulting initrd size
2009-05-15 12:45:58 +02:00
Harald Hoyer 5cb6c761c1 add target "check"
add dash syntax checking
2009-05-15 12:44:36 +02: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 32d6bc5d75 Modify Makefile to use new test harness 2009-03-08 11:51:21 -05:00
Harald Hoyer 558fe20421 fixed Makefile and removed dracut.conf obsoleted by skip-missing 2009-03-07 13:14:59 +01:00
Harald Hoyer af2ac89151 fixed -c parameter handling and Makefile 2009-03-07 12:06:17 +01:00
Harald Hoyer 771577a56a /usr/libexec -> /usr/lib 2009-03-05 19:12:18 +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 8ac8d68a0e testimage target fixes 2009-03-05 14:20:05 +01:00
Harald Hoyer 0680bbaf01 fixed rpm building on Fedora 11
"Only dest dir longer than base dir not supported"
2009-03-05 11:31:30 +01:00
Harald Hoyer 2f525c4905 add compile phase to testimage and force overwrite 2009-03-05 11:31:27 +01:00
Harald Hoyer 6567383252 do not get GITTAG, if there is no .git 2009-03-05 11:31:17 +01:00
Harald Hoyer 6b2a2be3ba added tar.bz2 target for the rpm and archive target 2009-03-05 10:56:13 +01:00
Harald Hoyer 710322ecf0 define gittag for rpm target 2009-03-05 10:55:49 +01:00
Harald Hoyer 4579f5a832 add sample dracut.conf 2009-03-05 10:44:17 +01:00
Harald Hoyer ccd71eeb17 add testimage target 2009-03-05 10:33:18 +01:00
Harald Hoyer 7323a62176 renamed archive file and convenience target for rpm 2009-03-05 10:18:46 +01:00
Harald Hoyer f8a22bfb95 fix modules.d install 2009-03-05 09:54:58 +01:00
Harald Hoyer 834f614534 fixes for specfile and Makefile 2009-03-04 17:25:30 +01:00
Harald Hoyer c4da240717 replace switch_root shell script with binary
The switch_root shell script did not work with bash-4.0-2, because
"exec" gets the real path of the executable which is then
"/sysroot/lib/ld-linux.so.2" instread of "./lib/ld-linux.so.2".

Also the required chroot binary might live in /usr/bin, which can
be mounted later.

Here is the switch_root code from nash, which can be stripped down
further, but which works.

>From f1b1e4f8694104f007e4483c36b0bf40a5760167 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Date: Wed, 4 Mar 2009 13:41:07 +0100
Subject: [PATCH] replace switch_root shell script with binary

The switch_root shell script did not work with bash-4.0-2, because
"exec" gets the real path of the executable which is then
"/sysroot/lib/ld-linux.so.2" instead of "./lib/ld-linux.so.2".
Also the required chroot binary might live in /usr/bin, which can
be mounted later.

Here is the switch_root code from nash, which can be stripped down
further, but which works.
2009-03-04 17:23:03 +01:00
Seewer Philippe fafe4adec5 Fix Makefile installing in wrong directories
rules, hooks and modules are installed in $(DESTDIR)/usr/libexec/dracut/
instead of their corresponding sub-directories.

This patch fixes this.

--
 Makefile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
2009-03-04 17:01:22 +01:00
Victor Lowther 6337e3edca Modify Makefile to understand the new module structure. 2009-03-04 16:55:17 +01:00
Victor Lowther 3f9c86ab86 Hooks and modules have a .sh extension
This makes it trivial to filter out temporary files, editor backups,
package management leftovers, etc.  Thanks, Kay for the idea.
2009-02-23 13:22:01 -05:00
Dave Jones 1c25acaac4 Fix typo in hook installation.
Spotted by Fatih Aşıcı <fatih@pardus.org.tr>
2009-02-18 13:00:59 -05:00
Victor Lowther 53f954561a [PATCH 49/50] Modify hook loading to make it slightly easier to script.
Modules are now responsible for loading their hooks into the initrd.

This should be all the structure we need to make it easy for things
to integrate with dracut -- now to document and test it all.
2009-02-16 13:56:51 -05:00
Victor Lowther 955f8b09ad [PATCH 44/50] Get rid of echoer script
We can use sh -c to accomplish the same goal

Also move cat back on to the list of debugging tools -- all the files we were
using it on in the initrd can use read to accomplish the same goal.
2009-02-16 13:56:42 -05:00
Victor Lowther ec1ad3347c [PATCH 33/50] We now have a simple hook structure and 3 defined hook points.
Any script placed in /pre-udev will be sourced just before udev starts
device scanning and loading.

Any script placed in /pre-mount will be sourced just before we try to
mount a root filesystem.

Any script placed in /pre-pivot will be sourced just before we switch to the
new root filesystem.

These hooks should be the minimum needed to add back plymouth and deal with
more advanced filesysem mounting needs (multipath, iscsi, nfs, nbd, etc.)
2009-02-16 13:56:42 -05:00
Victor Lowther 933a523af3 [PATCH 29/50] Add echoer script 2009-02-16 13:56:41 -05:00
Jeremy Katz e47d25ffb8 Don't use deprecated git-* commands 2009-01-22 16:14:18 -05:00
Jeremy Katz 533cd7781a Add a makefile 2008-12-18 15:58:15 -05:00