]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
10 years agoNEWS: dracut-035 035
Harald Hoyer [Tue, 28 Jan 2014 14:33:29 +0000 (15:33 +0100)] 
NEWS: dracut-035

10 years agoMakefile: make dracut.html.sign depend on dracut.html
Harald Hoyer [Tue, 28 Jan 2014 14:07:21 +0000 (15:07 +0100)] 
Makefile: make dracut.html.sign depend on dracut.html

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

10 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:

10 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

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

10 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

10 years agodracut-install.c: "make indent"
Harald Hoyer [Fri, 24 Jan 2014 14:31:26 +0000 (15:31 +0100)] 
dracut-install.c: "make indent"

10 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.

10 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

10 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.

10 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

10 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

10 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.

10 years agodracut.sh: s#\"#'# for error messages
Harald Hoyer [Fri, 24 Jan 2014 11:36:14 +0000 (12:36 +0100)] 
dracut.sh: s#\"#'# for error messages

10 years agolsinitrd.sh: also print out the arguments used to create the initramfs
Harald Hoyer [Fri, 24 Jan 2014 10:56:09 +0000 (11:56 +0100)] 
lsinitrd.sh: also print out the arguments used to create the initramfs

10 years agoDracut: Add a new argument "--rebuild"
Hari Bathini [Thu, 16 Jan 2014 06:41:27 +0000 (12:11 +0530)] 
Dracut: Add a new argument "--rebuild"

Add "rebuild" option to dracut to  append the current  arguments
to those with  which the input initramfs image was  built.  This
option helps in incrementally building initramfs for testing.

    Usage: dracut [output_file] --rebuild input_file

If optional output file  is not provided, input file provided to
rebuild will be used as output file.

This patch alters  the creation of the initramfs image by adding
the file "/tmp/params.txt" to the image. Command line parameters
excluding "--rebuild",  input  &  output image names and "kernel
version" are stored in this file.  In case "--rebuild" parameter
is specified, "/tmp/params.txt" file, if present in input image,
is read and its contents "prepend"ed to the current command line
parameters, that is if such a file is already present. Also,  it
stores the  cumulative parameters to the file "/tmp/params.txt",
in the  new image. This patch  has been tested successfully on a
PowerBox with f19. It does not alter the behaviour of any of the
existing  options.

Signed-off-by: Manik Bajpai <manibajp@linux.vnet.ibm.com>
Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
[Edited-by: Harald Hoyer]
Simplified the cpio extraction process by using 'lsinitrd'.

10 years agocrypt: Prevent asking for password multiple times if non-default crypt name is used.
Colin Guthrie [Fri, 27 Dec 2013 13:00:48 +0000 (13:00 +0000)] 
crypt: Prevent asking for password multiple times if non-default crypt name is used.

If a non-default device mapper name is used for an encrypted partion is
used, (i.e. not luks-$UUID) due to parsing of /etc/crypttab, then the
short-circuits put in place to prevent asking the password twice do not
work.

This would not normally be an issue as the settled job itself should be
removed after it has run and thus cannot be run again. Sadly, due to
the corresponding udev rule using ACTION="add|changed", and the fact
that trying to unlock the device (whether successful or not) seems to
trigger a changed event, it means the settled job is recreated with
each itteration thus causing the whole loop to run again.

It is this situation that the short-circuit exits would normally come
into play but sadly do not work when non-standard names are used.

By the time the /tmp/cryptroot-asked-$2 file is written near the end of
the script, the value of $2 has already been lost due to the argument
parsing code's use of 'shift'. So while on systems where the default
name is used are protected by checking /dev/mapper/xxxx, the
/tmp/cryptroot-asked-$2 file didn't help on systems where this was not
used due to this bug.

So this commit shuffles things around somewhat such that:

 1. The /dev/mapper/xxxx device is checked *after* resolving $2 (which
    contains the default name) to whatever /etc/crypttab specifies.
 2. The cryptroot-asked-xxxx file also uses the translated name both
    for the initial check and to flag when it's written.

As a separate fix, it might make sense to change the udev rule to only
act on add events rather than add|change events, but I'm not sure of the
ramifications of such a change and there may be cases where the add
event is missed and thus the change event needs to be included.

10 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>
10 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>
10 years agoudev-rules: add eudev rules
Alexander Tsoy [Wed, 25 Dec 2013 10:00:26 +0000 (14:00 +0400)] 
udev-rules: add eudev rules

eudev configured with "--enable-modules --disable-libkmod" installs
80-drivers-modprobe.rules instead of 80-drivers.rules

https://bugs.gentoo.org/show_bug.cgi?id=494188

10 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() ]

10 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

10 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

10 years agoTODO: update
Harald Hoyer [Wed, 22 Jan 2014 10:27:09 +0000 (11:27 +0100)] 
TODO: update

10 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

10 years agodracut.spec: add --without doc feature
Harald Hoyer [Wed, 15 Jan 2014 13:50:45 +0000 (14:50 +0100)] 
dracut.spec: add --without doc feature

10 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

10 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

10 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"

10 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

10 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

10 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

10 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

10 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

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

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

10 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.

10 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

10 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

10 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

10 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

10 years agoTODO: update
Harald Hoyer [Tue, 7 Jan 2014 13:34:43 +0000 (14:34 +0100)] 
TODO: update

10 years agoresume/parse-resume.sh: fixed printf formatting
Harald Hoyer [Tue, 7 Jan 2014 13:07:14 +0000 (14:07 +0100)] 
resume/parse-resume.sh: fixed printf formatting

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

10 years agochange dracut tarball compression to xz
Harald Hoyer [Tue, 7 Jan 2014 11:21:39 +0000 (12:21 +0100)] 
change dracut tarball compression to xz

10 years agoresume: fixed udev rule for /dev/resume instead of /dev/dev/resume
Harald Hoyer [Thu, 19 Dec 2013 16:09:55 +0000 (17:09 +0100)] 
resume: fixed udev rule for /dev/resume instead of /dev/dev/resume

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

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

10 years agoinstall: install all PATH binaries found
Harald Hoyer [Thu, 19 Dec 2013 15:59:46 +0000 (16:59 +0100)] 
install: install all PATH binaries found

This should fix the issues with symlinks in /bin pointing to /usr/bin on
some distributions.

10 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

10 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.

10 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

10 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

10 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

10 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

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

10 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

10 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

10 years agousrmount: always install
Alexander Tsoy [Thu, 21 Nov 2013 16:33:38 +0000 (20:33 +0400)] 
usrmount: always install

/usr should be mounted by initramfs even if /sbin/init lives in /

10 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

10 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

10 years agoTODO: update
Harald Hoyer [Thu, 5 Dec 2013 17:38:23 +0000 (18:38 +0100)] 
TODO: update

10 years agodracut.spec: remove suse man pages
Harald Hoyer [Thu, 5 Dec 2013 16:31:09 +0000 (17:31 +0100)] 
dracut.spec: remove suse man pages

10 years agodracut.spec: add new modules
Harald Hoyer [Thu, 5 Dec 2013 16:27:57 +0000 (17:27 +0100)] 
dracut.spec: add new modules

10 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.

10 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

10 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>
10 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>
10 years agoFixup keymap setting for openSUSE
Hannes Reinecke [Fri, 29 Nov 2013 12:13:52 +0000 (13:13 +0100)] 
Fixup keymap setting for openSUSE

openSUSE is using compressed keymaps.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years agomkinitrd-suse.8.asc: Add manpage for SUSE compat mkinitrd
Hannes Reinecke [Fri, 29 Nov 2013 12:13:51 +0000 (13:13 +0100)] 
mkinitrd-suse.8.asc: Add manpage for SUSE compat mkinitrd

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years agomkinitrd-suse: Add SUSE compability wrapper for dracut
Hannes Reinecke [Fri, 29 Nov 2013 12:13:50 +0000 (13:13 +0100)] 
mkinitrd-suse: Add SUSE compability wrapper for dracut

SUSE has its own mkinitrd system. As the arguments clash
with the dracut-provided mkinitrd script I've added a new
mkinitrd-suse.sh wrapper.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years agoMake logfile configurable
Hannes Reinecke [Fri, 29 Nov 2013 12:13:49 +0000 (13:13 +0100)] 
Make logfile configurable

Add '--logfile' option to make the log file configurable during
runtime.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years agoAdd zfcp scripts for SUSE
Hannes Reinecke [Fri, 29 Nov 2013 12:13:48 +0000 (13:13 +0100)] 
Add zfcp scripts for SUSE

SuSE is storing the zfcp configuration in udev files, so we should
be including these.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years agoAdd DASD configuration for SuSE
Hannes Reinecke [Fri, 29 Nov 2013 12:13:47 +0000 (13:13 +0100)] 
Add DASD configuration for SuSE

On SuSE the DASD configuration is kept in udev rules, one rule
file per device. So add a new module for copying and creating
these rules during boot.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years ago95znet: Make installation optional
Hannes Reinecke [Fri, 29 Nov 2013 12:13:46 +0000 (13:13 +0100)] 
95znet: Make installation optional

znet_cio_free is a RedHat-specific tool, so do not install this
module on systems where the program is missing.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years ago95zfcp: Make installation optional
Hannes Reinecke [Fri, 29 Nov 2013 12:13:45 +0000 (13:13 +0100)] 
95zfcp: Make installation optional

zfcp_cio_free is a RedHat-specific tool, so do not install this
module if the program isn't present.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years ago95dasd_mod: make dasd_cio_free optional
Hannes Reinecke [Fri, 29 Nov 2013 12:13:44 +0000 (13:13 +0100)] 
95dasd_mod: make dasd_cio_free optional

dasd_cio_free is a RedHat-specific tool, so make it optional.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years ago95dasd: Only install module if normalize_dasd_arg is present
Hannes Reinecke [Fri, 29 Nov 2013 12:13:43 +0000 (13:13 +0100)] 
95dasd: Only install module if normalize_dasd_arg is present

normalize_dasd_arg is a RedHat specific script, so no point
installing this module if the script isn't present.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years ago95dasd: Install kernel modules only once
Hannes Reinecke [Fri, 29 Nov 2013 12:13:42 +0000 (13:13 +0100)] 
95dasd: Install kernel modules only once

Move kernel module selection to 95dasd_mod and make 95dasd depend
on that module.

Signed-off-by: Hannes Reinecke <hare@suse.de>
10 years ago10i18n/parse-i18n.sh: fixed vconsole.conf/locale.conf generation
Harald Hoyer [Thu, 5 Dec 2013 14:06:39 +0000 (15:06 +0100)] 
10i18n/parse-i18n.sh: fixed vconsole.conf/locale.conf generation

10 years agodracut-functions.sh: do not force require modules.builtin*
Harald Hoyer [Thu, 5 Dec 2013 14:06:06 +0000 (15:06 +0100)] 
dracut-functions.sh: do not force require modules.builtin*

10 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

10 years agoresume: no more autoresume
Harald Hoyer [Mon, 2 Dec 2013 10:02:34 +0000 (11:02 +0100)] 
resume: no more autoresume

10 years agoresume: autoconf resume
Harald Hoyer [Mon, 2 Dec 2013 09:45:17 +0000 (10:45 +0100)] 
resume: autoconf resume

10 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

10 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

10 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.

10 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

10 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

10 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

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

10 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!

10 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

10 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]

10 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

10 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

10 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.

10 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

10 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

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

10 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