Commit Graph

237 Commits (055)

Author SHA1 Message Date
Harald Hoyer da22a02130 Makefile: split syntax check from target "check" to "syncheck"
also add syntax check for the bash scripts
2011-03-17 12:12:48 +01:00
Harald Hoyer f709fa439b Install dracut-logger and add it to the spec file 2011-03-16 13:56:20 +01:00
Harald Hoyer 4877bb510e dracut.spec: inc release to 009 prerelease 2011-03-10 19:25:09 +01:00
Harald Hoyer 440a4cc247 Makefile: do not dash syntax check module-setup.sh
module-setup.sh is bash syntax, so dash complains about bash contructs
2011-02-18 13:11:53 +01:00
Harald Hoyer 498a131239 Makefile: use xhtml instead of xhtml-1_1 for the docbook.xsl 2010-11-10 15:05:04 +01:00
Harald Hoyer 1b4a9d8ad8 documentation update 2010-10-15 13:14:08 +02:00
Harald Hoyer 2d9f5858bc add dracut.xml documentation 2010-09-20 14:53:51 +02:00
Harald Hoyer c033d96e49 version inc 2010-08-09 16:28:38 +02:00
Harald Hoyer 5bb59e428f Makefile: install dracut.kernel.7 2010-08-06 18:15:51 +02:00
Amadeusz Żołnowski 5150d44a7e Makefile: use $(MAKE) and $(RM) instead of make and rm -f
See: http://www.gnu.org/software/make/manual/make.html#MAKE-Variable
2010-08-06 11:53:02 +02:00
Harald Hoyer cdc8d9c403 documentation: moved to docbook man pages 2010-08-05 16:38:49 +02:00
Harald Hoyer dd2c34a82b version pre 7 2010-08-02 09:00:01 +02:00
Harald Hoyer 7d86d90d11 Version 006 2010-06-17 10:58:27 +02:00
Harald Hoyer 9cdde06d50 Makefile: make more clean 2010-05-19 09:55:48 +02:00
Harald Hoyer ab56546dc7 version 005 2010-03-19 16:51:05 +01:00
Harald Hoyer 2c2c45800c add /etc/dracut.conf.d 2010-02-12 11:12:37 +01:00
Harald Hoyer 3ee26913e7 version 004 2010-01-15 14:09:06 +01:00
Harald Hoyer 63d8d27b03 install lsinitrd/mkinitrd 2010-01-13 17:13:20 +01:00
Harald Hoyer 66e45737e1 add man pages for dracut-catimages and dracut-gencmdline 2010-01-12 14:51:17 +01:00
Harald Hoyer 9993392f6d version 003 2009-11-27 15:25:46 +01:00
Harald Hoyer 0cd23d778e Makefile: gitrpm: cleanup on failed rpmbuild 2009-11-27 14:57:37 +01:00
Harald Hoyer 6cc96b358a add dracut.conf man page 2009-11-27 10:53:28 +01:00
Harald Hoyer 7f1282834f Makefile: add WITH_SWITCH_ROOT 2009-11-23 12:28:53 +01:00
Harald Hoyer 3f793c91f4 AUTHORS: generated by git-shortlog
add AUTHORS target to Makefile

only list main authors in man page
2009-10-07 10:11:55 +02:00
Harald Hoyer 5cf5569d6e Makefile: reorder targets 2009-09-30 10:18:25 +02:00
Lance Albertson 13d942e163 custom paths
Fix Makefile so that it allows us to install the root in a sane location (which
is needed in Gentoo).
2009-09-29 19:00:48 +02:00
Harald Hoyer 9a99c974a4 version 002 2009-09-17 17:52:00 +02:00
Harald Hoyer d889c019e7 version 001 2009-09-02 15:55:35 +02:00
Harald Hoyer 54b87586aa fixed gitrpm 2009-09-01 15:42:27 +02:00
Harald Hoyer bdccc34e7e Makefile: add hostimage target for a hostonly image
call it with root priviledges
2009-08-19 17:10:38 +02:00
Harald Hoyer 5d12f1a485 version 0.9 2009-08-14 17:59:43 +02:00
Harald Hoyer 1def132d53 version 0.8 2009-08-06 15:10:59 +02:00
Harald Hoyer 21007cb6ec version 0.7 2009-07-25 11:09:35 +02:00
Harald Hoyer 5494f08cc5 add dracut-catimages
Usage: ./dracut-catimages [OPTION]... <initramfs> <base image>
[<image>...]
Creates initial ramdisk image by concatenating several images from the
command
line and /boot/dracut/

  -f, --force           Overwrite existing initramfs file.
  -i, --imagedir        Directory with additional images to add
                        (default: /boot/dracut/)
  -o, --overlaydir      Overlay directory, which contains files that
                        will be used to create an additional image
  --nooverlay           Do not use the overlay directory
  --noimagedir          Do not use the additional image directory
  -h, --help            This message
  --debug               Output debug information of the build process
  -v, --verbose         Verbose output during the build process
2009-07-25 11:09:35 +02:00
Harald Hoyer a8b15b36bf version 0.6 2009-07-22 15:07:47 +02:00
Harald Hoyer 33ee031c4a dracut: add --kernel-only and --no-kernel arguments
--kernel-only
              only install kernel drivers and firmware files

       --no-kernel
              do not install kernel drivers and firmware files

All kernel module related install commands moved from "install"
to "installkernel".

For "--kernel-only" all installkernel scripts of the specified
modules are used, regardless of any checks, so that all modules
which might be needed by any dracut generic image are in.

The basic idea is to create two images. One image with the kernel
modules and one without. So if the kernel changes, you only have
to replace one image.

Grub and the kernel can handle multiple images, so grub entry can
look like this:

title Fedora (2.6.29.5-191.fc11.i586)
        root (hd0,0)
        kernel /vmlinuz-2.6.29.5-191.fc11.i586 ro rhgb quiet
        initrd /initrd-20090722.img
        initrd /initrd-kernel-2.6.29.5-191.fc11.i586.img
        initrd /initrd-config.img

initrd-20090722.img
  the image provided by the initrd rpm
  one old backup version is kept like with the kernel

initrd-kernel-2.6.29.5-191.fc11.i586.img
  the image provided by the kernel rpm

initrd-config.img
  optional image with local configuration files
2009-07-22 15:07:11 +02:00
Harald Hoyer b54cac21c1 Makefile: make clean before rpm 2009-07-17 16:00:20 +02:00
Harald Hoyer acff0cc10c version 0.5 2009-07-17 16:00:20 +02:00
Harald Hoyer a6f8c08347 dracut-gencmdline - generate the kernel command line for the local host 2009-07-17 16:00:20 +02:00
Harald Hoyer f4da80735a Makefile: add debug module to the testimage target 2009-07-15 18:27:21 +02:00
Harald Hoyer 616f1557b1 version 0.4 2009-07-04 10:05:38 +02:00
Harald Hoyer df328b6c36 version 0.3 2009-07-02 11:48:27 +02:00
Harald Hoyer 22a27a5023 version 0.2 2009-07-01 21:32:33 +02:00
Harald Hoyer f1bbaa64b5 add target for "dist" and "gitrpm"
"make gitrpm" creates an rpm from the last git checkin
"make rpm" creates an rpm for the version tagged with $VERSION
"make dist" creates a tarball for the version tagged with $VERSION
2009-06-19 13:59:11 +02:00
Harald Hoyer 73198d53f3 /usr/lib/dracut -> /usr/share/dracut 2009-06-19 13:57:13 +02:00
Harald Hoyer d49449cd4e updated switch_root.c
matches the version, which will go to util-linux-ng
2009-06-19 13:00:08 +02:00
Harald Hoyer 11e4b91677 install man page 2009-06-17 15:44:03 +02:00
Harald Hoyer 68ea18cfa1 specfile update 2009-06-04 17:49:28 +02:00
Harald Hoyer 59615e06a4 make paths configurable 2009-06-04 17:44:26 +02:00
Harald Hoyer c4d25b18f5 prepare for release 2009-06-04 13:08:39 +02:00
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