]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
9 years agocrypt-loop: Always include 'loop' kernel module 45/head
James Lee [Thu, 26 Mar 2015 06:17:34 +0000 (02:17 -0400)] 
crypt-loop: Always include 'loop' kernel module

When the 'loop' kernel module isn't loaded in a running system, it gets
excluded from the hostonly initrd.  Given that the crypt-loop dracut
module has to be loaded explicitly anyway, it makes sense to always
include the requisite loop kernel module.

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>
9 years ago99base: Add chown binary
Hannes Reinecke [Thu, 11 Dec 2014 14:46:27 +0000 (15:46 +0100)] 
99base: Add chown binary

nvidia driver needs this via modprobe script.
Needs to do change the group after a device node got created.
Add chown instead of chgrp which can also change the owner of a file.

Ask Stefand Dirsch <sndirsch@suse.de> for details.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago40network: add missing _arch variable declaration
Hannes Reinecke [Thu, 11 Dec 2014 14:46:26 +0000 (15:46 +0100)] 
40network: add missing _arch variable declaration

The module_setup.sh script was missing an '_arch' declaration,
causing network not to be installed on s390.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoEnhance suse.conf and debug module example with SUSE-specific settings
Thomas Renninger [Thu, 11 Dec 2014 14:46:25 +0000 (15:46 +0100)] 
Enhance suse.conf and debug module example with SUSE-specific settings

SUSE is using specific settings for dracut, so add them
to the suse.conf.example file.

Add vi and find to the debug module add some help text to the suse.conf
file when and how to use it.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95fcoe: start lldpad separately
Hannes Reinecke [Thu, 11 Dec 2014 14:46:24 +0000 (15:46 +0100)] 
95fcoe: start lldpad separately

lldpad is a system-wide process, which must be started only once.
So we should be separate it from fcoe-up, as it might be called
several times.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95fcoe: skip VLAN devices in fcoe-up
Hannes Reinecke [Thu, 11 Dec 2014 14:46:23 +0000 (15:46 +0100)] 
95fcoe: skip VLAN devices in fcoe-up

DCB & fipvlan can only be called on real devices, not VLAN
ones. So skip any VLAN devices which might been added to the
list of network interfaces.

References: bnc#878583

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95fcoe: Store current configuration in dracut cmdline
Hannes Reinecke [Thu, 11 Dec 2014 14:46:22 +0000 (15:46 +0100)] 
95fcoe: Store current configuration in dracut cmdline

When running with --hostonly-cmdline we should be storing
the current configuration in /etc/cmdline.d so that dracut
will be configure the system automatically.

References: bnc#877288

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95fcoe: update fcoe interface check
Hannes Reinecke [Thu, 11 Dec 2014 14:46:21 +0000 (15:46 +0100)] 
95fcoe: update fcoe interface check

The 'create' sysfs entry has been removed for newer fcoe modules,
so just check if the module directory exists.

References: bnc#877288

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut: Do not stop installing drivers if one fails
Thomas Renninger [Thu, 11 Dec 2014 14:46:20 +0000 (15:46 +0100)] 
dracut: Do not stop installing drivers if one fails

--add-drivers and --filesystems kernel drivers are added via:
instmods -c
The check option makes the function return if one driver could not get
installed without trying to install further drivers which is bad.

The user is still informed ($_silent is by default no), but all modules
passed to instmods are tried to be loaded, even if one fails.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: parse output from iscsiadm correctly
Hannes Reinecke [Thu, 11 Dec 2014 14:46:19 +0000 (15:46 +0100)] 
95iscsi: parse output from iscsiadm correctly

Due to some obsure reason the IFS parameter is not set correctly
when evaluating get_ibft_mod(). So change the parsing to not rely
on IFS altogether.

References: bnc#886199

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agonfs: Add ip=... and root=nfs... parameters to internal dracut
Thomas Renninger [Thu, 11 Dec 2014 14:46:18 +0000 (15:46 +0100)] 
nfs: Add ip=... and root=nfs... parameters to internal dracut

 cmdline

If the rootfs is an nfs mount, also know as nfsroot, add the correct
parameter to the dracut cmdline.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut.usage.asc: Remove distro specific help from manpage
Thomas Renninger [Thu, 11 Dec 2014 14:46:17 +0000 (15:46 +0100)] 
dracut.usage.asc: Remove distro specific help from manpage

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut.sh: Fix UUID= fstab parsing in case --mount option is passed
Thomas Renninger [Thu, 11 Dec 2014 14:46:16 +0000 (15:46 +0100)] 
dracut.sh: Fix UUID= fstab parsing in case --mount option is passed

Dracut parses /etc/fstab when --mount is option is passed (e.g. kdump).

In host_devs variable the real block device must be stored, not UUID=
There are other /etc/fstab syntax possibilities we now warn that they
are not correctly parsed. This will be fixed by another patch
when there is time to test this properly.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut.sh: Avoid duplicate devices in host_devs
Thomas Renninger [Thu, 11 Dec 2014 14:46:15 +0000 (15:46 +0100)] 
dracut.sh: Avoid duplicate devices in host_devs

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoCheck for logfile (--logfile option) and create it if necessary
jloeser [Thu, 11 Dec 2014 14:46:14 +0000 (15:46 +0100)] 
Check for logfile (--logfile option) and create it if necessary

If a logfile is passed to dracut via --logfile option and doesn't
exist, dracut doesn't create it and logs nothing. Instead, dracut
should try to touch the file and print a warning if creating fails.

References: bnc#892191
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90lvm: Install dm-snapshot module
Thomas Renninger [Thu, 11 Dec 2014 14:46:13 +0000 (15:46 +0100)] 
90lvm: Install dm-snapshot module

bnc#888530

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago99base: Increase initqueue timeout in non systemd case
Thomas Renninger [Thu, 11 Dec 2014 14:46:12 +0000 (15:46 +0100)] 
99base: Increase initqueue timeout in non systemd case

In case of systemd is used the timeout already is set to 180s, compare
with file: modules.d/98systemd/dracut-initqueue.sh

Do the same if systemd is not used, e.g. in kdump case.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoHandle module alias properly
Hannes Reinecke [Thu, 11 Dec 2014 14:46:11 +0000 (15:46 +0100)] 
Handle module alias properly

Some modules (like ext4) provide aliases by which the modules
can be accessed, too. But when using aliases directly dracut
fails to include the correct module. So translate the alias
into the correct module name before checking the module.

References: bnc#886839

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago99base: warn on invalid command for initqueue
Hannes Reinecke [Thu, 11 Dec 2014 14:46:10 +0000 (15:46 +0100)] 
99base: warn on invalid command for initqueue

When 'initqueue' is called with an invalid command it'll generate
invalid job scripts. This will lead to confusing error messages
later on.
So abort in these cases and print out a warning.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoGenerate fallback mount unit for root filesystem
Thorsten Behrens [Thu, 11 Dec 2014 14:46:09 +0000 (15:46 +0100)] 
Generate fallback mount unit for root filesystem

If kernel cmdline has no root= provided, *and* the initrd carries
a default value, create a systemd mount unit to have it available
in /sysroot

References: bnc#855258

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoAlign dev_unit_name() with systemd's function.
Thorsten Behrens [Thu, 11 Dec 2014 14:46:08 +0000 (15:46 +0100)] 
Align dev_unit_name() with systemd's function.

Add more corner cases from systemd's
unit_name_from_path_instance() C function.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoPrint stored dracut commandline during initramfs build
Hannes Reinecke [Thu, 11 Dec 2014 14:46:07 +0000 (15:46 +0100)] 
Print stored dracut commandline during initramfs build

When generating the initramfs we should be printing out the
generated dracut commandline used for booting.
This will simplify debugging.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoDo not call 'lvm' for non-LVM device-mapper devices
Hannes Reinecke [Thu, 11 Dec 2014 14:46:06 +0000 (15:46 +0100)] 
Do not call 'lvm' for non-LVM device-mapper devices

If a device-mapper device is not created by LVM it's pointless
to call any 'lvm' programs got extract details; they'll be
failing anyway. So check the UUID before calling 'lvm'.
This speeds up initrd creation and avoids I/O errors on
multipath devices.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoImplement 'rd.timeout' to modify the device timeout
Hannes Reinecke [Thu, 11 Dec 2014 14:46:05 +0000 (15:46 +0100)] 
Implement 'rd.timeout' to modify the device timeout

When generating units for devices the administrator might
want to use a different timeout than the default.
So implement a new parameter 'rd.timeout' for this.

References: bnc#878770

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoiscsi: iscsi.initiator and others can and must only show up once
Thomas Renninger [Thu, 11 Dec 2014 14:46:04 +0000 (15:46 +0100)] 
iscsi: iscsi.initiator and others can and must only show up once

Make sure duplicates of iscsi.initiator vanish.
Only get one rd.iscsi.* paramter value. If getargs is used and several
parameters are parsed, one gets two values separated by whitespace in a
variable which breaks later code and is not suppported.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: generate commandline for software iscsi
Hannes Reinecke [Thu, 11 Dec 2014 14:46:03 +0000 (15:46 +0100)] 
95iscsi: generate commandline for software iscsi

When installing on an software iscsi root we need to generate
the correct commandline, otherwise the system cannot boot.

References: bnc#880108
Patch: 0093

When using software iscsi we should be using the existing
configuration from the system for the time being.

References: bnc#884768
Patch: 0095

Avoid bad ip route call on empty address
Patch: 0143

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: More empty cmdline fixes
Hannes Reinecke [Thu, 11 Dec 2014 14:46:02 +0000 (15:46 +0100)] 
95iscsi: More empty cmdline fixes

This fixes up some 95iscsi/module-setup.sh which might print out empty
commandline files.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: Fixup bnx2i offload booting
Hannes Reinecke [Thu, 11 Dec 2014 14:46:01 +0000 (15:46 +0100)] 
95iscsi: Fixup bnx2i offload booting

bnx2i is using a separate iSCSI offload engine with a separate
MAC address. As a result, the iBFT information is displaying
a MAC address which does not relate to any MAC address from
the network interfaces.
In addition, the iSCSI offload engine works independently on
the NIC, so we do not need to enable the NIC for iSCSI offload
to work.
This patch modifies the automatic iBFT detection to not set
the 'ip=ibft' flag when bnx2i offload is detected.

References: bnc#855747

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: strip one set of quotes when calling initqueue
Hannes Reinecke [Thu, 11 Dec 2014 14:46:00 +0000 (15:46 +0100)] 
95iscsi: strip one set of quotes when calling initqueue

The bad initqueue parameter passing is already addressed by git commit:
commit bb8c16d12178373f17553294603ff5187e318b51
and
commit 486a8f33e2edaf249e3a09c98a910094e201cf9e

However this appraoch is slightly different:
"$netroot" instead of "'$netroot'", etc.

initqueue will process the arguments, assuming the first non-option
argument to be the program to be executed. Putting the entire
commandline into this argument confuses both, initqueue and the
program in question.

References: bnc#879038

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