]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
11 years agodracut-functions.sh:find_kernel_modules_by_path() fixed updates search
Harald Hoyer [Mon, 17 Feb 2014 12:27:46 +0000 (13:27 +0100)] 
dracut-functions.sh:find_kernel_modules_by_path() fixed updates search

"updates/*" path does not start with "/"

11 years agokernel-modules: add sdhci_acpi to the static list of kernel modules
Harald Hoyer [Wed, 12 Feb 2014 10:22:14 +0000 (11:22 +0100)] 
kernel-modules: add sdhci_acpi to the static list of kernel modules

Thanks Adam Williamson!

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

11 years agodracut.sh: Fix variable name typo.
Colin Guthrie [Wed, 5 Feb 2014 10:06:51 +0000 (10:06 +0000)] 
dracut.sh: Fix variable name typo.

This caused the root_dev variable not to be set which in turn meant that
the root device was not whitelisted in 99base/module-setup.sh when injecting
compile-time devexists hooks in hostonly initrds. This ties the generated
initrd to the root fs device (typically the UUID) rather than relying solely
only the root= kernel command line.

While it is hostonly, not hardcoding e.g. UUIDs is still desirable. Any
swap partition on the host device is still added however.

11 years agonew_dhcp_next_server is really new_next_server
Brian C. Lane [Wed, 5 Feb 2014 20:10:39 +0000 (12:10 -0800)] 
new_dhcp_next_server is really new_next_server

The variable that dhclient sets doesn't have dhcp in the name. This
could cause problems with setups where the server is not the same as the
dhcp server.

11 years agosystemd/dracut-pre-pivot: run for /dev/{nfs,root} and cleanup /dev/nfs
Harald Hoyer [Wed, 5 Feb 2014 12:08:54 +0000 (13:08 +0100)] 
systemd/dracut-pre-pivot: run for /dev/{nfs,root} and cleanup /dev/nfs

dracut-pre-pivot was not cleaning up /dev/nfs and did not run to clean
up /dev/root.

11 years agonfs/nfsroot: symlink /dev/null to /dev/nfs, as a marker for root=/dev/nfs
Harald Hoyer [Wed, 5 Feb 2014 12:06:29 +0000 (13:06 +0100)] 
nfs/nfsroot: symlink /dev/null to /dev/nfs, as a marker for root=/dev/nfs

11 years agonetwork/ifup: do not run dhclient twice on the same interface
Harald Hoyer [Tue, 4 Feb 2014 11:02:34 +0000 (12:02 +0100)] 
network/ifup: do not run dhclient twice on the same interface

11 years agonetwork/ifup: do not ifup an already setup network interface
Harald Hoyer [Tue, 4 Feb 2014 11:02:05 +0000 (12:02 +0100)] 
network/ifup: do not ifup an already setup network interface

11 years agoskipcpio: fixed signatured check
Harald Hoyer [Wed, 29 Jan 2014 07:35:47 +0000 (08:35 +0100)] 
skipcpio: fixed signatured check

11 years agoskipcpio: return something at end of program
Cristian Rodríguez [Tue, 28 Jan 2014 19:41:08 +0000 (16:41 -0300)] 
skipcpio: return something at end of program

Otherwise the compiler emits a warning and the return vale is
in theory undefined.

11 years agonetwork:fix dns parsing in ip= parameter
Harald Hoyer [Fri, 7 Feb 2014 14:41:50 +0000 (15:41 +0100)] 
network:fix dns parsing in ip= parameter

11 years agofcoe-uefi: do not include, if fcoe utils not installed
Harald Hoyer [Tue, 7 Jan 2014 13:34:55 +0000 (14:34 +0100)] 
fcoe-uefi: do not include, if fcoe utils not installed

11 years agodracut.spec: add 95fcoe-uefi and 99uefi-lib
Harald Hoyer [Mon, 16 Dec 2013 11:30:26 +0000 (12:30 +0100)] 
dracut.spec: add 95fcoe-uefi and 99uefi-lib

11 years agomove uefi-lib to a seperate module
Harald Hoyer [Thu, 12 Dec 2013 08:49:06 +0000 (09:49 +0100)] 
move uefi-lib to a seperate module

11 years agofcoe: move uefi parsing to fcoe-uefi module
Harald Hoyer [Thu, 12 Dec 2013 08:20:53 +0000 (09:20 +0100)] 
fcoe: move uefi parsing to fcoe-uefi module

11 years agobase/rdsosreport.sh: add dracut version to rdsosreport
Harald Hoyer [Fri, 31 Jan 2014 14:33:05 +0000 (15:33 +0100)] 
base/rdsosreport.sh: add dracut version to rdsosreport

11 years agodmsquash-live/dmsquash-liveiso-genrules.sh: s/loop0/loop-control/
Harald Hoyer [Tue, 28 Jan 2014 17:33:36 +0000 (18:33 +0100)] 
dmsquash-live/dmsquash-liveiso-genrules.sh: s/loop0/loop-control/

If loop is a kernel module, /dev/loop0 will never show up as a udev
event, if the loop module is not manually loaded somewhere.

11 years agonetwork/net-lib.sh: parse ibft nameserver settings
Harald Hoyer [Thu, 30 Jan 2014 16:11:43 +0000 (17:11 +0100)] 
network/net-lib.sh: parse ibft nameserver settings

11 years agonetwork/ifup.sh: handle $dns1 and $dns2 from "ip=" settings
Harald Hoyer [Thu, 30 Jan 2014 16:12:24 +0000 (17:12 +0100)] 
network/ifup.sh: handle $dns1 and $dns2 from "ip=" settings

11 years agonetwork: understand ip=.....:<dns1>:<dns2>
Harald Hoyer [Thu, 30 Jan 2014 12:50:02 +0000 (13:50 +0100)] 
network: understand ip=.....:<dns1>:<dns2>

11 years agodracut.conf.d/fedora.conf.example: turn on early_microcode by default
Harald Hoyer [Thu, 30 Jan 2014 15:51:13 +0000 (16:51 +0100)] 
dracut.conf.d/fedora.conf.example: turn on early_microcode by default

11 years agodracut.sh: only set the owner of files to 0:0, if generated as non-root
Harald Hoyer [Thu, 30 Jan 2014 15:11:40 +0000 (16:11 +0100)] 
dracut.sh: only set the owner of files to 0:0, if generated as non-root

If the root user generates the initramfs image, preserve the ownership
of the files. This of course cannot be done for non-root users
generating an initramfs image.

11 years agodracut-functions.sh: also search in the updates directory
Harald Hoyer [Thu, 30 Jan 2014 13:27:18 +0000 (14:27 +0100)] 
dracut-functions.sh: also search in the updates directory

11 years agosystemd: ensure autofs4 and ipv6 are included
Cristian Rodríguez [Mon, 16 Dec 2013 03:40:58 +0000 (03:40 +0000)] 
systemd: ensure autofs4 and ipv6 are included

Systemd tries to load this modules very early.
Even though they are not strictly required it it is a good
thing to have them around.

[Edited-by: Harald Hoyer: moved to installkernel() ]

11 years agodracut.spec: add skipcpio
Harald Hoyer [Tue, 28 Jan 2014 11:21:33 +0000 (12:21 +0100)] 
dracut.spec: add skipcpio

11 years agoiscsi/iscsiroot.sh: beautify warning
Harald Hoyer [Tue, 28 Jan 2014 11:14:07 +0000 (12:14 +0100)] 
iscsi/iscsiroot.sh: beautify warning

11 years agodracut-lib.sh: bugfix for pidof function
Stig Telfer [Fri, 24 Jan 2014 15:48:32 +0000 (15:48 +0000)] 
dracut-lib.sh: bugfix for pidof function

In follow-up, the patch requires a second mod: kernel tasks have a /proc/.../exe that links to nothing and derails the for loop:

11 years agodracut-lib.sh: bugfix for pidof function
Stig Telfer [Fri, 24 Jan 2014 15:19:11 +0000 (15:19 +0000)] 
dracut-lib.sh: bugfix for pidof function

It appears there is a simple substitution error in the pidof shell function which causes it to fail to find processes.  In my case, processes started by 95nfs are not terminated in the cleanup hook.  This causes knock-on effects disturbing the root filesystem service dependencies.

Enjoy,
Stig Telfer

11 years agonetwork/dhclient-script.sh: set lease time
Harald Hoyer [Tue, 28 Jan 2014 11:12:43 +0000 (12:12 +0100)] 
network/dhclient-script.sh: set lease time

The dracut dhclient-script.sh should set address lifetimes to the DHCP
lease time, so that other stuff (like NetworkManager!) knows that the
address is temporary and was created by DHCP.

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

11 years agolsinitrd.sh: make use of the skipcpio utility
Harald Hoyer [Fri, 24 Jan 2014 14:30:22 +0000 (15:30 +0100)] 
lsinitrd.sh: make use of the skipcpio utility

With the skipcpio utility, the whole contents of an initramfs with an
early cpio image can be displayed.

11 years agodracut.sh: add early_cpio marker file to the early cpio
Harald Hoyer [Fri, 24 Jan 2014 14:29:24 +0000 (15:29 +0100)] 
dracut.sh: add early_cpio marker file to the early cpio

11 years agoadd skipcpio utility
Harald Hoyer [Fri, 24 Jan 2014 14:27:51 +0000 (15:27 +0100)] 
add skipcpio utility

skipcpio skips a cpio archive at the beginning of a file.

It is used for skipping an early cpio archive for lsinitrd.

11 years agodracut.sh: set file owners of early cpio files to 0:0
Harald Hoyer [Fri, 24 Jan 2014 14:27:15 +0000 (15:27 +0100)] 
dracut.sh: set file owners of early cpio files to 0:0

11 years agodracut.sh: create early cpio dir for acpi tables
Harald Hoyer [Fri, 24 Jan 2014 14:26:43 +0000 (15:26 +0100)] 
dracut.sh: create early cpio dir for acpi tables

11 years agoRevert "dmraid: let dmraid setup the partitions"
Harald Hoyer [Fri, 24 Jan 2014 10:55:27 +0000 (11:55 +0100)] 
Revert "dmraid: let dmraid setup the partitions"

This reverts commit fbf717086e8b02947a27f55d1759cccd1cb89e99.

dmraid seems to use "p" as a seperator by default.

Reverting to kpartx, until this is fixed.

11 years agodracut-initramfs-restore,lsinitrd: add LZ4 support
Koen Kooi [Thu, 16 Jan 2014 10:00:54 +0000 (11:00 +0100)] 
dracut-initramfs-restore,lsinitrd: add LZ4 support

Dracut claims to have LZ4 support, but trying to use it will result in an xzcat failure at the end due to missing CAT support.

The lz4 command chokes on '--', so abstract that out into the CAT select.

Something similar will need to be done for LZO.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
11 years agoUse builtin xz/lzma option to use all cores for multihreaded compression
Koen Kooi [Fri, 10 Jan 2014 20:41:43 +0000 (21:41 +0100)] 
Use builtin xz/lzma option to use all cores for multihreaded compression

This removes the dependency on 'getconf' as well, which is not installed by default on my embedded systems.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
11 years agodracut-logger.sh: systemd-cat only understands prio 0-7
Harald Hoyer [Wed, 22 Jan 2014 10:48:45 +0000 (11:48 +0100)] 
dracut-logger.sh: systemd-cat only understands prio 0-7

11 years agolvm:lvm_scan.sh handle one LV at a time with lvchange
Harald Hoyer [Fri, 24 Jan 2014 15:37:13 +0000 (16:37 +0100)] 
lvm:lvm_scan.sh handle one LV at a time with lvchange

11 years agoiscsiroot: touch the right marker file
Harald Hoyer [Fri, 24 Jan 2014 15:35:08 +0000 (16:35 +0100)] 
iscsiroot: touch the right marker file

11 years agoiscsi: more iscsiroot fixes
Harald Hoyer [Wed, 22 Jan 2014 16:05:22 +0000 (17:05 +0100)] 
iscsi: more iscsiroot fixes

handle iscsiroot with firmware more gracefully

11 years agodracut-lib.sh: fixed shebang
Harald Hoyer [Mon, 20 Jan 2014 13:59:46 +0000 (14:59 +0100)] 
dracut-lib.sh: fixed shebang

11 years agosystemd/rootfs-generator.sh: ignore legacy root=/dev/nfs
Harald Hoyer [Fri, 17 Jan 2014 12:40:05 +0000 (13:40 +0100)] 
systemd/rootfs-generator.sh: ignore legacy root=/dev/nfs

11 years agosystemd/rootfs-generator.sh: exit 0
Harald Hoyer [Fri, 17 Jan 2014 11:16:41 +0000 (12:16 +0100)] 
systemd/rootfs-generator.sh: exit 0

11 years agobase/dracut-lib.sh: "halt" the machine in systemd mode for die()
Harald Hoyer [Fri, 17 Jan 2014 14:27:47 +0000 (15:27 +0100)] 
base/dracut-lib.sh: "halt" the machine in systemd mode for die()

and only go in emergency shell if "rd.debug" is specified

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

11 years agoiscsi: call "iscsistart -b" until it succeeds
Harald Hoyer [Fri, 17 Jan 2014 13:45:15 +0000 (14:45 +0100)] 
iscsi: call "iscsistart -b" until it succeeds

11 years agonetwork: add rd.bootif=0 to ignore BOOTIF
Harald Hoyer [Fri, 17 Jan 2014 13:37:55 +0000 (14:37 +0100)] 
network: add rd.bootif=0 to ignore BOOTIF

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

11 years agosystemd/module-setup.sh: make use of "ln_r"
Harald Hoyer [Fri, 17 Jan 2014 13:01:57 +0000 (14:01 +0100)] 
systemd/module-setup.sh: make use of "ln_r"

11 years agosystemd: add seat udev rules and mask loginctl
Harald Hoyer [Fri, 17 Jan 2014 13:01:33 +0000 (14:01 +0100)] 
systemd: add seat udev rules and mask loginctl

11 years agosystemd: add 71-seat.rules 73-seat-late.rules
Harald Hoyer [Fri, 17 Jan 2014 12:40:42 +0000 (13:40 +0100)] 
systemd: add 71-seat.rules 73-seat-late.rules

otherwise plymouth does not work

11 years agodracut-install,dracut: fix ldd output parsing
Harald Hoyer [Fri, 17 Jan 2014 10:52:43 +0000 (11:52 +0100)] 
dracut-install,dracut: fix ldd output parsing

dracut-install could not handle output like:
/lib/$LIB/liblsp.so => /lib/lib64/liblsp.so (0x00007faf00727000)

also unset LD_PRELOAD, so we get a clean environment

11 years agonetwork: include all ethernet drivers
Harald Hoyer [Wed, 15 Jan 2014 13:35:53 +0000 (14:35 +0100)] 
network: include all ethernet drivers

11 years agodocumentation: line wrap
Harald Hoyer [Thu, 9 Jan 2014 11:17:01 +0000 (12:17 +0100)] 
documentation: line wrap

11 years agodracut.sh: add /boot/efi to device paths
Harald Hoyer [Wed, 8 Jan 2014 14:38:44 +0000 (15:38 +0100)] 
dracut.sh: add /boot/efi to device paths

Add /boot/efi to device paths, so the filesystem driver is included
and it can be repaired in the initramfs.

11 years agodracut.sh: add missing piece for option --add-device
Harald Hoyer [Wed, 8 Jan 2014 14:37:18 +0000 (15:37 +0100)] 
dracut.sh: add missing piece for option --add-device

11 years agoiscsi/iscsiroot.sh: do not trust iscsistart return value
Harald Hoyer [Tue, 7 Jan 2014 15:40:50 +0000 (16:40 +0100)] 
iscsi/iscsiroot.sh: do not trust iscsistart return value

11 years agosystemd/dracut-initqueue.sh: fstab is not a directory
Harald Hoyer [Tue, 7 Jan 2014 15:39:48 +0000 (16:39 +0100)] 
systemd/dracut-initqueue.sh: fstab is not a directory

11 years agonetwork: include usbnet drivers
Harald Hoyer [Thu, 19 Dec 2013 16:06:48 +0000 (17:06 +0100)] 
network: include usbnet drivers

11 years agokernel-modules: add more block driver
Harald Hoyer [Thu, 19 Dec 2013 11:37:47 +0000 (12:37 +0100)] 
kernel-modules: add more block driver

e.g. nvme

11 years agodracut-lib/wait_for_dev(): prevent systemd daemon-reload
Harald Hoyer [Wed, 18 Dec 2013 11:28:51 +0000 (12:28 +0100)] 
dracut-lib/wait_for_dev(): prevent systemd daemon-reload

prevent a systemd daemon-reload, if it is not necessary to do.

11 years agoiscsi: do iscsi_firmware regardless of network
Harald Hoyer [Wed, 18 Dec 2013 11:26:05 +0000 (12:26 +0100)] 
iscsi: do iscsi_firmware regardless of network

Do the iscsi_firmware iscsistart at least once, even if the network is
not up, to activate offload HBA iSCSI.

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

11 years agotest/TEST-17-LVM-THIN: remove .testdir
Harald Hoyer [Tue, 17 Dec 2013 12:36:55 +0000 (13:36 +0100)] 
test/TEST-17-LVM-THIN: remove .testdir

11 years agotest/TEST-17-LVM-THIN: add test case for lvm thin pools
Harald Hoyer [Mon, 16 Dec 2013 12:15:48 +0000 (13:15 +0100)] 
test/TEST-17-LVM-THIN: add test case for lvm thin pools

11 years agolvm: fixed lvm thin check
Harald Hoyer [Fri, 13 Dec 2013 10:05:39 +0000 (11:05 +0100)] 
lvm: fixed lvm thin check

11 years agobase/rdsosreport.sh: add "ip a" output
Harald Hoyer [Tue, 10 Dec 2013 11:58:37 +0000 (12:58 +0100)] 
base/rdsosreport.sh: add "ip a" output

11 years agosystemd/dracut-initqueue.sh: fixed waiting in the loop if PW asked
Harald Hoyer [Thu, 5 Dec 2013 17:38:35 +0000 (18:38 +0100)] 
systemd/dracut-initqueue.sh: fixed waiting in the loop if PW asked

continue the main loop instead of the for loop, if a password is
currently asked

11 years agolvm: install thin tools, only when needed in hostonly
Harald Hoyer [Thu, 5 Dec 2013 14:57:42 +0000 (15:57 +0100)] 
lvm: install thin tools, only when needed in hostonly

11 years agodracut.modules.7.asc: removed empty section
Harald Hoyer [Sat, 2 Nov 2013 12:20:32 +0000 (13:20 +0100)] 
dracut.modules.7.asc: removed empty section

11 years agodracut.sh: fixed PATH shortener
Harald Hoyer [Sat, 2 Nov 2013 12:14:40 +0000 (13:14 +0100)] 
dracut.sh: fixed PATH shortener

11 years agoiscsi,nbd: do not fail in hostonly mode
Harald Hoyer [Mon, 11 Nov 2013 15:57:09 +0000 (16:57 +0100)] 
iscsi,nbd: do not fail in hostonly mode

11 years agoRun 'xz' and 'lzma' with multiple threads
Vratislav Podzimek [Wed, 13 Nov 2013 12:20:39 +0000 (13:20 +0100)] 
Run 'xz' and 'lzma' with multiple threads

This speeds up compression a lot on multicore systems.

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

[Edited-by: Harald Hoyer: use getconf for cpu_count]

11 years agoi18n: introduce i18n_install_all, to install everything
Harald Hoyer [Thu, 5 Dec 2013 15:42:05 +0000 (16:42 +0100)] 
i18n: introduce i18n_install_all, to install everything

if i18n_install_all is set to "yes", then install all keyboard layouts
and fonts regardless of the hostonly setting.

This way, people can switch keyboard layouts, without having to recreate
the initramfs.

11 years agoRemove shebang from shell-completion files
Hannes Reinecke [Fri, 29 Nov 2013 12:13:54 +0000 (13:13 +0100)] 
Remove shebang from shell-completion files

Shell-completion files are meant to be sourced, not executed.
So they shouldn't have a shebang at the start.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agoFixup script permissions
Hannes Reinecke [Fri, 29 Nov 2013 12:13:53 +0000 (13:13 +0100)] 
Fixup script permissions

Scripts with a shebang should be marked as executable.

Signed-off-by: Hannes Reinecke <hare@suse.de>
11 years agodracut.sh: skip crypt swaps with password files
Harald Hoyer [Mon, 2 Dec 2013 10:05:21 +0000 (11:05 +0100)] 
dracut.sh: skip crypt swaps with password files

11 years agobase/dracut-lib.sh:wait_for_dev() relax requirement
Harald Hoyer [Mon, 2 Dec 2013 09:39:36 +0000 (10:39 +0100)] 
base/dracut-lib.sh:wait_for_dev() relax requirement

Do not "require" the devices, but "want" them. This might boot more
systems, where:
- the UUID changed
- swap devices do not show up

11 years agonetwork/ifup.sh: before doing dhcp, check, if the link has a carrier
Harald Hoyer [Mon, 2 Dec 2013 09:38:21 +0000 (10:38 +0100)] 
network/ifup.sh: before doing dhcp, check, if the link has a carrier

11 years agonetwork/net-lib.sh:iface_has_link() fixup
Harald Hoyer [Mon, 2 Dec 2013 09:36:42 +0000 (10:36 +0100)] 
network/net-lib.sh:iface_has_link() fixup

Just echo'ing the flags IFF_UP|IFF_RUNNING does _not_ reflect the
carrier state immediately. So wait for it to really show up.

11 years agonetwork/net-lib.sh:wait_for_if_up() wait for "state UP"
Harald Hoyer [Mon, 2 Dec 2013 09:34:18 +0000 (10:34 +0100)] 
network/net-lib.sh:wait_for_if_up() wait for "state UP"

really wait for "state UP", otherwise it returns earlier than we want

11 years agodracut.sh:_get_fs_type() if block device exists return early
Harald Hoyer [Mon, 2 Dec 2013 09:32:00 +0000 (10:32 +0100)] 
dracut.sh:_get_fs_type() if block device exists return early

even, if no ID_FS_TYPE was found, return if the block device exists

11 years agodracut.cmdline.7.asc: document "server-ip" of "ip=" parameter
Harald Hoyer [Mon, 2 Dec 2013 09:30:52 +0000 (10:30 +0100)] 
dracut.cmdline.7.asc: document "server-ip" of "ip=" parameter

11 years agofips: fix RHEV vmlinuz check
Harald Hoyer [Fri, 8 Nov 2013 14:06:18 +0000 (15:06 +0100)] 
fips: fix RHEV vmlinuz check

11 years agolvm: do not run pvscan for lvmetad update
Peter Rajnoha [Mon, 25 Nov 2013 13:38:00 +0000 (14:38 +0100)] 
lvm: do not run pvscan for lvmetad update

The lvmetad daemon is not yet running in initramfs so there's no
need to run pvscan (or instantiate any lvm2-pvscan systemd service).
If pvscan was called in this case (either directly or via systemd
instantiated service), it would fail because there's no lvmetad
daemon to update. This could cause confusion, especially in systemd
instantiated service which is run only once!

11 years agokernel-modules: add ohci-pci to the list of forced module installs
Harald Hoyer [Thu, 14 Nov 2013 09:07:04 +0000 (10:07 +0100)] 
kernel-modules: add ohci-pci to the list of forced module installs

11 years agosystemd: do not exit the initqueue, if systemd asks a password
Harald Hoyer [Mon, 11 Nov 2013 15:57:32 +0000 (16:57 +0100)] 
systemd: do not exit the initqueue, if systemd asks a password

this prevents bailing out the initqueue, while passwords are still to be
asked

11 years agodracut-functions.sh: Avoid loading unnecessary 32-bit libraries for 64-bit initrds
Colin Guthrie [Sat, 2 Nov 2013 11:26:30 +0000 (11:26 +0000)] 
dracut-functions.sh: Avoid loading unnecessary 32-bit libraries for 64-bit initrds

Due to the 'inst_libdir_file "libnss_files*"' in the udev-rules module
this caues the /usr/lib/libnss_files-2.18.so* to be included. This is a
32-bit library and pulls in a 32-bit version of glibc also even on a
64-bit system.

This is due to the fact that ldconfig -pN will print [/usr]/lib paths
from the cache as well as [/usr]/lib64. As we handle these paths
specifically we should ignore these results from the cache.

Also there was a missing space when appending the ldconfig paths
onto our list meaning the last builtin and first ldconfig path
were unusable.

11 years agofips: also install /etc/system-fips in the initramfs
Harald Hoyer [Mon, 4 Nov 2013 16:29:15 +0000 (17:29 +0100)] 
fips: also install /etc/system-fips in the initramfs

11 years agoiscsi/nbd: do not try to mount the whole disk, if root= is missing
Harald Hoyer [Wed, 30 Oct 2013 16:36:54 +0000 (17:36 +0100)] 
iscsi/nbd: do not try to mount the whole disk, if root= is missing

only mount the whole disk for root=dhcp

11 years agoresume: remove resume-genrules.sh
Alexander Tsoy [Wed, 9 Oct 2013 03:02:56 +0000 (07:02 +0400)] 
resume: remove resume-genrules.sh

parse-resume.sh already contains all the code from resume-genrules.sh.
Also parse-resume.sh is executed before resume-genrules.sh, so there is
no point to keep the latter.

This fixes the following error messages:
dracut-initqueue: ln: failed to create symbolic link '/dev/resume': File exists
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/settled/resume.sh': No such file or directory
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/timeout/resume.sh': No such file or directory

11 years agoresume: fix swap detection in hostonly
Alexander Tsoy [Wed, 9 Oct 2013 02:39:46 +0000 (06:39 +0400)] 
resume: fix swap detection in hostonly

Check for other possible fs types. This fixes swap detection when using
TuxOnIce kernel.

Note that parse-resume.sh generate udev rules with support for
ID_FS_TYPE=suspend, but we do not include it here, because it is
libvolume_id thing and host_fs_types is populated using blkid.

11 years agofips: include crct10dif_generic
Kyle McMartin [Wed, 30 Oct 2013 11:35:27 +0000 (12:35 +0100)] 
fips: include crct10dif_generic

Resolves: rhbz#1024455

11 years agoHandle crypto modules with and without modaliases
Harald Hoyer [Wed, 30 Oct 2013 11:22:52 +0000 (12:22 +0100)] 
Handle crypto modules with and without modaliases

If new kernels have modules split out, handle the case, where modules
have to modalias and just install them.

Also add the crypto drivers and names to host_modalias.

11 years agousrmount/module-setup.sh: fixed typo
Alexander Tsoy [Fri, 25 Oct 2013 15:06:44 +0000 (17:06 +0200)] 
usrmount/module-setup.sh: fixed typo

11 years agodracut.spec: move /sbin/dracut to /usr/sbin/dracut
Harald Hoyer [Mon, 21 Oct 2013 07:43:04 +0000 (09:43 +0200)] 
dracut.spec: move /sbin/dracut to /usr/sbin/dracut

11 years agolvm: always install thin utils for lvm
Harald Hoyer [Mon, 21 Oct 2013 07:09:26 +0000 (09:09 +0200)] 
lvm: always install thin utils for lvm

11 years agokernel-modules(ARM): add mmc_block usb_storage to statis list of kernel mods
Harald Hoyer [Fri, 18 Oct 2013 12:56:51 +0000 (14:56 +0200)] 
kernel-modules(ARM): add mmc_block usb_storage to statis list of kernel mods

11 years agogit2spec.pl: remove ".git$(date)" from release string
Harald Hoyer [Fri, 18 Oct 2013 13:34:44 +0000 (15:34 +0200)] 
git2spec.pl: remove ".git$(date)" from release string

11 years agoAdd lzo, lz4 compression and read INITRD_COMPRESS
P J P [Fri, 11 Oct 2013 13:56:51 +0000 (19:26 +0530)] 
Add lzo, lz4 compression and read INITRD_COMPRESS

This patch adds support for lzop(1) & lz4(1) compression
algorithms to compress iniramfs image file. Both are supported
by the Linux kernel.

Linux kernel exports user's choice of initramfs compression
algorithm as a shell environment variable: INITRD_COMPRESS.
This patch adds support to read this variable and duly compress
the initramfs image file.

Environment variable INITRD_COMPRESS has less precedence than the
command line options --gzip, etc. Ie. command line options could
override the compression algorithm defined by $INITRD_COMPRESS.

Signed-off-by: P J P <ppandit@redhat.com>
[Edited-by: Harald Hoyer: add documentation about lzo and lz4]

11 years agodracut-functions.sh:check_block_and_slaves*() skip LVM internal devs
Marian Csontos [Fri, 18 Oct 2013 12:40:40 +0000 (14:40 +0200)] 
dracut-functions.sh:check_block_and_slaves*() skip LVM internal devs

Not every device in /dev/mapper should be examined.
If it is an LVM device, touch only devices which have /dev/VG/LV symlink.

11 years agolvm: fix thin recognition
Harald Hoyer [Wed, 16 Oct 2013 09:30:08 +0000 (11:30 +0200)] 
lvm: fix thin recognition

The global var setting was happening in a pipe and did not have an
effect.

Use <<<$() instead.

< <() cannot be used, because dracut is called in chroot's environments,
where /dev/fd does not point to /proc/self/fd, but bash wants
/dev/fd/<num> for this construct.