]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
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: 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>
9 years ago95iscsi: Set correct iscsi_started value for iSCSI firmware
Hannes Reinecke [Thu, 11 Dec 2014 14:45:59 +0000 (15:45 +0100)] 
95iscsi: Set correct iscsi_started value for iSCSI firmware

When iSCSI firmware booting is selected we should not rely on
'netroot' or 'iscsiroot' variables to be set.

References: bnc#873448

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: Install libgcc_s library
Hannes Reinecke [Thu, 11 Dec 2014 14:45:58 +0000 (15:45 +0100)] 
95iscsi: Install libgcc_s library

iscsiuio is using pthread, which requires libgcc_s for
pthread_cancel to work.
Without this library iscsiuio will crash with SIGABRT.

References: bnc#881692

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: Autodetect iSCSI firmware
Hannes Reinecke [Thu, 11 Dec 2014 14:45:57 +0000 (15:45 +0100)] 
95iscsi: Autodetect iSCSI firmware

Some iSCSI initiator present firmware information in
/sys/firmware/ibft or /sys/firmware/iscsi_bootX

Whenever we detect one of those directories we should assume
that the iSCSI devices should be activated.

Also incorporates SUSE patches:
0049:
95iscsi: Use 'ip=ibft' for ibft autoconfiguration

For iBFT autoconfiguration we should be setting 'ip=ibft'
instead of rd.neednet. This should instruct dracut to only
enable the iBFT interfaces and leave the rest alone.

References: bnc#879038

0054:
95iscsi: update commandline printing

dracut has a separate callout 'cmdline' which should be used
for printing out the generated commandline.

Signed-off-by: Pavel Wieczorkiewicz <pwieczorkiewicz@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90multipath: install correct multipath rules
Hannes Reinecke [Thu, 11 Dec 2014 14:45:56 +0000 (15:45 +0100)] 
90multipath: install correct multipath rules

The multipath and kpartx rules have different numbers in SUSE.

The 11-dm-mpath.rules file had been missing, causing
blacklisting to not work properly.

References: bnc#873151, bnc#872662, bnc#883149

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95udev-rules: Include correct sg3_utils rules
Hannes Reinecke [Thu, 11 Dec 2014 14:45:55 +0000 (15:45 +0100)] 
95udev-rules: Include correct sg3_utils rules

sg3_utils now provides two rules 55-scsi-sg3_id.rules and
58-scsi-sg3_symlink.rules, which need to be included instead
of the older 59-scsi-sg3_utils.rules.

References: bnc#873151

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoFixup mdraid setup
NeilBrown [Thu, 11 Dec 2014 14:45:54 +0000 (15:45 +0100)] 
Fixup mdraid setup

This sed script to edit 64-md-raid-assemble.rules needs to
be adjusted for latest mdadm

References: bnc#866660

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agosystemd always tries to load autofs4
Thomas Renninger [Thu, 11 Dec 2014 14:45:53 +0000 (15:45 +0100)] 
systemd always tries to load autofs4

During boot systemd tries to load autofs4, but dracut will only
add it if it's loaded by the time dracut is run.
Modify dracut to always load autofs4.

References: bnc#869411

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agomkinitrd-suse: Update to sles12 SUSE state
Thomas Renninger [Thu, 11 Dec 2014 14:45:52 +0000 (15:45 +0100)] 
mkinitrd-suse: Update to sles12 SUSE state

Incorporates these patches:
- 0013 mkinitrd-suse: do not update bootloader if no kernel was found
  bnc#858268
- 0018 mkinitrd-suse: Fix whitespaces when adding drivers
- 0032 mkinitrd-suse.sh: Use '--hostonly' and '--hostonly-cmdline' correctly
  bnc#874000,bnc#874905,bnc#874363
- 0039 Remove --force parameter from mkinitrd
- 0041 mkinitd-suse: remove --hostonly and --hostonly-cmdline
  Should be set via configuration files, not in the script itself.
- 0051 mkinitrd-suse: add 'update bootloader' message
- 0120 mkinitrd-suse.sh: Bail out with exit 1 if initrd cannot be generated
  bnc#886630

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodmsquash-live: setup the images in /run/initramfs
Harald Hoyer [Tue, 16 Dec 2014 11:53:18 +0000 (12:53 +0100)] 
dmsquash-live: setup the images in /run/initramfs

We want to cleanup / after switch_root. Placing the loop files in /
works, but it is more sane to put them in /run/initramfs

9 years agoFixed the dracut-shutdown.service
Harald Hoyer [Mon, 8 Dec 2014 09:43:54 +0000 (10:43 +0100)] 
Fixed the dracut-shutdown.service

Make the service a oneshot service, which remains after exit. This
ensures, that the ExecStop is executed later on, if a shutdown occurs.

9 years agodracut.conf.d/fedora.conf.example: turn on early_microcode
Harald Hoyer [Thu, 4 Dec 2014 10:54:47 +0000 (11:54 +0100)] 
dracut.conf.d/fedora.conf.example: turn on early_microcode

9 years agoinitrd-release: move from /etc to /usr/lib
Tom Gundersen [Mon, 1 Dec 2014 15:59:09 +0000 (16:59 +0100)] 
initrd-release: move from /etc to /usr/lib

This mimicks the similar move of os-release which was done in systemd. These
files are not configuration, but part of the OS.

Still symlinks are in place for compatibility, but those should probably be
dropped eventually.

9 years ago40network: Fix the syntax to correct the judgment sentence
Minfei Huang [Mon, 1 Dec 2014 04:37:06 +0000 (12:37 +0800)] 
40network: Fix the syntax to correct the judgment sentence

In the judgment sentence, it will print the following warning message,
becasuse of lacking the blank on the left of ']'.

/lib/net-lib.sh: line 110: [: missing `]'

Signed-off-by: Minfei Huang <mhuang@redhat.com>
9 years agocms/cms-write-ifcfg.sh: turn SUBCHANNELS into lowercase
Harald Hoyer [Mon, 1 Dec 2014 14:04:53 +0000 (15:04 +0100)] 
cms/cms-write-ifcfg.sh: turn SUBCHANNELS into lowercase

9 years agodo not symlink /var/log to /run/log
Harald Hoyer [Mon, 1 Dec 2014 11:36:20 +0000 (12:36 +0100)] 
do not symlink /var/log to /run/log

some programs e.g. systemd-journald expect a directory in /var/log as
the marker to do some actions. Here journald tries to flush
/run/log/journal to /var/log/journal, if the directory is seen.

/var/log is now a symlink to /run/initramfs/log.

9 years agodracut.sh: add $tmpfilesdir to install files to /usr/lib/tmpfiles.d
Harald Hoyer [Mon, 1 Dec 2014 11:34:54 +0000 (12:34 +0100)] 
dracut.sh: add $tmpfilesdir to install files to /usr/lib/tmpfiles.d

9 years agobase/init.sh: ignore exclamation mark for kmod static-nodes
Harald Hoyer [Mon, 1 Dec 2014 10:50:00 +0000 (11:50 +0100)] 
base/init.sh: ignore exclamation mark for kmod static-nodes

newer versions add an exclamation mark for the type, to mark it to be
created on boot only.

9 years agofips: add libfreeblpriv3.so and libfreeblpriv3.chk
Harald Hoyer [Fri, 28 Nov 2014 14:32:17 +0000 (15:32 +0100)] 
fips: add libfreeblpriv3.so and libfreeblpriv3.chk

9 years agodmsquash-live: do not abort, if user pressed ESC on checkisomd5
Harald Hoyer [Tue, 25 Nov 2014 12:44:54 +0000 (13:44 +0100)] 
dmsquash-live: do not abort, if user pressed ESC on checkisomd5

If the user pressed ESC while checkisomd5 runs the media check, it will
exit with "2". Previously that would mean, that the media check was not
successful.

9 years agomultipath/multipathd.service: add more Conditions
Harald Hoyer [Tue, 25 Nov 2014 12:23:21 +0000 (13:23 +0100)] 
multipath/multipathd.service: add more Conditions

Do not start multipathd on rd.multipath=0 rd_NO_MULTIPATH and if there
is no multipath.conf.

9 years ago90multipath: install dracut-specific service file
Hannes Reinecke [Thu, 20 Nov 2014 14:56:45 +0000 (15:56 +0100)] 
90multipath: install dracut-specific service file

The multipathd package might install a service and a socket
file. Using the original service file from the installed
system without the socket file triggers a bug in systemd,
causing systemd to crash.

As we don't actually need to socket file in the initrd we
should be installing our own service file which does not
reference the socket file at all.

References: bnc#871610

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90multipath: Load device_handler modules early during boot
Hannes Reinecke [Thu, 20 Nov 2014 14:56:44 +0000 (15:56 +0100)] 
90multipath: Load device_handler modules early during boot

The device handler modules need to be loaded early during boot
to avoid I/O errors being printed to the system log.

References: bnc#871617

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90multipath: Install libgcc_s library
Hannes Reinecke [Thu, 20 Nov 2014 14:56:43 +0000 (15:56 +0100)] 
90multipath: Install libgcc_s library

multipathd is using pthreads, which require libgcc_s for
pthread_cancel to work. Without it multipathd might crash
with SIGABRT.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut-functions.sh: check if dinfo is a function
Harald Hoyer [Mon, 24 Nov 2014 14:17:45 +0000 (15:17 +0100)] 
dracut-functions.sh: check if dinfo is a function

If "dinfo" is an executable, dracut-logger.sh would never be sourced.

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

9 years agoTODO: update
Harald Hoyer [Thu, 20 Nov 2014 15:22:51 +0000 (16:22 +0100)] 
TODO: update

9 years agomultipath: add "rd.multipath=0" option
Harald Hoyer [Thu, 20 Nov 2014 10:27:40 +0000 (11:27 +0100)] 
multipath: add "rd.multipath=0" option

9 years agobase: Set udevd log level via environment var to cover early startup.
Colin Guthrie [Mon, 10 Nov 2014 14:17:39 +0000 (14:17 +0000)] 
base: Set udevd log level via environment var to cover early startup.

udevd will these days default to 'info' logging and thus will
often print out the 'starting version nnn' message (which is
logged at level 'info'), thus spamming the console, even on
'quiet' boots.

We generally expect a udev log level of err (the old default
from pre-October 2013) so we should set that explicilty before
launching udevd in order to suppress the spurious 'info' message.

As we are using the environment variable approach anyway, we
may as well use this method rather than setting the log level
later via udevadm control commands when rd.udev.info/debug are
given on the kernel command line.

The enviroment variable has been around since udev 6b493a20e1
around 2005 so should be safe to use in all cases without version
checks.

9 years agosystemd: add 90-vconsole.rules
Harald Hoyer [Thu, 6 Nov 2014 09:44:33 +0000 (10:44 +0100)] 
systemd: add 90-vconsole.rules

run systemd-vconsole-setup if fbcon device shows up

9 years agodracut.sh: don't check gzip for --rsyncable, if pigz is available
Harald Hoyer [Wed, 29 Oct 2014 13:18:34 +0000 (14:18 +0100)] 
dracut.sh: don't check gzip for --rsyncable, if pigz is available

9 years ago40network: Copy the customize dhcp config
Minfei Huang [Mon, 27 Oct 2014 06:33:11 +0000 (14:33 +0800)] 
40network: Copy the customize dhcp config

It is not available to valid the customize dhcp config
/etc/dhclient.conf in the initram environment.

Dracut uses the default follow config to construct the initramfs.

request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        root-path, interface-mtu;

Copy the customize config to make the config availably in the
initram environment.

Signed-off-by: Minfei Huang <mhuang@redhat.com>
9 years agokernel-modules: Drop explicit modules that are found with block_module_filter
Peter Robinson [Sun, 26 Oct 2014 11:48:15 +0000 (11:48 +0000)] 
kernel-modules: Drop explicit modules that are found with block_module_filter

The usb_storage, nvme and sdhci_acpi modules are discovered with the
block_module_filter so there's no need to explicitly list them here.

Signed-off-by: <pbrobinson@gmail.com>
9 years agoshutdown.sh: correct return code of _check_shutdown()
Harald Hoyer [Wed, 29 Oct 2014 12:51:15 +0000 (13:51 +0100)] 
shutdown.sh: correct return code of _check_shutdown()

fix commit b09faad8779f5579, which reversed the return code

9 years agoMerge pull request #30 from vtolstov/master
Harald Hoyer [Wed, 29 Oct 2014 12:53:40 +0000 (13:53 +0100)] 
Merge pull request #30 from vtolstov/master

fix gzip compress then it not supports rsyncable option

9 years agoMerge branch 'master' of github.com:haraldh/dracut 30/head
Vasiliy Tolstov [Wed, 29 Oct 2014 12:56:00 +0000 (15:56 +0300)] 
Merge branch 'master' of github.com:haraldh/dracut

9 years agoMerge pull request #28 from l1k/master
Harald Hoyer [Wed, 29 Oct 2014 12:42:25 +0000 (13:42 +0100)] 
Merge pull request #28 from l1k/master

shutdown/shutdown.sh: loop over shutdown hooks until all succeed

9 years agodracut-functions.sh: fixup for 34a1ec6 for non-local mode
Harald Hoyer [Wed, 29 Oct 2014 12:39:28 +0000 (13:39 +0100)] 
dracut-functions.sh: fixup for 34a1ec6 for non-local mode