]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
11 years agoconsistently lowercase "dracut"
Harald Hoyer [Wed, 10 Oct 2012 12:15:11 +0000 (14:15 +0200)] 
consistently lowercase "dracut"

11 years agoTEST-04-FULL-SYSTEMD/test.sh: fixed $kernel var
Harald Hoyer [Wed, 10 Oct 2012 12:14:31 +0000 (14:14 +0200)] 
TEST-04-FULL-SYSTEMD/test.sh: fixed $kernel var

11 years agoinstall virtio* modules in the generic case
Harald Hoyer [Tue, 9 Oct 2012 15:43:44 +0000 (17:43 +0200)] 
install virtio* modules in the generic case

https://bugzilla.redhat.com/show_bug.cgi?id=864012

11 years agoAdd rd.noverifyssl argument (#852229)
Brian C. Lane [Mon, 8 Oct 2012 22:01:29 +0000 (15:01 -0700)] 
Add rd.noverifyssl argument (#852229)

This adds --insecure to the curl args so that self-signed certificates
will be accepted.

11 years agotest: disable systemd for encryption
Harald Hoyer [Tue, 9 Oct 2012 14:46:46 +0000 (16:46 +0200)] 
test: disable systemd for encryption

11 years agodracut-functions.sh: inst_rules_program() skip udev vars ${}
Harald Hoyer [Mon, 8 Oct 2012 13:39:23 +0000 (15:39 +0200)] 
dracut-functions.sh: inst_rules_program() skip udev vars ${}

11 years agoi18n/parse-i18n.sh: correctly populate /etc/vconsole.conf
Harald Hoyer [Mon, 8 Oct 2012 13:38:41 +0000 (15:38 +0200)] 
i18n/parse-i18n.sh: correctly populate /etc/vconsole.conf

11 years agoshutdown/shutdown.sh: failsafe shutdown for kexec
Harald Hoyer [Mon, 8 Oct 2012 13:37:04 +0000 (15:37 +0200)] 
shutdown/shutdown.sh: failsafe shutdown for kexec

copy kexec from the real root, if it is not found in the unpacked
initramfs for shutdown.

Also drop to an emergency shell, if we can't do the ACTION

11 years agoTEST-20-NFS/test.sh: reformat
Harald Hoyer [Mon, 8 Oct 2012 13:36:41 +0000 (15:36 +0200)] 
TEST-20-NFS/test.sh: reformat

11 years agoTEST-50-MULTINIC/test.sh: fix multinic issues
Harald Hoyer [Mon, 8 Oct 2012 13:04:38 +0000 (15:04 +0200)] 
TEST-50-MULTINIC/test.sh: fix multinic issues

11 years agoreturn proper value in function dracut_install
Dave Young [Mon, 8 Oct 2012 09:40:08 +0000 (17:40 +0800)] 
return proper value in function dracut_install

dracut_install should return the real return value, so module install function
can detect the install failure.

Such as below in 99base:
dracut_install switch_root || dfatal "Failed to install switch_root"

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agodracut-functions.sh: find_binary: path starting with variable
Amadeusz Żołnowski [Sun, 7 Oct 2012 13:29:03 +0000 (15:29 +0200)] 
dracut-functions.sh: find_binary: path starting with variable

Credits go to Alexander Tsoy <bugs+gentoo@puleglot.ru> who provided the
patch with following explanation:

  I get messages "Skipping program $env{DM_SBIN_PATH}/..." when
  generating initramfs. This happens because some udev rules contains
  variables in path to command:

  $ egrep -r 'IMPORT\{program\}=\"\$' /lib64/udev/rules.d/
  /lib64/udev/rules.d/10-dm.rules:ENV{DM_COOKIE}=="?*", IMPORT{program}="$env{DM_SBIN_PATH}/dmsetup udevflags $env{DM_COOKIE}"

  [...]

  $ sudo dracut -f "" 3.5.4-hardened-r1
  I: *** Including module: dm ***
  I: Skipping program $env{DM_SBIN_PATH}/dmsetup using in udev rule 10-dm.rules as it cannot be found

11 years ago90crypt: call systemd commands only if systemd binaries are there
Amadeusz Żołnowski [Sun, 7 Oct 2012 13:29:02 +0000 (15:29 +0200)] 
90crypt: call systemd commands only if systemd binaries are there

11 years agos/libnss*.so/libnss_*.so so that we don't install libnss3.so
Harald Hoyer [Thu, 4 Oct 2012 18:38:25 +0000 (14:38 -0400)] 
s/libnss*.so/libnss_*.so so that we don't install libnss3.so

11 years agosystemd: rename emergency.service to dracut-emergency.service for rd.shell
Harald Hoyer [Thu, 4 Oct 2012 17:24:07 +0000 (13:24 -0400)] 
systemd: rename emergency.service to dracut-emergency.service for rd.shell

11 years agoadd "--kernel-cmdline" and kernel_cmdline options for default parameters
Harald Hoyer [Thu, 4 Oct 2012 17:23:19 +0000 (13:23 -0400)] 
add "--kernel-cmdline" and kernel_cmdline options for default parameters

11 years agodracut-functions: add inst_rule_group_owner()
Harald Hoyer [Thu, 4 Oct 2012 17:04:36 +0000 (13:04 -0400)] 
dracut-functions: add inst_rule_group_owner()

add inst_rule_group_owner() to install GROUP and OWNER of udev rules

11 years agodracut-functions.sh:inst_rules_program() also recognize RUN+=
Harald Hoyer [Thu, 4 Oct 2012 16:15:36 +0000 (12:15 -0400)] 
dracut-functions.sh:inst_rules_program() also recognize RUN+=

11 years agodracut-functions.sh: move the i2o_scsi to the omit_drivers variable
Harald Hoyer [Wed, 3 Oct 2012 20:36:15 +0000 (16:36 -0400)] 
dracut-functions.sh: move the i2o_scsi to the omit_drivers variable

11 years agosystemd: improve the emergency shell
Harald Hoyer [Wed, 3 Oct 2012 20:38:38 +0000 (16:38 -0400)] 
systemd: improve the emergency shell

11 years agoinstall/dracut-install.c: do not ldd directories
Harald Hoyer [Wed, 3 Oct 2012 20:37:23 +0000 (16:37 -0400)] 
install/dracut-install.c: do not ldd directories

11 years agosystemd/module-setup.sh: move some services to sysinit
Harald Hoyer [Wed, 3 Oct 2012 20:35:13 +0000 (16:35 -0400)] 
systemd/module-setup.sh: move some services to sysinit

11 years agodracut-functions.sh: do not check all modules for filesystems
Harald Hoyer [Wed, 3 Oct 2012 20:33:50 +0000 (16:33 -0400)] 
dracut-functions.sh: do not check all modules for filesystems

11 years agodracut-functions.sh: make hostonly case more failsafe for new modules
Harald Hoyer [Wed, 3 Oct 2012 20:32:07 +0000 (16:32 -0400)] 
dracut-functions.sh: make hostonly case more failsafe for new modules

If new modules are introduced, or modules get renamed, or modules change
from builtin to real modules, we want to include them in the host-only
image, just to be safe.

11 years agobase/dracut-lib.sh: better error message for deprecated cmdline options
Harald Hoyer [Fri, 28 Sep 2012 11:04:20 +0000 (13:04 +0200)] 
base/dracut-lib.sh: better error message for deprecated cmdline options

11 years agoi18n/parse-i18n.sh: corrected the right option to use for the cmdline
Harald Hoyer [Fri, 28 Sep 2012 11:03:40 +0000 (13:03 +0200)] 
i18n/parse-i18n.sh: corrected the right option to use for the cmdline

11 years agoMakefile: fix css style for dracut.html
Harald Hoyer [Fri, 28 Sep 2012 09:17:13 +0000 (11:17 +0200)] 
Makefile: fix css style for dracut.html

11 years agodracut.cmdline.7.asc: extend rd.auto doc
Harald Hoyer [Fri, 28 Sep 2012 09:16:01 +0000 (11:16 +0200)] 
dracut.cmdline.7.asc: extend rd.auto doc

11 years agodracut-functions.sh:get_persistent_dev() exception for multipath devices
Harald Hoyer [Fri, 28 Sep 2012 09:13:20 +0000 (11:13 +0200)] 
dracut-functions.sh:get_persistent_dev() exception for multipath devices

An exception is multipath devices, child and top layer device may have
same uuid. As dm devices maintain /dev/mapper/* as persistent names,
just do not doing converting for them.

11 years agoMakefile: revert documentation logic
Harald Hoyer [Thu, 27 Sep 2012 15:04:37 +0000 (17:04 +0200)] 
Makefile: revert documentation logic

11 years agobuild: Add --disable-documentation option
Colin Walters [Tue, 7 Feb 2012 18:53:58 +0000 (13:53 -0500)] 
build: Add --disable-documentation option

Some operating system builders may not want to build documention, for
example during a bootstrapping process.

11 years agoadd "rd.auto" parameter and switch off automatic assembly
Harald Hoyer [Thu, 27 Sep 2012 12:05:50 +0000 (14:05 +0200)] 
add "rd.auto" parameter and switch off automatic assembly

No automatic assembly is done anymore by default. You will have to
specify exactly what devices to assemble
("rd.md.uuid=" "rd.luks.uuid" ...)
or use "rd.auto=1" or "rd.auto" on the kernel command line.

For big servers with thousands of disks we don't want to assemble
everything by default (error prone, slow).

11 years agoSupport GNOME Build API
Colin Walters [Thu, 27 Sep 2012 01:59:55 +0000 (21:59 -0400)] 
Support GNOME Build API

For dracut:

See people.gnome.org/~walters/docs/build-api.txt

We have a new stub configure script that writes out a Makefile.inc.

11 years agoTODO: update
Harald Hoyer [Thu, 27 Sep 2012 10:28:46 +0000 (12:28 +0200)] 
TODO: update

11 years agoshutdown/shutdown.sh: reboot, if no argument was given
Harald Hoyer [Thu, 27 Sep 2012 10:10:14 +0000 (12:10 +0200)] 
shutdown/shutdown.sh: reboot, if no argument was given

11 years agonetwork/ifup.sh: setup nameserver for every interface
Harald Hoyer [Thu, 27 Sep 2012 09:52:27 +0000 (11:52 +0200)] 
network/ifup.sh: setup nameserver for every interface

even for dhcp

https://bugzilla.redhat.com/show_bug.cgi?id=840769

11 years agodracut.sh: create the initramfs non-world readable
Harald Hoyer [Thu, 27 Sep 2012 08:18:29 +0000 (10:18 +0200)] 
dracut.sh: create the initramfs non-world readable

11 years agodm/module-setup.sh: instmods dm_mod
Harald Hoyer [Wed, 26 Sep 2012 13:05:34 +0000 (15:05 +0200)] 
dm/module-setup.sh: instmods dm_mod

11 years agoTEST-16-DMSQUASH: reenable test
Harald Hoyer [Wed, 26 Sep 2012 09:58:51 +0000 (11:58 +0200)] 
TEST-16-DMSQUASH: reenable test

11 years agocrypt/crypt-run-generator.sh: add allow-discards to options in crypttab
Harald Hoyer [Wed, 26 Sep 2012 09:49:28 +0000 (11:49 +0200)] 
crypt/crypt-run-generator.sh: add allow-discards to options in crypttab

11 years agodracut.cmdline.7.asc: fixed rd.luks.allow-discards format
Harald Hoyer [Wed, 26 Sep 2012 09:48:41 +0000 (11:48 +0200)] 
dracut.cmdline.7.asc: fixed rd.luks.allow-discards format

11 years agoinstall/dracut-install.c: support find_binary for <src> <dst>
Harald Hoyer [Wed, 26 Sep 2012 09:34:38 +0000 (11:34 +0200)] 
install/dracut-install.c: support find_binary for <src> <dst>

also factor out find_binary()

11 years agobusybox/module-setup.sh: generate nice relative symlinks with ln_r
Harald Hoyer [Wed, 26 Sep 2012 09:34:00 +0000 (11:34 +0200)] 
busybox/module-setup.sh: generate nice relative symlinks with ln_r

11 years agobusybox: fix installation from /sbin/busybox
Daniel Drake [Tue, 25 Sep 2012 22:42:28 +0000 (18:42 -0400)] 
busybox: fix installation from /sbin/busybox

"inst busybox" no longer seems to work when busybox is at
/sbin/busybox. Reproduced on Fedora 18 (dracut-023-39.git20120910).

Use type -P to find the full path to busybox to solve this problem.

11 years agourl-lib/module-setup.sh: also install libs for https
Harald Hoyer [Wed, 26 Sep 2012 08:52:33 +0000 (10:52 +0200)] 
url-lib/module-setup.sh: also install libs for https

11 years agoi18n/10-console.rules: do the console init only one time
Harald Hoyer [Mon, 24 Sep 2012 13:12:20 +0000 (15:12 +0200)] 
i18n/10-console.rules: do the console init only one time

11 years agoTEST-10-RAID/test.sh: add "rd.auto=1"
Harald Hoyer [Mon, 24 Sep 2012 11:59:03 +0000 (13:59 +0200)] 
TEST-10-RAID/test.sh: add "rd.auto=1"

11 years agoTEST-03-USR-MOUNT/create-root.sh: load btrfs module manually
Harald Hoyer [Mon, 24 Sep 2012 11:56:21 +0000 (13:56 +0200)] 
TEST-03-USR-MOUNT/create-root.sh: load btrfs module manually

11 years agoudev-rules/module-setup.sh: add udev groups
Harald Hoyer [Mon, 24 Sep 2012 11:30:46 +0000 (13:30 +0200)] 
udev-rules/module-setup.sh: add udev groups

11 years agocrypt: install /etc/crypttab only in host-only mode
Harald Hoyer [Mon, 24 Sep 2012 11:15:08 +0000 (13:15 +0200)] 
crypt: install /etc/crypttab only in host-only mode

11 years agosystemd/initrd-switch-root.target: run switch-root.target after cryptsetup
Harald Hoyer [Mon, 24 Sep 2012 11:12:42 +0000 (13:12 +0200)] 
systemd/initrd-switch-root.target: run switch-root.target after cryptsetup

Ensure, that all crypto devices have been queried.

11 years agouse by-uuid firstly in get_persistent_dev
Dave Young [Mon, 24 Sep 2012 02:16:26 +0000 (10:16 +0800)] 
use by-uuid firstly in get_persistent_dev

For devices with filesystem, udev /dev/disk/by-uuid/* links are always
reliable. So improve the get_persistent_dev() by using by-uuid/* firstly,
and fallback to use by-id/*

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agodracut-logger.sh: don't check for *lvl==0 in dlog_init()
Harald Hoyer [Mon, 24 Sep 2012 11:04:32 +0000 (13:04 +0200)] 
dracut-logger.sh: don't check for *lvl==0 in dlog_init()

11 years agofallback to old ismounted, if findmnt is not installed
Harald Hoyer [Thu, 20 Sep 2012 08:36:13 +0000 (10:36 +0200)] 
fallback to old ismounted, if findmnt is not installed

11 years agodash compat: use "2>&1" rather than "&>"
Harald Hoyer [Thu, 20 Sep 2012 08:26:14 +0000 (10:26 +0200)] 
dash compat: use "2>&1" rather than "&>"

11 years agoismounted fix
Dave Young [Mon, 17 Sep 2012 10:01:03 +0000 (18:01 +0800)] 
ismounted fix

ismounted handles both find-by-dev and find-by-mnt, but there's two issues:
1. for find-by-dev, it use readlink to get the canonical dev name, but
   lvm is different with other devices, the canonical name for lvm devices
   are symlinks like /dev/mapper/vg-lv00
2. for nfs mounting, just use [ -b $dev ] is not enough, it need being handled
   seperately.

Per Karel Zak's suggestion, findmnt util is suitable for this purpose, it
handles these cases well, so just use findmnt instead of implement all the
logic by ourselves. Thanks, Karel.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years ago45url-lib/url-lib.sh: give info what URL curl failed to download
Harald Hoyer [Tue, 18 Sep 2012 14:29:42 +0000 (16:29 +0200)] 
45url-lib/url-lib.sh: give info what URL curl failed to download

https://bugzilla.redhat.com/show_bug.cgi?id=857836

Also allow self signed Certs and use "--insecure".

https://bugzilla.redhat.com/show_bug.cgi?id=852229

11 years agobye bye iscsi_wait_scan ... officially gone for kernel 3.6
Harald Hoyer [Tue, 18 Sep 2012 11:39:54 +0000 (13:39 +0200)] 
bye bye iscsi_wait_scan ... officially gone for kernel 3.6

11 years agoresume/resume.sh: prevent "resume: not found"
Harald Hoyer [Tue, 18 Sep 2012 11:37:35 +0000 (13:37 +0200)] 
resume/resume.sh: prevent "resume: not found"

Problem lies in modules.d/95resume:

[ -x $(command -v resume) ] && command resume $a_splash "$resume"

``command -v resume'' prints nothing and ``test -x'' returns 0.

Thanks to Consus!

11 years agomove get_persistent_dev to dracut-functions.sh
Dave Young [Mon, 10 Sep 2012 08:10:46 +0000 (16:10 +0800)] 
move get_persistent_dev to dracut-functions.sh

kdump module also need to convert dev name to udev symlinks.
So better to move function get_persistent_dev() to dracut-functions.sh

Also in this patch improvement and fix the original function:
a) use udevadm info --query=name to get the kernel name.
   This will fix the issue caused by passing symbolic link of a device.
b) fix a bug to compare $_tmp instead of $i with $_dev. Really sorry,
   should have tested more carefully.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agonfs: install all nfs submodules
Harald Hoyer [Mon, 10 Sep 2012 13:49:58 +0000 (15:49 +0200)] 
nfs: install all nfs submodules

11 years agoiscsi/parse-iscsiroot.sh: delay loading of iscsi modules
Harald Hoyer [Mon, 10 Sep 2012 13:49:37 +0000 (15:49 +0200)] 
iscsi/parse-iscsiroot.sh: delay loading of iscsi modules

11 years agoapply-live-updates.sh: handle updates for /run
Will Woods [Wed, 29 Aug 2012 22:58:15 +0000 (18:58 -0400)] 
apply-live-updates.sh: handle updates for /run

/run will get mounted at $NEWROOT/run after switch_root, but it's not
there yet. bind-mount it in place so updates for /run actually land in
/run.

(also: remove a redundant check for existing directories. mkdir -p
doesn't do anything if the directory already exists.)

11 years agomdraid/parse-md.sh: fixed commit cc4037d12012244b51a1efecdeb121184efe6f67
Harald Hoyer [Thu, 6 Sep 2012 14:16:31 +0000 (16:16 +0200)] 
mdraid/parse-md.sh: fixed commit cc4037d12012244b51a1efecdeb121184efe6f67

my fault, sorry.

11 years agohide 'setsid --help' output in emergency_shell()
Will Woods [Tue, 28 Aug 2012 13:43:52 +0000 (09:43 -0400)] 
hide 'setsid --help' output in emergency_shell()

When emergency_shell() happens, it does 'setsid --help' to figure out if
the setsid binary supports the '-c' flag (to set the controlling tty).

This output shows up in the logs (and on-screen if you're using
rd.debug), which keeps confusing people looking for other problems.

Using "case" instead of "strstr" lets us avoid this.

11 years agonetwork: fix ip=ibft regression
Chris Leech [Wed, 5 Sep 2012 23:54:04 +0000 (16:54 -0700)] 
network: fix ip=ibft regression

It looks like ip=ibft has been busted since
  25aa3c5 network: refactor stuff from netroot/parse-ip-opts to net-lib
which moved ibft parsing code out to the ibft_to_cmdline function.

The use of ifname_mac was partially replaced by a local mac, but not
completely, causing ibft_to_cmdline to abort without generating network
configuration options.

Signed-off-by: Chris Leech <cleech@redhat.com>
11 years agokernel-modules/module-setup.sh: add yenta_socket to the initramfs
Harald Hoyer [Thu, 6 Sep 2012 09:51:31 +0000 (11:51 +0200)] 
kernel-modules/module-setup.sh: add yenta_socket to the initramfs

https://bugzilla.redhat.com/show_bug.cgi?id=853787

11 years agoifcfg/write-ifcfg.sh: add "IPV6INIT=yes" for IPv6
Harald Hoyer [Thu, 6 Sep 2012 09:38:48 +0000 (11:38 +0200)] 
ifcfg/write-ifcfg.sh: add "IPV6INIT=yes" for IPv6

https://bugzilla.redhat.com/show_bug.cgi?id=852808

11 years agounquote nbd port
Wim Muskee [Sat, 25 Aug 2012 11:42:12 +0000 (13:42 +0200)] 
unquote nbd port

Name based connects fail because of the quotes around the $nbdport.
For name based connects, the -N option also gets included. For
instance nbd-client 192.168.0.1 '-N ltsp' /dev/nbd0.
I believe the quotes are not necessary for actual port numbers.

11 years agodmsquash-live/dmsquash-live-root.sh: Physically write overlay reset at time of request
Frederick Grose [Thu, 6 Sep 2012 08:48:37 +0000 (10:48 +0200)] 
dmsquash-live/dmsquash-live-root.sh: Physically write overlay reset at time of request

11 years agodracut: Override rd.md settings if rd.md.uuid is provided
Vivek Goyal [Wed, 5 Sep 2012 21:24:34 +0000 (17:24 -0400)] 
dracut: Override rd.md settings if rd.md.uuid is provided

Currently anaconda provides rd.md=0 on kernel's command line as a boot
time optimization if root is not on md device. But this leads to kdump
failure. We copy the command line from first kernel and if dump target
is on md device, it fails as we never try to assemble md devices as
rd.md=0.

We have already set rd.md.uuid though in /etc/cmdlind.d/ dir providing
dracut the info about what md devices to assemble. So this patch overrides
rd.md settings if rd.md.uuid is provided.

This is a stop gap measure to get kdump working on software raid
devices. Harald seems to have bigger cleanup plans for rd.md. Once
that happens, this patch will not be needed and things should
automatically be fixed.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
11 years agouse check_block_and_slaves in for_each_host_dev_and_slaves
Dave Young [Tue, 28 Aug 2012 02:05:49 +0000 (10:05 +0800)] 
use check_block_and_slaves in for_each_host_dev_and_slaves

for_each_host_dev_and_slaves currently is used in some module check()
functions and it's not necessary iterate all slaves. So use
check_block_and_slaves instead of check_block_and_slaves_all is fine.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agoFIPS workaround for fipscheck dir
Milan Broz [Fri, 24 Aug 2012 11:31:57 +0000 (13:31 +0200)] 
FIPS workaround for fipscheck dir

Also patch old install path... (used in Fedora 17)

Signed-off-by: Milan Broz <mbroz@redhat.com>
11 years agocrypt: do not run systemd crypt generator
Harald Hoyer [Tue, 4 Sep 2012 07:49:45 +0000 (09:49 +0200)] 
crypt: do not run systemd crypt generator

"systemctl daemon-reload" does it already for us

11 years agomake splitsep preserve backslashes (RHBZ#851295)
Will Woods [Thu, 23 Aug 2012 20:56:01 +0000 (16:56 -0400)] 
make splitsep preserve backslashes (RHBZ#851295)

splitsep() would drop escapes from its inputs. For example:

  splitsep ':' 'first:middle:\e\s\c\a\p\e\d' a b c

gave a='first', b='middle', c='escaped'. Even worse:

  splitsep ':' '\e\s\c\a\p\e\d:middle:last' a b c

gave a='escaped', b='escaped', c='escaped:middle:last'.

This fixes the quoting so both calls return the values you'd expect
(e.g. 'first', 'middle', '\e\s\c\a\p\e\d').

11 years agoRequire fipscheck and libssl in FIPS module
Milan Broz [Thu, 23 Aug 2012 17:55:27 +0000 (19:55 +0200)] 
Require fipscheck and libssl in FIPS module

To properly perform verification in FIPS mode,
we need to install fipscheck and libssl explicitly.

(cryptsetup seems to be the first user of this verification in ramdisk...)

Signed-off-by: Milan Broz <mbroz@redhat.com>
11 years agodracut-install: FIPS workaround for fipscheck dir
Milan Broz [Thu, 23 Aug 2012 17:55:26 +0000 (19:55 +0200)] 
dracut-install: FIPS workaround for fipscheck dir

In recent Fedora distro are all hmac files located in /lib
(to avoid multiarch conflict).

When installing hmac file, also install files from these locations.

Signed-off-by: Milan Broz <mbroz@redhat.com>
11 years agoinstall/dracut-install.c: correct usage() for hmac
Harald Hoyer [Thu, 23 Aug 2012 13:02:37 +0000 (15:02 +0200)] 
install/dracut-install.c: correct usage() for hmac

11 years agomoved the /etc/host_devs write out to 99base
Harald Hoyer [Thu, 23 Aug 2012 10:13:02 +0000 (12:13 +0200)] 
moved the /etc/host_devs write out to 99base

also removed some left-over debugging code

11 years agoAdd a dracut option --device to bring up a device in initramfs
dyoung@redhat.com [Thu, 23 Aug 2012 03:02:24 +0000 (11:02 +0800)] 
Add a dracut option --device to bring up a device in initramfs

Kdump support dump to raw device which could be on top of complex storage
such as multipath and iscsi which are standalone dracut modules.

Add a --device option to dracut which will add the device to host_devs so
dracut can add the dependent modules automaticlly and enable them in initramfs.

--device will accept device node name as the param.

Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: Chao Wang <chaowang@redhat.com>
11 years agoAdd for_each_host_dev_and_slaves for device only checking
dyoung@redhat.com [Thu, 23 Aug 2012 03:02:23 +0000 (11:02 +0800)] 
Add for_each_host_dev_and_slaves for device only checking

For lvm, multipath, iscsi modules they do not care about the filesystem,
Also there could be devcie in host_devs but it does not get formated.

For these kind of modules, use for_each_host_dev_and_slaves will be better than use
for_each_host_dev_fs, here add a new function to iterate the host_devs and
their slave devices.

In original for_each_host_dev_fs, it will call check_block_and_slaves which
will return once helper function return 0, but this is not enough for kdump
iscsi setup. For kdump iscsi case, it need setup each slave devices so that
the iscsi target can be properly setuped in initramfs.

Thus, this patch also add new functions check_block_and_slaves_all and
for_each_host_dev_and_slaves_all.

Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: WANG Chao <chaowang@redhat.com>
11 years agowait host devs in base module
dyoung@redhat.com [Thu, 23 Aug 2012 03:02:22 +0000 (11:02 +0800)] 
wait host devs in base module

each dev in host_devs[] should be waited in initqueue to make sure they
are oneline before initqueue finish.

Add a new wait_host_devs.sh in base module to make this a generic thing.
Because all the devs in fstab lines are also added to host_devs, so no need
do same wait in fstab-sys module anymore.

[v2->v3]: do not add slave devices to host_devs
          wait for persistent dev name in initramfs

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agonetwork: add ping and ping6
Harald Hoyer [Wed, 22 Aug 2012 15:27:26 +0000 (17:27 +0200)] 
network: add ping and ping6

better for a quick debug

11 years agoznet: add some more kernel drivers
Harald Hoyer [Wed, 22 Aug 2012 11:16:23 +0000 (13:16 +0200)] 
znet: add some more kernel drivers

11 years agomdraid: catch nested md raids
Harald Hoyer [Wed, 22 Aug 2012 11:01:53 +0000 (13:01 +0200)] 
mdraid: catch nested md raids

Thanks to Ian Dall!

11 years agoudev-rules: Pre usrmove systemd installs might not find udevd.
Colin Guthrie [Thu, 16 Aug 2012 13:27:22 +0000 (14:27 +0100)] 
udev-rules: Pre usrmove systemd installs might not find udevd.

If users had switched to systemd-183+ but have not completed
the usrmove, then the variable ${systemdutildir} will likely
refer to /usr/lib/systemd NOT /lib/systemd and thus the
systemd-udevd daemon may not be found.

So let's try a little harder and add another hard coded path
and if we don't find it, then bail out hard.

11 years agoinstall/dracut-install.c: No need to compare the NULL byte each time.
Colin Guthrie [Sat, 18 Aug 2012 10:38:02 +0000 (11:38 +0100)] 
install/dracut-install.c: No need to compare the NULL byte each time.

11 years agoinstall/dracut-install.c: Deal gracefully with paths containing double /'s
Colin Guthrie [Tue, 14 Aug 2012 21:32:00 +0000 (22:32 +0100)] 
install/dracut-install.c: Deal gracefully with paths containing double /'s

While such paths should not be included internally, we cannot
guarantee that external scripts with shebangs will not do this.

Some older versions of plymouth also resulted in double /'s
in some paths, so best deal with this gracefully.

11 years agoinstall/dracut-install.c: Ensure deps are resolved when handling scripts
Colin Guthrie [Tue, 14 Aug 2012 21:09:39 +0000 (22:09 +0100)] 
install/dracut-install.c: Ensure deps are resolved when handling scripts

If we are doing lazy dep solving and happen to process a script with a
shebang on e.g. /bin/bash before we encounter the actual binary itself
we effectively ignore the fact that we've been asked to resolve the deps
and put the item in the 'seen' hashmap. Thus when we later really do try
and resolve deps, we short circuit and don't do anything.

Example test case:

$ cd
$ mkdir -p foo/bin
$ cp /bin/bash foo/bin
$ echo '#!/bin/bash' >foo/bin/script
$ dracut-install -D $HOME/foo -R $HOME/foo/bin/script $HOME/foo/bin/bash

11 years agofips: set /boot as symlink to /sysroot/boot if no boot= parameter
Harald Hoyer [Tue, 21 Aug 2012 13:01:08 +0000 (15:01 +0200)] 
fips: set /boot as symlink to /sysroot/boot if no boot= parameter

otherwise sha512hmac will error out with:

sha512hmac -c /sysroot/boot/.vmlinuz-2.6.32-220.el6.x86_64.hmac
Error opening "/boot/vmlinuz-2.6.32-220.el6.x86_64": No such file or directory.

11 years agonetwork: reintroduce rd.neednet
Harald Hoyer [Tue, 21 Aug 2012 12:47:14 +0000 (14:47 +0200)] 
network: reintroduce rd.neednet

rd.neednet is used by anaconda and the network interfaces cannot
be known in advance.

11 years agoadd back scsi_wait_scan
Harald Hoyer [Fri, 17 Aug 2012 07:22:12 +0000 (09:22 +0200)] 
add back scsi_wait_scan

11 years agomdraid: always create need_shutdown, if we have assembled a raid
Harald Hoyer [Tue, 14 Aug 2012 15:44:46 +0000 (17:44 +0200)] 
mdraid: always create need_shutdown, if we have assembled a raid

11 years agoinclude the omap_hsmmc module on arm
Dennis Gilmore [Thu, 2 Aug 2012 10:12:54 +0000 (05:12 -0500)] 
include the omap_hsmmc module on arm

11 years agodracut.conf.5.asc: s#dracut/conf.d#dracut.conf.d#g
Harald Hoyer [Wed, 1 Aug 2012 14:35:46 +0000 (16:35 +0200)] 
dracut.conf.5.asc: s#dracut/conf.d#dracut.conf.d#g

11 years agodracut.conf.d/gentoo.conf.example: fix header
Amadeusz Żołnowski [Wed, 1 Aug 2012 14:23:24 +0000 (16:23 +0200)] 
dracut.conf.d/gentoo.conf.example: fix header

11 years agoCOPYING: updated to recent version of http://www.gnu.org/licenses/gpl-2.0.txt
Harald Hoyer [Wed, 1 Aug 2012 13:53:25 +0000 (15:53 +0200)] 
COPYING: updated to recent version of http://www.gnu.org/licenses/gpl-2.0.txt

11 years agoversion 023 023
Harald Hoyer [Wed, 1 Aug 2012 13:30:30 +0000 (15:30 +0200)] 
version 023

11 years agoensure af_packet module is loaded (if not built-in)
Frederic Crozat [Tue, 31 Jul 2012 13:15:13 +0000 (15:15 +0200)] 
ensure af_packet module is loaded (if not built-in)

11 years agoadd package name for openSUSE
Frederic Crozat [Tue, 31 Jul 2012 13:15:00 +0000 (15:15 +0200)] 
add package name for openSUSE