Commit Graph

237 Commits (055)

Author SHA1 Message Date
Amadeusz Żołnowski ab8bfca794 Makefile: use implicit rules for install/dracut-install
Don't fail on install rule if install/dracut-install is not build - just
skip it.  $(strip) is not used by install rule, because it is nowhere
set.
2012-07-26 08:35:02 +02:00
Harald Hoyer e045e1f386 Makefile: honor CFLAGS 2012-07-25 15:20:22 +02:00
Harald Hoyer 13f77e9fd5 add documentation for systemd services in the initramfs 2012-07-23 11:29:20 +02:00
Harald Hoyer df7be11b38 Version 022 2012-07-20 13:11:21 +02:00
Harald Hoyer ddf818dad5 Version 021 2012-07-20 11:46:48 +02:00
Harald Hoyer c243105e6b Makefile: set LC_MESSAGES=C ... not LANG 2012-07-19 13:35:31 +02:00
Harald Hoyer 2023d8eb5b Makefile: do not install service from 98systemd. They are copied to /run 2012-07-09 13:02:36 +02:00
Harald Hoyer eaf4cb6bbb Makefile: mkinitrd man page install typo 2012-07-05 06:57:43 +02:00
Harald Hoyer 0e14946a20 add lsinitrd and mkinitrd man pages 2012-07-03 14:19:58 +02:00
Harald Hoyer f4031e8a9a move dracut-install to dracutbasedir
We do not want to install dracut-install to /usr/bin until all
interfaces are set to stone and the manpage is written. Until then the
tool is dracut internal.
2012-07-02 18:52:49 +02:00
Harald Hoyer 09eaf9f5b3 Version 020 2012-06-29 12:54:38 +02:00
Harald Hoyer 026b81e980 install/*: add dracut-install tool 2012-06-29 12:54:38 +02:00
Harald Hoyer 784df1e4e3 version 019 2012-06-04 14:24:25 +02:00
Harald Hoyer ca024e3378 renamed switch-root.{service,target} -> initrd-switch-root 2012-05-22 14:50:19 +02:00
Harald Hoyer dbf8f6ba0e add dracut-version.sh 2012-05-22 14:32:36 +02:00
Harald Hoyer afd1fd8d41 Makefile: install dracut service files from systemd dracut module 2012-05-16 11:29:48 +02:00
Harald Hoyer 53e3244dba Makefile: call git2spec.pl with LANG=C 2012-05-10 14:30:31 +02:00
Harald Hoyer 2de297334b Makefile: do not install systemd service in reboot
shutdown is enough. It is pulled in on reboot.
2012-04-19 11:59:39 +02:00
Harald Hoyer 76c14799da Makefile: version 018 2012-04-05 13:54:38 +02:00
Harald Hoyer f5af0df821 Makefile: fix syncheck
skip dash syntax check, if bash found in shebang
2012-04-05 13:54:38 +02:00
Harald Hoyer 4ce3a1b1bb precompile doc 2012-03-14 15:48:33 +01:00
Harald Hoyer 888d53f270 replace xml documentation with asciidoc 2012-03-14 15:48:33 +01:00
Harald Hoyer dc824f1994 remove dracut-gencmdline 2012-03-14 15:07:20 +01:00
Harald Hoyer f5a9e45923 Version 017 2012-02-24 15:38:08 +01:00
Harald Hoyer a6b63f9192 dracut.spec,Makefile: backward compat symlink for dracut-functions.sh 2012-02-23 12:26:16 +01:00
Harald Hoyer 552ecca6db Renamed all shell scripts to *.sh 2012-02-22 15:15:21 +01:00
Harald Hoyer a2c631c0a3 Makefile: also link dracut-shutdown.service to shutdown target 2012-02-16 09:37:11 +01:00
Harald Hoyer 6bee336909 Version 16 2012-02-15 18:05:34 +01:00
Harald Hoyer 927d9273c4 Makefile: s/dracut-initramfs-backup.sh/dracut-initramfs-restore.sh/ 2012-02-13 18:20:12 +01:00
Harald Hoyer fb67e4aa36 shutdown on demand
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
2012-02-13 07:08:08 +01:00
Harald Hoyer 4cfd24d179 Backup and restore /run/initramfs via systemd services
This saves the space /run/initramfs is taking for the shutdown
2012-02-10 11:14:31 +01:00
Harald Hoyer a74eae77ac Version 15 2012-02-07 20:57:12 +01:00
Harald Hoyer dcba56cafa Makefile: dash does not like {} expansion
removed {} expansion for mandir mkdir for users, which have dash as
/bin/sh
2012-01-05 14:48:57 +01:00
Harald Hoyer 5e90d26658 Makefile: set bindir to ${prefix}/bin rather than sbin 2012-01-05 14:36:45 +01:00
Harald Hoyer ef8b121e2c version 014 2011-12-15 09:19:05 +01:00
Harald Hoyer 45abddb069 renamed dracut.kernel.7 to dracut.cmdline.7 2011-12-15 09:19:04 +01:00
Harald Hoyer ed919de0a7 dracut.spec: move sbindir from /sbin to /usr/bin
https://fedoraproject.org/wiki/Features/UsrMove
2011-12-02 13:03:01 +01:00
Harald Hoyer c5a6599080 Makefile, dracut.spec: move dracut to /usr/lib/dracut
Move dracut to /usr/lib/dracut.
We should not have picked /usr/share/dracut. Dracut is no ordinary "data".
2011-12-02 13:03:00 +01:00
Amadeusz Żołnowski 2799897ad8 Makefile: Append target files names for man pages.
Edited-By: harald@redhat.com: removed trailing whitespace
2011-11-16 15:32:07 +01:00
Harald Hoyer 9af39cbe31 Makefile, git2spec.pl: use temporary builddir
to build the dracut rpm, use a temporary builddir
2011-11-15 09:47:19 +01:00
Harald Hoyer e9519a397f version 013 2011-08-12 16:17:58 +02:00
Harald Hoyer ac965cd828 Makefile: increment version to 012 2011-08-11 17:52:58 +02:00
Harald Hoyer e7b877427b Makefile: do not remove rpmbuild on fail 2011-08-11 14:27:25 +02:00
Harald Hoyer 7893469fca Makefile: inc version 2011-07-18 17:05:06 +02:00
Harald Hoyer b038e0aac9 Makefile: copy created rpms from rpmbuild in "rpm" target 2011-07-18 17:04:27 +02:00
Harald Hoyer 0e6a94b329 Makefile: simplify "make rpm" 2011-05-31 16:34:37 +02:00
Harald Hoyer b99dc517d6 inc version 2011-04-14 12:03:24 +02:00
Harald Hoyer e365864bbc removed switch_root.c 2011-04-11 13:12:30 +02:00
Harald Hoyer 5dcd565dab NEWS: inc version and add NEWS 2011-03-31 18:49:27 +02:00
Harald Hoyer b4fbdbbe1e Makefile: "make dist" now generates .tar.gz 2011-03-31 18:45:01 +02:00
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