]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
8 years agoUse lbzip2 instead of bzip2 if available 66/head
Ville Skyttä [Sun, 24 May 2015 19:29:20 +0000 (22:29 +0300)] 
Use lbzip2 instead of bzip2 if available

8 years agoMerge remote-tracking branch 'github/master'
Harald Hoyer [Mon, 18 May 2015 11:28:00 +0000 (13:28 +0200)] 
Merge remote-tracking branch 'github/master'

8 years ago51-dracut-rescue.install: fix kernel cmdline parsing
Harald Hoyer [Mon, 18 May 2015 11:25:08 +0000 (13:25 +0200)] 
51-dracut-rescue.install: fix kernel cmdline parsing

filter out any "initrd=" option

8 years agodmraid/dmraid.sh: call udevsettle after activating all raids
Harald Hoyer [Wed, 13 May 2015 10:31:07 +0000 (12:31 +0200)] 
dmraid/dmraid.sh: call udevsettle after activating all raids

otherwise a uevent loop will happen and the initqueue main loop counter
will not be incremented

8 years ago5?-dracut*.install: better parsing of /proc/cmdline
Harald Hoyer [Wed, 13 May 2015 09:49:05 +0000 (11:49 +0200)] 
5?-dracut*.install: better parsing of /proc/cmdline

"read -r -d '' -a" does, what we want.

8 years agouse cp --reflink=auto
Harald Hoyer [Wed, 13 May 2015 09:49:38 +0000 (11:49 +0200)] 
use cp --reflink=auto

saves some space, if the destination is on the same filesystem on some
filesystems

8 years agoadd dracut.pc pkg-config file
Harald Hoyer [Wed, 13 May 2015 09:46:05 +0000 (11:46 +0200)] 
add dracut.pc pkg-config file

8 years ago.dir-locals.el: correct syntax
Harald Hoyer [Wed, 13 May 2015 09:44:00 +0000 (11:44 +0200)] 
.dir-locals.el: correct syntax

8 years agoREADME.testsuite: add bridge-utils to list of rpms
Harald Hoyer [Thu, 7 May 2015 16:15:57 +0000 (18:15 +0200)] 
README.testsuite: add bridge-utils to list of rpms

8 years agonetwork/net-lib.sh:iface_has_link() wait 5s for the carrier to appear
Harald Hoyer [Thu, 7 May 2015 12:47:58 +0000 (14:47 +0200)] 
network/net-lib.sh:iface_has_link() wait 5s for the carrier to appear

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

8 years agonetwork:dhcp:wait_for_ipv6_dad() in PREINIT6
Harald Hoyer [Thu, 7 May 2015 12:42:10 +0000 (14:42 +0200)] 
network:dhcp:wait_for_ipv6_dad() in PREINIT6

9 years agoMerge pull request #61 from cmorty/pull/plymouth
Harald Hoyer [Thu, 30 Apr 2015 09:28:49 +0000 (11:28 +0200)] 
Merge pull request #61 from cmorty/pull/plymouth

Add plymouth-set-default-theme to the plymouth dependencies

9 years agoAdd plymouth-set-default-theme to the plymouth dependencies 61/head
Moritz 'Morty' Strübe [Thu, 30 Apr 2015 09:15:07 +0000 (11:15 +0200)] 
Add plymouth-set-default-theme to the plymouth dependencies

plymouth-set-default-theme is not shipped with ubuntu and therefore
causes errors.

9 years agoMerge pull request #59 from lnykryn/master
Harald Hoyer [Thu, 30 Apr 2015 07:29:06 +0000 (09:29 +0200)] 
Merge pull request #59 from lnykryn/master

dracut-functions: use [[ ]] with -n and no quotes

9 years agoMerge pull request #60 from rustybird/master
Harald Hoyer [Thu, 30 Apr 2015 07:28:50 +0000 (09:28 +0200)] 
Merge pull request #60 from rustybird/master

Fix ask_for_password bug breaking bash without plymouth

9 years agoFix ask_for_password bug breaking bash without plymouth 60/head
Rusty Bird [Thu, 30 Apr 2015 03:25:14 +0000 (03:25 +0000)] 
Fix ask_for_password bug breaking bash without plymouth

If crypt-lib.sh is sourced from any #!/bin/sh script, a POSIX shell
quirk is in effect that causes variable assignments to "special
builtins" (such as "shift") to leak to their context. So the buggy
code works even despite the missing semicolons.

But if it is sourced by "bash acting under its own name", i.e. from
any #!/bin/bash script, the quirk is disabled, tty_cmd/tty_prompt are
undefined, and ask_for_password doesn't do anything if plymouth is not
present.

9 years agochange "while read x" to cope with EOF without newline
Harald Hoyer [Mon, 5 Jan 2015 15:07:38 +0000 (16:07 +0100)] 
change "while read x" to cope with EOF without newline

while read x || [ -n "$x" ]

should do the trick

9 years agofips: add some s390 kernel modules
Harald Hoyer [Tue, 28 Apr 2015 08:46:33 +0000 (10:46 +0200)] 
fips: add some s390 kernel modules

9 years agodracut-functions: use [[ ]] with -n and no quotes 59/head
Lukas Nykryn [Mon, 27 Apr 2015 09:38:26 +0000 (11:38 +0200)] 
dracut-functions: use [[ ]] with -n and no quotes

9 years agodmsquash-live/apply-live-updates.sh: needs 'find'
Harald Hoyer [Fri, 24 Apr 2015 10:13:42 +0000 (12:13 +0200)] 
dmsquash-live/apply-live-updates.sh: needs 'find'

also add /run/initramfs/live/updates as a directory, where to pull
the updates from

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

9 years agoDefer modprobe of HW modules, until udev is running
Harald Hoyer [Fri, 24 Apr 2015 09:54:07 +0000 (11:54 +0200)] 
Defer modprobe of HW modules, until udev is running

Also honor blacklisting

9 years agodrm/module-setup.sh: radeon needs amdkfd
Harald Hoyer [Thu, 23 Apr 2015 14:11:53 +0000 (16:11 +0200)] 
drm/module-setup.sh: radeon needs amdkfd

AMD's HSA Linux kernel driver (amdkfd) has been merged into the mainline
kernel since kernel 3.19.

However, for the driver to work, it needs to be included in the default
initramfs image, together with the amd_iommu_v2 driver.

The radeon driver (AMD's kernel graphic driver) calls amdkfd during its
initialization and probing stages. Because radeon is included in the
initramfs image, it tries to initialize amdkfd during the early boot
stages. However, as amdkfd is not present there, it fails.

That doesn't harm radeon operation. However, it disables the HSA
abilities in the machine.

Because of the current design, if you later try to "modprobe amdkfd",
you won't be able to run HSA applications, even though the driver will
be loaded.

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

9 years agoMakefile: turn off hostonly excplicitely for testimage target
Harald Hoyer [Thu, 23 Apr 2015 14:11:26 +0000 (16:11 +0200)] 
Makefile: turn off hostonly excplicitely for testimage target

9 years agokernel-modules: install all HID drivers
Harald Hoyer [Thu, 23 Apr 2015 11:46:52 +0000 (13:46 +0200)] 
kernel-modules: install all HID drivers

Instead of hardcoding a list of useful drivers, which has to be curated
all the time, just include all HID drivers.

9 years agodracut-systemd/rootfs-generator.sh: use strstr rather than grep
Harald Hoyer [Tue, 21 Apr 2015 14:35:34 +0000 (16:35 +0200)] 
dracut-systemd/rootfs-generator.sh: use strstr rather than grep

grep on /proc/cmdline is overkill and would add a requirement for grep

9 years agoifcfg/write-ifcfg.sh: unset vlan
Harald Hoyer [Tue, 21 Apr 2015 08:34:31 +0000 (10:34 +0200)] 
ifcfg/write-ifcfg.sh: unset vlan

clear the vlan flag, if a previous interface in the loop
was a vlan interface

9 years agoMerge pull request #55 from dracut-mailing-devs/1427202794-18834-1-git-send-email...
Harald Hoyer [Thu, 26 Mar 2015 17:34:49 +0000 (18:34 +0100)] 
Merge pull request #55 from dracut-mailing-devs/1427202794-18834-1-git-send-email-aidecoe@aidecoe.name

Take into account lib64 dirs when detecting version, modules and params

9 years agoTake into account lib64 dirs when detecting version, modules and params 55/head
Amadeusz Żołnowski [Tue, 24 Mar 2015 13:13:14 +0000 (14:13 +0100)] 
Take into account lib64 dirs when detecting version, modules and params

9 years agotest: include kernel-network-modules for network tests
Harald Hoyer [Thu, 26 Mar 2015 09:57:58 +0000 (10:57 +0100)] 
test: include kernel-network-modules for network tests

9 years agoMerge pull request #35 from enovance/fix_include_variables_name
Harald Hoyer [Tue, 24 Mar 2015 19:46:06 +0000 (20:46 +0100)] 
Merge pull request #35 from enovance/fix_include_variables_name

dracut: Ajusting variables name for --include

9 years agodracut.spec: add new modules
Harald Hoyer [Tue, 24 Mar 2015 15:10:03 +0000 (16:10 +0100)] 
dracut.spec: add new modules

9 years agofcoe/lldpad.sh: add executable flags
Harald Hoyer [Tue, 24 Mar 2015 15:00:55 +0000 (16:00 +0100)] 
fcoe/lldpad.sh: add executable flags

9 years agocrypt-loop/module-setup.sh: make module-setup.sh executable
Harald Hoyer [Tue, 24 Mar 2015 15:00:00 +0000 (16:00 +0100)] 
crypt-loop/module-setup.sh: make module-setup.sh executable

9 years agodracut-systemd/module-setup.sh: make module-setup.sh executable
Harald Hoyer [Tue, 24 Mar 2015 14:59:08 +0000 (15:59 +0100)] 
dracut-systemd/module-setup.sh: make module-setup.sh executable

9 years agosystemd-networkd: add experimental systemd-networkd support
Harald Hoyer [Tue, 24 Mar 2015 14:57:50 +0000 (15:57 +0100)] 
systemd-networkd: add experimental systemd-networkd support

9 years agonetwork: split out kernel-network-modules
Harald Hoyer [Tue, 24 Mar 2015 14:56:50 +0000 (15:56 +0100)] 
network: split out kernel-network-modules

9 years agodebug: add more tools to the dracut debug module
Harald Hoyer [Tue, 24 Mar 2015 14:56:00 +0000 (15:56 +0100)] 
debug: add more tools to the dracut debug module

9 years agosystemd-initrd: add /etc/initrd-release
Harald Hoyer [Tue, 24 Mar 2015 14:55:34 +0000 (15:55 +0100)] 
systemd-initrd: add /etc/initrd-release

9 years agodracut.sh: create /var/tmp
Harald Hoyer [Tue, 24 Mar 2015 14:54:56 +0000 (15:54 +0100)] 
dracut.sh: create /var/tmp

9 years agosystemd: add more targets and tools
Harald Hoyer [Tue, 24 Mar 2015 14:54:42 +0000 (15:54 +0100)] 
systemd: add more targets and tools

also set the multi-user.target as the default target

9 years agodracut.spec: removed compat /sbin symlink to dracut binary
Harald Hoyer [Mon, 23 Mar 2015 11:19:41 +0000 (12:19 +0100)] 
dracut.spec: removed compat /sbin symlink to dracut binary

9 years agoTEST-30-ISCSI/test.sh: add all dracut modules
Harald Hoyer [Fri, 20 Mar 2015 15:13:30 +0000 (16:13 +0100)] 
TEST-30-ISCSI/test.sh: add all dracut modules

add all dracut modules to catch netroot conflicts and side effects like

afcc697cb8c588eef68bb635f790991411209089

9 years agonfs/parse-nfsroot.sh: don't unset netroot, if not nfs
Harald Hoyer [Fri, 20 Mar 2015 14:48:15 +0000 (15:48 +0100)] 
nfs/parse-nfsroot.sh: don't unset netroot, if not nfs

9 years agodracut.sh: add support for creating a UEFI boot executable
Harald Hoyer [Thu, 19 Mar 2015 11:55:17 +0000 (12:55 +0100)] 
dracut.sh: add support for creating a UEFI boot executable

With an EFI stub, the kernel, the initramfs and a kernel cmdline can be
glued together to a single UEFI executable, which can be booted by a
UEFI BIOS.

9 years agodracut.sh: only print cmdline from modules, which would be included
Harald Hoyer [Thu, 19 Mar 2015 11:44:55 +0000 (12:44 +0100)] 
dracut.sh: only print cmdline from modules, which would be included

9 years agodracut.sh: simplify module install loop
Harald Hoyer [Thu, 19 Mar 2015 11:45:38 +0000 (12:45 +0100)] 
dracut.sh: simplify module install loop

9 years agorootfs-block/module-setup.sh: find root btrfs subvolumes
Harald Hoyer [Thu, 19 Mar 2015 11:34:20 +0000 (12:34 +0100)] 
rootfs-block/module-setup.sh: find root btrfs subvolumes

If root is a btrfs subvolume, find it, if fstab is not used

9 years agotest: ping watchdog in dhcp servers
Harald Hoyer [Thu, 19 Mar 2015 15:40:05 +0000 (16:40 +0100)] 
test: ping watchdog in dhcp servers

9 years agobase/dracut-lib.sh: read /proc/cmdline with multiple lines
Harald Hoyer [Thu, 19 Mar 2015 11:33:03 +0000 (12:33 +0100)] 
base/dracut-lib.sh: read /proc/cmdline with multiple lines

also parse cmdline files without an ending newline

9 years agodracut.sh: factor out do_print_cmdline()
Harald Hoyer [Thu, 19 Mar 2015 10:04:02 +0000 (11:04 +0100)] 
dracut.sh: factor out do_print_cmdline()

9 years agoSplit the systemd dracut module up
Harald Hoyer [Thu, 19 Mar 2015 09:02:05 +0000 (10:02 +0100)] 
Split the systemd dracut module up

Basic systemd functionality is in 00systemd now.
Switching root and the initrd.target is in 00systemd-initrd.
Dracut additions to the systemd initrd are in 98dracut-systemd.

9 years agobase/module-setup.sh: merge systemd conditional
Harald Hoyer [Thu, 19 Mar 2015 09:00:48 +0000 (10:00 +0100)] 
base/module-setup.sh: merge systemd conditional

9 years agolvm: add files needed for LVM system id support
Harald Hoyer [Mon, 16 Mar 2015 10:55:13 +0000 (11:55 +0100)] 
lvm: add files needed for LVM system id support

The LVM system id support is recent addition to LVM. See
https://git.fedorahosted.org/cgit/lvm2.git/tree/man/lvmsystemid.7.in for
more information (since lvm v2.02.117, currently the configuration is
ignored, but we will enable it soon in next release).

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

9 years agosystemd: add "adm" and "wheel" to passwd and group
Harald Hoyer [Thu, 26 Feb 2015 08:39:32 +0000 (09:39 +0100)] 
systemd: add "adm" and "wheel" to passwd and group

9 years agodmsquash: Add squashfs support to rd.live.fsimg
Fabian Deutsch [Thu, 19 Feb 2015 09:09:14 +0000 (10:09 +0100)] 
dmsquash: Add squashfs support to rd.live.fsimg

Previously rd.live.fsimg only supported filesystems residing in
(compressed) archives.
Now rd.live.fsimg can also be used when a squashfs image is used.
This is achieved by extracting the rootfs image from the squashfs and
then continue with the default routines for rd.live.fsimg.
In addition some code duplication got removed and some documentation
got added.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
9 years agodmsquash: Add rd.live.overlay.thin
Fabian Deutsch [Wed, 18 Feb 2015 13:31:40 +0000 (14:31 +0100)] 
dmsquash: Add rd.live.overlay.thin

This option changes the underlying mechanism for the overlay in the
dmsquash module.
Instead of a plain dm snapshot a dm thin snapshot is used. The advantage
of the thin snapshot is, that the TRIM command is recognized, which
means that at runtime, only the occupied blocks will be claimed from
memory, and freed blocks will really be freed in ram.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
9 years ago99base: Properly remove files with rd.hostonly=0
Jonas Jonsson [Sun, 28 Dec 2014 00:03:29 +0000 (01:03 +0100)] 
99base: Properly remove files with rd.hostonly=0

Dracut will generate systemd units for additional devices that should be
brought up during boot, e.g. swap devices. These unit files are broken
symlinks with \ in the filename, e.g.
/etc/systemd/system/initrd.target.wants/dev-disk-by\x2duuid-e6a54f99\x2da4fd\x2d4931\x2da956\x2d1c642bcfee5e.device.

Both the backslash and the broken symlink causes problems for shell
scripts, [ -e "$file" ] isn't enough and read requires the additional -r
argument to not react on the \.

9 years ago90dm/dm-shutdown.sh: dmsetup remove_all -> dmsetup remove
Lukas Wunner [Tue, 3 Feb 2015 18:32:55 +0000 (19:32 +0100)] 
90dm/dm-shutdown.sh: dmsetup remove_all -> dmsetup remove

The function 99shutdown/shutdown.sh:_check_shutdown() assumes that
shutdown scripts report success or failure via their return value.
However, "dmsetup remove_all" always reports success, even if some
of the device mappings could not be removed.

I submitted a patch for dmsetup but the lvm2 folks rejected it,
asserting that its behaviour is correct, that "remove_all" should
only be used by developers and that the proper solution would be
to invoke "dmsetup remove" on each device. This does report success
or failure via the return value.

Apart from fixing that issue, this commit also adds the dmsetup
option "--noudevsync". Without it, dmsetup would hang after removal
of a device while trying to communicate with systemd-udevd, which
is no longer running at this shutdown stage.

[harald: replaces backticks with $() ]

9 years agoSupport /usr/lib/kernel/cmdline fallback path for /etc/kernel/cmdline.
Dimitri John Ledkov [Mon, 9 Feb 2015 11:55:20 +0000 (11:55 +0000)] 
Support /usr/lib/kernel/cmdline fallback path for /etc/kernel/cmdline.

9 years agofips: add drbg kernel module
Harald Hoyer [Thu, 19 Feb 2015 09:45:35 +0000 (10:45 +0100)] 
fips: add drbg kernel module

9 years agodracut.sh: call bash with --norc
Harald Hoyer [Thu, 19 Feb 2015 08:55:12 +0000 (09:55 +0100)] 
dracut.sh: call bash with --norc

We don't want any user aliases or functions to be defined in dracut.

9 years agodoc: fix typo
Jan Synacek [Mon, 9 Feb 2015 14:35:01 +0000 (15:35 +0100)] 
doc: fix typo

9 years agofedora.conf: do not store cmdline in image by default
Harald Hoyer [Tue, 10 Feb 2015 11:21:18 +0000 (12:21 +0100)] 
fedora.conf: do not store cmdline in image by default

9 years agoNEWS & AUTHORS update 041
Harald Hoyer [Sat, 31 Jan 2015 11:54:52 +0000 (12:54 +0100)] 
NEWS & AUTHORS update

9 years agotest/*NFS* : add dhcpd debug flag
Harald Hoyer [Sat, 31 Jan 2015 11:24:02 +0000 (12:24 +0100)] 
test/*NFS* : add dhcpd debug flag

9 years agoTEST-30-ISCSI: turn off iscsi_firmware
Harald Hoyer [Sat, 31 Jan 2015 11:22:45 +0000 (12:22 +0100)] 
TEST-30-ISCSI: turn off iscsi_firmware

Having iscsi_firmware on the kernel cmdline stalls until firmware is
found. qemu does not have this.

9 years agoREADME.testsuite: reformat package list for easy copy&paste
Harald Hoyer [Sat, 31 Jan 2015 11:21:56 +0000 (12:21 +0100)] 
README.testsuite: reformat package list for easy copy&paste

9 years agolvm: add cache tools for dm-cache usage
Harald Hoyer [Wed, 28 Jan 2015 13:25:09 +0000 (13:25 +0000)] 
lvm: add cache tools for dm-cache usage

9 years agonetwork: do not destroy the team interface on teamd shutdown
Harald Hoyer [Mon, 26 Jan 2015 15:12:08 +0000 (15:12 +0000)] 
network: do not destroy the team interface on teamd shutdown

when doing switch-root teamd gets killed, which tears down the team
interface, if teamd is not started with "-N".

9 years agotest: use the new sfdisk syntax without disk geometry
Harald Hoyer [Thu, 22 Jan 2015 15:02:54 +0000 (16:02 +0100)] 
test: use the new sfdisk syntax without disk geometry

9 years agotest/TEST-04-FULL-SYSTEMD/test.sh: fix the find -perm
Harald Hoyer [Thu, 22 Jan 2015 15:00:50 +0000 (16:00 +0100)] 
test/TEST-04-FULL-SYSTEMD/test.sh: fix the find -perm

"find -perm +111" should be "find -perm /0111" as it is deprecated since
a long time

9 years agodracut.sh: simplify the "find" for files with the x bit
Harald Hoyer [Thu, 22 Jan 2015 14:58:20 +0000 (15:58 +0100)] 
dracut.sh: simplify the "find" for files with the x bit

'(' -perm -0100 -or -perm -0010 -or -perm -0001 ')'
is the same as
-perm /0111

9 years agodmraid: don't include MD rules in DM
Harald Hoyer [Thu, 22 Jan 2015 14:57:53 +0000 (15:57 +0100)] 
dmraid: don't include MD rules in DM

9 years agoChange Fedora default console font to eurlatgr
Marko Myllynen [Thu, 15 Jan 2015 10:51:53 +0000 (12:51 +0200)] 
Change Fedora default console font to eurlatgr

See https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont

9 years agoAdd rd.live.overlay.size option
Radek Vykydal [Tue, 13 Jan 2015 14:14:10 +0000 (15:14 +0100)] 
Add rd.live.overlay.size option

9 years agokernel-modules: increase SDHCI driver inclusion
Daniel Drake [Thu, 15 Jan 2015 17:27:47 +0000 (11:27 -0600)] 
kernel-modules: increase SDHCI driver inclusion

The sdhci-pci module is currently not being included in the initramfs,
even though other sdhci modules are. This breaks boot on systems that
rely on this driver to access the root filesystem.

Instead of looking for modules that use sdhci_pltfm_init, look for
sdhci_add_host. I checked 3.18 kernel sources, and this change
does not remove any of the previously-matched SDHCI drivers.
It should result in the addition of sdhci-pci, sdhci-s3c, sdhci-spear
and sdhci-acpi.

9 years agotest: turn off hostonly-cmdline and hostonly
Harald Hoyer [Wed, 21 Jan 2015 08:33:20 +0000 (09:33 +0100)] 
test: turn off hostonly-cmdline and hostonly

9 years agodracut.sh: handle empty $initrd/etc/cmdline.d
Harald Hoyer [Wed, 21 Jan 2015 08:32:20 +0000 (09:32 +0100)] 
dracut.sh: handle empty $initrd/etc/cmdline.d

9 years agonetwork/net-lib.sh:parse_iscsi_root(): fix c&p bug
Harald Hoyer [Thu, 15 Jan 2015 09:33:50 +0000 (10:33 +0100)] 
network/net-lib.sh:parse_iscsi_root(): fix c&p bug

fix iscsi_target_name for eui.* and naa.* target names

9 years agonetwork: add support for comma separated autoconf options
Harald Hoyer [Wed, 14 Jan 2015 10:28:16 +0000 (11:28 +0100)] 
network: add support for comma separated autoconf options

ip=eth0:auto6,dhcp

might work now

9 years agossh-client: s/key/$key
Harald Hoyer [Mon, 12 Jan 2015 13:20:42 +0000 (14:20 +0100)] 
ssh-client: s/key/$key

GlobalKnownHostsFile was not installed, because key was not $key

Thanks Jan Stodola!

9 years agonet-lib.sh:parse_iscsi_root() fix target parsing
Harald Hoyer [Mon, 12 Jan 2015 13:06:10 +0000 (14:06 +0100)] 
net-lib.sh:parse_iscsi_root() fix target parsing

For targets with colons in the iSCSI target name:
  "iqn.2000-09.com.foo:storage-system.e2000:00000001cm1p1"

the parser was confused with the optional iscsi_iface_name and
iscsi_netdev_name.

This patch reintroduces the old IQN, EUI and NAA parsing and enhances
the fallback parser by checking the LUN for a numerical value.

9 years agofips: remove c&p "and"
Harald Hoyer [Fri, 9 Jan 2015 13:53:42 +0000 (14:53 +0100)] 
fips: remove c&p "and"

9 years ago90kernel-modules: update for xhci module split in kernel 3.18
Thomas Backlund [Sun, 21 Dec 2014 10:45:30 +0000 (12:44 +0159)] 
90kernel-modules: update for xhci module split in kernel 3.18

As reported in https://bugs.mageia.org/show_bug.cgi?id=14799

the xhci module got splitted up in upstream linux merged during
3.18 release cycle:

>From 29e409f0f7613f9fd2235e41f0fa33e48e94544e Mon Sep 17 00:00:00 2001
From: Andrew Bresticker <abrestic@chromium.org>
Date: Fri, 3 Oct 2014 11:35:29 +0300
Subject: xhci: Allow xHCI drivers to be built as separate modules

so we need to adjust 90kernel-modules accordingly.

Signed-off-by: Thomas Backlund <tmb@mageia.org>
9 years agodracut-functions.sh: avoid tokenizing ldconfig output with 'read'
Lubomir Rintel [Tue, 23 Dec 2014 21:03:10 +0000 (22:03 +0100)] 
dracut-functions.sh: avoid tokenizing ldconfig output with 'read'

The space does not separate the elements reliably, spaces can be
embedded in parenthesized expressions too:

  libgmpxx.so.4 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmpxx.so.4
  libgmp.so.10 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmp.so.10

This results in dracut creating '0x0000000004000000' and '=>'
directories in the initramfs image.

9 years agoMakefile: add -Wformat to CFLAGS
Harald Hoyer [Thu, 8 Jan 2015 13:53:30 +0000 (14:53 +0100)] 
Makefile: add -Wformat to CFLAGS

-Werror=format-security seems to be ignored without -Wformat

Thanks @ Christoph Brill

9 years agoAUTHORS and .mailmap update
Harald Hoyer [Thu, 8 Jan 2015 12:26:35 +0000 (13:26 +0100)] 
AUTHORS and .mailmap update

9 years agoqemu: add virtio_rng kernel module
Harald Hoyer [Thu, 8 Jan 2015 12:18:57 +0000 (13:18 +0100)] 
qemu: add virtio_rng kernel module

9 years agodracut: Ajusting variables name for --include 35/head
Erwan Velu [Fri, 19 Dec 2014 13:49:00 +0000 (14:49 +0100)] 
dracut: Ajusting variables name for --include

When reading the --include part of the script, we had the following
issues to make the code easy to read:
- src & tgt were extract for the original options
- i variable was a file or a directory from src
- s variable was the directory name in case $i was a directory

"s" sounds very close to "src" while "s" is on the "tgt" side. Very
confusing.

"s" was defined before the "if it's a directory" statement while it's
only used inside the "if".

"i" was commit from the "src" but wasn't really explicit.

Having some lines mixing "i" and "s" takes a little time to get read
properly.

This patch offer the following changes:
- "i" is renamed to "objectname" as we don't know if its a file or a
  directory

- "s" is renamed to "object_destdir" as the object name becomes a
  directory on the destdir

- "object_destdir" (former "s") is moved inside the "if" statement as it's
  only used here

- tgt is finally renamed to "target" to be more explicit. We are not all
  native english ;o)

My 2 (semantic) cents,

9 years agodracut: Don't fail at copying files when including directories
Erwan Velu [Wed, 17 Dec 2014 16:04:19 +0000 (17:04 +0100)] 
dracut: Don't fail at copying files when including directories

When including a directory, the files were considered in the directory
name which lead to messages like :

cp: failed to access '/var/tmp/initramfs.L9s2zO///init-func': No such file or directory

This patch does make the destdir more explicit and copy files into the
destination directory instead of destdir/filename/

9 years agosystemd: add systemd-journald-audit.socket
Harald Hoyer [Fri, 19 Dec 2014 11:47:49 +0000 (12:47 +0100)] 
systemd: add systemd-journald-audit.socket

9 years agoresume: make use of systemd-hibernate-resume, if existant
Harald Hoyer [Wed, 17 Dec 2014 11:08:37 +0000 (12:08 +0100)] 
resume: make use of systemd-hibernate-resume, if existant

In systemd mode, and if systemd-hibernate-resume exists, use it
exclusively.

9 years agoRevert "95rootfs-block: Correctly terminate commandline parameter"
Harald Hoyer [Wed, 17 Dec 2014 10:44:18 +0000 (11:44 +0100)] 
Revert "95rootfs-block: Correctly terminate commandline parameter"

This reverts commit 4b6b46bb2aa9e6a72f96501888035f2d38b82266.

$ ./dracut.sh -l --print-cmdline
root=UUID=d5e53483-30bc-4119-8c0c-841d47a2f76brootflags=rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cacherootfstype=btrfs

instead of:

$ ./dracut.sh -l --print-cmdline
 root=UUID=d5e53483-30bc-4119-8c0c-841d47a2f76b
rootflags=rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cache
rootfstype=btrfs

and also

$ make testimage

 *** Store current command line parameters ***
Stored kernel commandline:
root=UUID=d5e53483-30bc-4119-8c0c-841d47a2f76brootflags=rw,noatime,compress=lzo,ssd,discard,space_cache,autodefrag,inode_cacherootfstype=btrfs


9 years agodracut-functions.sh: for module handling, strip all ".ko*"
Harald Hoyer [Wed, 17 Dec 2014 10:22:46 +0000 (11:22 +0100)] 
dracut-functions.sh: for module handling, strip all ".ko*"

Just strip anything after ".ko" including ".ko", otherwise compressed
modules are not stripped, if they end on e.g. ".ko.gz"

9 years agodracut: nbd: Only complain of missing binary in hostonly mode if
Thomas Renninger [Thu, 11 Dec 2014 14:46:33 +0000 (15:46 +0100)] 
dracut: nbd: Only complain of missing binary in hostonly mode if

 rootfs is on nbd

In not hostonly mode, require_binaries will still complain.
If in hostonly mode and the module is explicitly added via -a nbd, then
install() section will still complain later:
dracut-install: ERROR: installing 'nbd-client'

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95rootfs-block: Correctly terminate commandline parameter
Hannes Reinecke [Thu, 11 Dec 2014 14:46:32 +0000 (15:46 +0100)] 
95rootfs-block: Correctly terminate commandline parameter

95rootfs-block would not terminate the commandline parameter with
a space or newline, instead it'll rely on the main routine from
dracut.sh to do this.
Which will cause unexpected problems for any modules called
after this.

So terminate the commandline parameters correctly here and remove
the newline from dracut.sh.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoDon't create lots of empty cmdline files for hostonly-cmdline case
Thorsten Behrens [Thu, 11 Dec 2014 14:46:31 +0000 (15:46 +0100)] 
Don't create lots of empty cmdline files for hostonly-cmdline case

This aligns other places piping cmdline() output to cmdline.d files
with the earlier fix for 95rootfs-block.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoAlso export root= boot param for hostonly-cmdline case.
Thorsten Behrens [Thu, 11 Dec 2014 14:46:30 +0000 (15:46 +0100)] 
Also export root= boot param for hostonly-cmdline case.

If there's a root fallback, at least attempt to have it falling
back to the last root filesystem this system ran off of.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoFix non-export of journal dev boot options.
Thorsten Behrens [Thu, 11 Dec 2014 14:46:29 +0000 (15:46 +0100)] 
Fix non-export of journal dev boot options.

cmdline_journal does not contain linefeeds anymore, so read
silently skipped it altogether.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90kernel-modules: install scsi_dh_alua
Hannes Reinecke [Thu, 11 Dec 2014 14:46:28 +0000 (15:46 +0100)] 
90kernel-modules: install scsi_dh_alua

Install the missing scsi_dh_alua module, too.

References: bnc#871617

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>