]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
9 years agonetwork: do not destroy the team interface on teamd shutdown RHEL-7.1
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".

(cherry picked from commit 2a12e9747524dc719e0da9a9d8c382f957cc13de)

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

(cherry picked from commit 7e9341434fca7606d11ffce99bda61a4ccb9ef10)

9 years agonetwork:ifup source team info if present
Harald Hoyer [Wed, 21 Jan 2015 12:39:28 +0000 (13:39 +0100)] 
network:ifup source team info if present

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

(cherry picked from commit 7cddd7b838941cc2608da8641a84031d696e18e0)

9 years agodracut: fixed module dependency handling
Harald Hoyer [Fri, 24 Oct 2014 11:19:58 +0000 (13:19 +0200)] 
dracut: fixed module dependency handling

Fail for "--modules" and "--force-add" dracut modules, if they or their
dependencies cannot be included.

(cherry picked from commit ab2f95e45ed9803c5cbee23f41201a0f934f8043)

9 years agonetwork: enhance team support
Harald Hoyer [Tue, 13 Jan 2015 14:06:48 +0000 (15:06 +0100)] 
network: enhance team support

Install ifcfg-* files with team configuration in the initramfs.

Improve the slave configuration of the team interface, by looking up
ifcfg files in the initramfs.

Create a default loadbalance team config, if none present in the
initramfs.

9 years agotest: add "fs-lib" to dracut module list
Harald Hoyer [Fri, 24 Oct 2014 11:19:34 +0000 (13:19 +0200)] 
test: add "fs-lib" to dracut module list

(cherry picked from commit eda73c0ad2cfc6a9bc8dc429b1a6fcd873e3e1c2)

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

(cherry picked from commit 027565d0233f76edf434b63a847a717185d267e2)

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>
(cherry picked from commit c440d302f1cdfc0336e9086c7b9016356f961936)

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

(cherry picked from commit 3ae03005b85a702256ead058375c9fab2e53950e)

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!

(cherry picked from commit 4ba44e899cbc58e7cee0ff66c8ac4a96f502b972)

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.

(cherry picked from commit 36e8ce4fb01824b49697bd0e7ad3ca3c4cfd4297)

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"

(cherry picked from commit 40899490330574487e7e3ea2c448a521b36bb40a)

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

(cherry picked from commit 3659d64df3fe87e2ec2ca6a55c8f456dabb953db)

9 years agoifcfg/write-ifcfg: only write DEVICE for non-kernel names
Harald Hoyer [Fri, 24 Oct 2014 13:47:24 +0000 (15:47 +0200)] 
ifcfg/write-ifcfg: only write DEVICE for non-kernel names

Rename an interface to the kernel namespace is not allowed, so don't add
DEVICE="<iface>", if HWADDR is given.

(cherry picked from commit 3947f07d93cde5e1cf0d788537e93b135d6c27b0)

9 years agonetwork/net-lib.sh:is_persistent_ethernet_name() eth* is not
Harald Hoyer [Thu, 23 Oct 2014 12:34:33 +0000 (14:34 +0200)] 
network/net-lib.sh:is_persistent_ethernet_name() eth* is not

eth* is _not_ a persistent ethernet name... tsk, tsk, tsk

(cherry picked from commit 05065741f01e78119f1883f199820b804460c58d)

9 years agodo 'ip route replace default' instead of 'add'
Will Woods [Thu, 28 Aug 2014 17:44:47 +0000 (13:44 -0400)] 
do 'ip route replace default' instead of 'add'

When you define the gateway for an interface, dracut sets it up with:

  ip route add default via $gw dev $netif

If a default route is already set (e.g. if you have multiple NICs), this
will fail with the message "RTNETLINK answers: File exists".

So, if your first NIC isn't usable as a default route

Using "ip route replace default" instead allows ifup/dhclient-script to
correctly change the default route to the new interface.

9 years agodracut-functions.sh: exit for missing --force-add or --add dracut modules
Harald Hoyer [Fri, 12 Sep 2014 08:19:28 +0000 (10:19 +0200)] 
dracut-functions.sh: exit for missing  --force-add or --add dracut modules

Better exit with fail early, so there is no surprise on reboot.

(cherry picked from commit a49cac2e65eb1beb8b0442b74aaa4851d184c0ce)

9 years agoqemu: install virtio_console kernel module
Harald Hoyer [Fri, 12 Sep 2014 08:03:59 +0000 (10:03 +0200)] 
qemu: install virtio_console kernel module

https://bugzilla.redhat.com/show_bug.cgi?id=1097999
(cherry picked from commit 5058ae2d295cfd68a6b99e7f6c75227164ca7722)

9 years agocms/cmssetup.sh: understand DASD="none"
Harald Hoyer [Fri, 12 Sep 2014 07:59:03 +0000 (09:59 +0200)] 
cms/cmssetup.sh: understand DASD="none"

Treat DASD="none" as unset.

https://bugzilla.redhat.com/show_bug.cgi?id=1096979
(cherry picked from commit 2f954621ccde0bc9160cd90142865e7586e25b00)

9 years agocms/cmssetup.sh: fixed indention
Harald Hoyer [Fri, 12 Sep 2014 07:57:13 +0000 (09:57 +0200)] 
cms/cmssetup.sh: fixed indention

(cherry picked from commit d68163551226d302677e358e721560d8d651a30f)

9 years agoifcfg/write-ifcfg.sh: bind bond and bridge interfaces to HW
Harald Hoyer [Fri, 12 Sep 2014 07:48:00 +0000 (09:48 +0200)] 
ifcfg/write-ifcfg.sh: bind bond and bridge interfaces to HW

either by s390 SUBCHANNELS or HWADDR, if the interface name is not
persistent.

Previously, this was bound unconditionally with HWADDR.

(cherry picked from commit 80043e21c16db168ad087a162f1fa97cae866c8d)

9 years agobridging: update the ifcfg files generated for bridge slaves
Alex Harpin [Sat, 2 Aug 2014 19:08:25 +0000 (20:08 +0100)] 
bridging: update the ifcfg files generated for bridge slaves

Update the ifcfg files generated for bridge slaves so they reference
the bridge they are part of.  Related to early patch submitted as a
fix for Bug #1123552.

Bug #1123552 https://bugzilla.redhat.com/show_bug.cgi?id=1123552

(cherry picked from commit 32125a976bb6ff67768ca813446743b781ba012f)

9 years agofixed bridge setup
Harald Hoyer [Fri, 1 Aug 2014 11:16:29 +0000 (13:16 +0200)] 
fixed bridge setup

renamed "ethnames" in bridge.info to "bridgeslaves"

fixed ifcfg generation

(cherry picked from commit 2db6d7111870c5d16d812d9cddc23558f3f4a202)

9 years agoSupport spaces in mount_nfs (#1109933)
Brian C. Lane [Thu, 21 Aug 2014 18:31:51 +0000 (11:31 -0700)] 
Support spaces in mount_nfs (#1109933)

nfs paths may contain spaces, make sure they are preserved when passed
to nfs_to_var and mount.

Related: rhbz#1109933
(cherry picked from commit 7e692cfd43ac7f70dd58a0b083f33d6e80d3908c)

9 years agoreplaced ip=auto with ip=dhcp in the documentation
Harald Hoyer [Tue, 9 Sep 2014 11:35:13 +0000 (13:35 +0200)] 
replaced ip=auto with ip=dhcp in the documentation

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

9 years agonetwork/net-lib.sh:parse_iscsi_root() do not enforce target name
Harald Hoyer [Tue, 9 Sep 2014 11:33:16 +0000 (13:33 +0200)] 
network/net-lib.sh:parse_iscsi_root() do not enforce target name

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

cherry-picked from 29763cb72d17fe8d22766170ec06b32419829243

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

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

    Usage: dracut [output_file] --rebuild input_file

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

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

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

(cherry picked from commit 659dc319d950999f8d191a81fdc4d3114e9213de)

9 years agoMake logfile configurable
Hannes Reinecke [Fri, 29 Nov 2013 12:13:49 +0000 (13:13 +0100)] 
Make logfile configurable

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

Signed-off-by: Hannes Reinecke <hare@suse.de>
(cherry picked from commit ee54b8404c10e29e5bddb633a4c7becb7acb0632)

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

(cherry picked from commit b29cb51654db13706c7356aa827e554456b25b0a)

9 years agodracut.sh: no need to make subdirs in run
Harald Hoyer [Wed, 16 Oct 2013 09:39:17 +0000 (11:39 +0200)] 
dracut.sh: no need to make subdirs in run

(cherry picked from commit 8d89fc6bb1b5b1f4c8be0694a1e1200a09ae07d1)

9 years agodracut.sh: also mkdir /run/lock, which is copied to
Harald Hoyer [Wed, 16 Oct 2013 09:31:54 +0000 (11:31 +0200)] 
dracut.sh: also mkdir /run/lock, which is copied to

(cherry picked from commit 68b736b50fbd6bb952d9499296ec70a218e1f5da)

9 years agolsinird: Adding option "-m|--mod" to list dracut modules in the image
Hari Bathini [Mon, 2 Jun 2014 10:57:37 +0000 (16:27 +0530)] 
lsinird: Adding option "-m|--mod" to list dracut modules in the image

This patch adds option "-m|--mod" to lsinitrd to list dracut
modules in the image  because sometimes  having an option to
only list the dracut modules in the image could be handy.

Sample output:
--------------

[hbathini@localhost dracut]$ sudo ./lsinitrd.sh initramfs-3.11.10-100.fc18.x86_64.img -m
Image: initramfs-3.11.10-100.fc18.x86_64.img: 33M
========================================================================
Version: dracut-029-1.fc18.2

dracut modules:
i18n
network
ifcfg
drm
plymouth
btrfs
crypt
dm
dmraid
kernel-modules
lvm
mdraid
cifs
iscsi
nfs
resume
rootfs-block
terminfo
udev-rules
biosdevname
systemd
usrmount
base
fs-lib
shutdown
========================================================================

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
(cherry picked from commit 05d2a14526042417a4a2b1b3d003738b51ab3df7)

9 years agoDo not reload systemd with wait_for_dev
Harald Hoyer [Wed, 5 Feb 2014 12:12:29 +0000 (13:12 +0100)] 
Do not reload systemd with wait_for_dev

9 years agodracut-lib.sh:cancel_wait_for_dev() fixed double escape
Harald Hoyer [Thu, 21 Aug 2014 14:38:35 +0000 (16:38 +0200)] 
dracut-lib.sh:cancel_wait_for_dev() fixed double escape

9 years agossh-client: handle /etc/ssh/ssh_config
Harald Hoyer [Fri, 29 Aug 2014 12:06:57 +0000 (14:06 +0200)] 
ssh-client: handle /etc/ssh/ssh_config

- disable ProxyCommand
- install the GlobalKnownHostsFile

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

9 years agoadd kate and emacs per directory config files
Harald Hoyer [Fri, 29 Aug 2014 11:33:40 +0000 (13:33 +0200)] 
add kate and emacs per directory config files

9 years agotestsuite mods for kvm nested in kvm
Harald Hoyer [Tue, 29 Jul 2014 14:27:35 +0000 (16:27 +0200)] 
testsuite mods for kvm nested in kvm

9 years agoudev-rules: add uaccess and seat rules
Harald Hoyer [Tue, 29 Jul 2014 12:39:38 +0000 (14:39 +0200)] 
udev-rules: add uaccess and seat rules

plymouth needs the seat rules, also without systemd

9 years agonetwork: add rd.route parameter
Harald Hoyer [Tue, 22 Jul 2014 09:03:56 +0000 (11:03 +0200)] 
network: add rd.route parameter

(cherry picked from commit 7b46244bb94e3dfd635a8d222044ae7fc920240d)

9 years agobase/dracut-lib:pidof() turn off debugging
Harald Hoyer [Tue, 22 Jul 2014 09:51:08 +0000 (11:51 +0200)] 
base/dracut-lib:pidof() turn off debugging

(cherry picked from commit ad8638e04e4ac3641afee0e273c91aa3fb6d4278)

9 years agoARM: update modules for ARM host only options
Peter Robinson [Sun, 20 Jul 2014 21:20:04 +0000 (22:20 +0100)] 
ARM: update modules for ARM host only options

(cherry picked from commit 611c895772c73ebb5f769942bca5d5991adc169e)

9 years agoInstalling an OS with VLAN enabled to an ISCSI LUN (from ibft)
Praveen_Paladugu@Dell.com [Tue, 10 Jun 2014 15:35:16 +0000 (10:35 -0500)] 
Installing an OS with VLAN enabled to an ISCSI LUN (from ibft)

When installing OS to a VLAN enabled iscsi LUN (extracted from iBFT), "/tmp/net.{xyz}.has_ibft_config" is not being set properly.

Then anaconda installer requires 'BOOTPROTO="ibft"' populated in ifcfg of the vlan interface (ex: ibft0.20), for it to properly populate the kernel parameters post installation. The setting 'BOOTPROTO="ibft"' is populated by write-ifcfg.sh script only if the corresponding interface has a file /tmp/net.{xyz}.has_inft_config

To get around this issue, in ibft_to_cmdline() function in net-lib.sh file, I made the following changes to populate the has_ibft_config file for the vlan interface(ex: ibft0.20):

(cherry picked from commit f4eb0d98048d51a0782d4a7137f699de174a65e4)

9 years agodracut-functions.sh: speed up ldconfig_paths()
Harald Hoyer [Tue, 8 Jul 2014 10:54:21 +0000 (12:54 +0200)] 
dracut-functions.sh: speed up ldconfig_paths()

(cherry picked from commit 5ea0be0a8c83969fd0041b3e647f82fcfb365e44)

9 years agodracut.sh: always copy prelink files in FIPS mode
Harald Hoyer [Tue, 8 Jul 2014 09:50:04 +0000 (11:50 +0200)] 
dracut.sh: always copy prelink files in FIPS mode

regardless of the the prelink={yes|no} switch

(cherry picked from commit 6cd7001b35c66a12787bc0943b9a7e83a3d443c0)

9 years agolvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules
Harald Hoyer [Thu, 3 Jul 2014 13:04:17 +0000 (15:04 +0200)] 
lvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules

fixup for 12819a579900b9691e2bfaf14e76fbb025851530

(cherry picked from commit fecc1d69e5a12c305d93e7dca64bd690a1fe8ff5)

9 years agoTEST-15-BTRFSRAID: install /etc/os-release
Harald Hoyer [Mon, 30 Jun 2014 09:29:56 +0000 (11:29 +0200)] 
TEST-15-BTRFSRAID: install /etc/os-release

makes systemd switch-root happy

(cherry picked from commit 44537b7bf89f297a8f188c93a2148d55cb7799e7)

9 years agotest: add udev settle after sfdisk
Harald Hoyer [Mon, 30 Jun 2014 09:29:37 +0000 (11:29 +0200)] 
test: add udev settle after sfdisk

(cherry picked from commit e54d961160f12e30917c1a6360f7ba32ecb0f83d)

9 years agoifcfg: depends on network
Harald Hoyer [Mon, 30 Jun 2014 09:28:08 +0000 (11:28 +0200)] 
ifcfg: depends on network

(cherry picked from commit f1a38e5294b76c60b7614ec29ed56eccc4ed078a)

9 years agobase/init.sh: use loop counter with unique varname
Harald Hoyer [Fri, 27 Jun 2014 16:05:37 +0000 (18:05 +0200)] 
base/init.sh: use loop counter with unique varname

$i can be polluted too easily

(cherry picked from commit 6525182bfc06abfffd71dafc06c5faca6c55eace)

9 years agoAdd "rd.cmdline=ask" kernel command line parameter
Harald Hoyer [Fri, 27 Jun 2014 10:02:14 +0000 (12:02 +0200)] 
Add "rd.cmdline=ask" kernel command line parameter

prompts the user for additional kernel command line parameters

(cherry picked from commit f232f6623d2b761c1538192c97e13842e5037adc)

Conflicts:
dracut.cmdline.7.asc
modules.d/98systemd/dracut-cmdline.sh
modules.d/99base/init.sh

9 years agokernel-modules: add tegra arm modules
Harald Hoyer [Wed, 25 Jun 2014 10:02:30 +0000 (12:02 +0200)] 
kernel-modules: add tegra arm modules

(cherry picked from commit 54483dd773a67061746a146d276cb40953468132)

9 years agoprint out, what kernel command line parameters are used
Harald Hoyer [Tue, 24 Jun 2014 16:55:49 +0000 (18:55 +0200)] 
print out, what kernel command line parameters are used

(cherry picked from commit fbc4620f059afec6169533259e24bc06479d18f9)

Conflicts:
modules.d/98systemd/dracut-cmdline.sh

9 years agousable_root(): only check for ld-*.so
Harald Hoyer [Tue, 24 Jun 2014 16:54:35 +0000 (18:54 +0200)] 
usable_root(): only check for ld-*.so

current systemd allows booting with only /usr on the root partition

see, if we can find an elf loader

(cherry picked from commit 7e59d550425833e9ecaa892ef9f1a9fe8160065a)

9 years agolsinitrd.sh: don't choke on LZO-compressed images
Tobias Geerinckx [Tue, 3 Jun 2014 02:59:34 +0000 (04:59 +0200)] 
lsinitrd.sh: don't choke on LZO-compressed images

lsinitrd (and hence dracut) currently fail to list the contents of any
LZO-compressed image, and merely spit out misleading xzcat errors.

I guess no-one actually uses them.

(cherry picked from commit 773d6a7ded0cc717ecfb7bed6e3f52ceedfb1834)

9 years ago98systemd: also install systemd-journald-dev-log.socket
Daniel Schaal [Thu, 19 Jun 2014 09:38:25 +0000 (11:38 +0200)] 
98systemd: also install systemd-journald-dev-log.socket

The /dev/log socket was moved to /run on systemd 214, install the
newly added socket unit.

(cherry picked from commit 7eb0bc7bc4fdcf4ee9cde0e919eff2497c22beab)

9 years agosystemd: Optionally, include efivarsfs module
Cristian Rodríguez [Mon, 16 Jun 2014 05:13:44 +0000 (01:13 -0400)] 
systemd: Optionally, include efivarsfs module

It is, however not an error if this module can't be found.

(cherry picked from commit f46c2fff717d0036bf3cd4d6c1c9af28eb46ceb1)

9 years agodeprecate "ip=ibft" kernel command line parameter
Harald Hoyer [Fri, 20 Jun 2014 12:27:09 +0000 (14:27 +0200)] 
deprecate "ip=ibft" kernel command line parameter

rd.iscsi.ibft[=1] should be used instead.

Thing is, 'ip=ibft' is not really an ip setting, but rather a marker
that iBFT should be evaluated.

Also removed the trigger of the warning:
"Warning: Please supply bootdev argument for multiple ip= lines"

(cherry picked from commit 5580e4c176c92624054691a8e12cffe8622cc1a0)

9 years agoiscsi: correctly install the settled iscsiroot dummy call
Harald Hoyer [Wed, 11 Jun 2014 12:58:55 +0000 (14:58 +0200)] 
iscsi: correctly install the settled iscsiroot dummy call

initqueue parses $1 as the executable command

(cherry picked from commit bb8c16d12178373f17553294603ff5187e318b51)

9 years agoiscsi: correctly install the timeout iscsiroot dummy call
Harald Hoyer [Wed, 11 Jun 2014 12:55:11 +0000 (14:55 +0200)] 
iscsi: correctly install the timeout iscsiroot dummy call

initqueue parses $1 as the executable command

(cherry picked from commit 486a8f33e2edaf249e3a09c98a910094e201cf9e)

9 years agonetwork/ifup.sh: Don't try to modprobe ipv6, if already available
Vasiliy Tolstov [Mon, 26 May 2014 11:28:43 +0000 (15:28 +0400)] 
network/ifup.sh: Don't try to modprobe ipv6, if already available

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
[Edited-by: Harald Hoyer]
Simplified logic.

(cherry picked from commit 28f3f537c4ffb101c26def41c9a6a0278f9b4437)

9 years agobonding: use hwaddr of the slave rather than the master
Alex Harpin [Tue, 6 May 2014 22:41:17 +0000 (23:41 +0100)] 
bonding: use hwaddr of the slave rather than the master

When a bonded interface is brought up, any slaves included in the bond
have their hardware address set to that of the bond master.  Although
this allows an interface to be brought up on start up, when the
configuration file is imported into the booted system it prevents
the bonded interface being successfully restarted.

The fix involves obtaining the hardware address of the slaves before
they are added to the bond and then using this value in the
configuration file.

(cherry picked from commit 83c9ff7dbb465bedb10119bb2883d34266922180)

9 years agokernel-modules: Fix storage module selection for sdhci/mmc/ahci
Peter Robinson [Fri, 23 May 2014 10:54:01 +0000 (11:54 +0100)] 
kernel-modules: Fix storage module selection for sdhci/mmc/ahci

Currently the block driver detection for generic initrd doesn't include
the SD/MMC drivers so we fail to boot generic images on any device using
those platforms as boot devices when using a generic initrd. Add logic
to detect those modules. This primarily fixes embedded ARM devices but
also likely intel tablets/dev boards and enterprise hypervisors that
have the ability to boot from SD.

Also the ahci_init_controller misses a number of drivers that use the
libahci_platform module for the init so this fixes some missing achi
moduless too.

Finally it cleans up the ARM storage module hacks that the above now
deals with in a more generic manner.

Signed-off-by: <pbrobinson@gmail.com>
(cherry picked from commit 827ec27a9c36755095dda899eff75cdae78b2120)

9 years agodracut-pre-pivot pulls in remote-fs.target
WANG Chao [Fri, 4 Apr 2014 06:37:42 +0000 (14:37 +0800)] 
dracut-pre-pivot pulls in remote-fs.target

It turns out that commit f30b74e (dracut-initqueue service runs before
remote-fs-pre.target) is partial fix for remote fs mounts. Because no
one pulls in remote-fs.target, we can never start remote fs mounts.
Now pull in remote-fs.target in dracut-pre-pivot.

Signed-off-by: WANG Chao <chaowang@redhat.com>
(cherry picked from commit ce7f408dfd473b3c2f4fdb9ddc2b2131e08007d3)

9 years ago98systemd: fixup rootfs-generator installation path
Hannes Reinecke [Tue, 20 May 2014 09:20:10 +0000 (11:20 +0200)] 
98systemd: fixup rootfs-generator installation path

The rootfs-generator was installed in the wrong path
in the initrd, cause it never to be run.

References: bnc#878714

Signed-off-by: Hannes Reinecke <hare@suse.de>
(cherry picked from commit ed2005fa5ba7d618bbb2c63bac616fba32a17a5d)

9 years agodracut-functions.sh:print_vars() fix for values with spaces
Harald Hoyer [Tue, 20 May 2014 09:27:42 +0000 (11:27 +0200)] 
dracut-functions.sh:print_vars() fix for values with spaces

for a variable with spaces, e.g.:
EXT_KEYMAPS='backspace keypad euro2'

The following would occur:
print_vars: eval printf -v _value %s '$EXT_KEYMAPS'
print_vars: printf -v _value %s backspace keypad euro2
print_vars: [[ -n backspacekeypadeuro2 ]]
print_vars: printf '%s=\"%s\"\n' EXT_KEYMAPS backspacekeypadeuro2

Thanks to Sebastian Köln for the fix!

(cherry picked from commit 7a94a4326f0641396125acb2b444b562224457a1)

9 years agofcoe-uefi/parse-uefifcoe.sh: fixed parameter generation from UEFI
Harald Hoyer [Tue, 20 May 2014 09:22:26 +0000 (11:22 +0200)] 
fcoe-uefi/parse-uefifcoe.sh: fixed parameter generation from UEFI

"fcoe=" was missing for the parameter specifying the interface

(cherry picked from commit 142710269279db70fceb3e76a077f3d6a89a84a5)

9 years agonbd/nbdroot.sh: call nbd-client with "--systemd-mark"
Harald Hoyer [Fri, 16 May 2014 11:33:33 +0000 (13:33 +0200)] 
nbd/nbdroot.sh: call nbd-client with "--systemd-mark"

otherwise nbd-client will get killed by systemd

(cherry picked from commit 056a3f2427b6747d83fc48c5d1e3f85b4058c18f)

9 years agoifcfg/write-ifcfg.sh: include net-lib.sh
Harald Hoyer [Fri, 16 May 2014 11:32:47 +0000 (13:32 +0200)] 
ifcfg/write-ifcfg.sh: include net-lib.sh

otherwise is_persistent_ethernet_name() is missing

(cherry picked from commit 8fa1afb65cef30d56ce2e141b0b594cf780120a1)

9 years agomdraid/module-setup.sh: fixed print-cmdline for empty UUID
Harald Hoyer [Wed, 14 May 2014 14:38:49 +0000 (16:38 +0200)] 
mdraid/module-setup.sh: fixed print-cmdline for empty UUID

fixes

/usr/lib/dracut/modules.d/90mdraid/module-setup.sh: line 60:
_activated["${UUID}"]: bad array subscript

Thanks to Jan ONDREJ for spotting this!

(cherry picked from commit 19bb14c3467233f8c98f76b3fa57047a3a31e1a3)

9 years agocms/cmssetup.sh: convert SUBCHANNELS to lowercase
Harald Hoyer [Mon, 12 May 2014 12:36:08 +0000 (14:36 +0200)] 
cms/cmssetup.sh: convert SUBCHANNELS to lowercase

In udev rules, the channels need to be expressed in lower case.

(cherry picked from commit 56d57a70ec89740dc6ddc09ea23b6fc4c3a6a531)

9 years agoifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp
Harald Hoyer [Mon, 12 May 2014 11:53:38 +0000 (13:53 +0200)] 
ifcfg/write-ifcfg.sh: "IPV6INIT=yes" check also for non-dhcp

(cherry picked from commit 1230f3bcffd8837e8846e60376ea2a88ef5ab257)

9 years agoDo not log to kmsg/syslog and files for "--print-cmdline"
Harald Hoyer [Wed, 7 May 2014 12:54:56 +0000 (14:54 +0200)] 
Do not log to kmsg/syslog and files for "--print-cmdline"

(cherry picked from commit 535f61ca4ab55aa58d9bcf3d537cc4c0d800f6c8)

9 years agodracut-lib.sh: fixed return value of pidof()
Harald Hoyer [Wed, 7 May 2014 11:33:14 +0000 (13:33 +0200)] 
dracut-lib.sh: fixed return value of pidof()

pidof always returned with 0, so any "while pidof" loop would not
terminate.

Thanks "Consus" for the hint!

(cherry picked from commit 4e58a1ffc760e5c54e6cae5924a2439cae196848)

9 years agoifcfg: only bind to HWADDR, if addr_assign_type == 0
Harald Hoyer [Fri, 4 Apr 2014 10:52:39 +0000 (12:52 +0200)] 
ifcfg: only bind to HWADDR, if addr_assign_type == 0

/sys/class/net/$netif/addr_assign_type is != 0 for random MAC address
interfaces

(cherry picked from commit 2e094b20a6875fdb0a7ef8772e3d7688ad91c036)

9 years agoifcfg: do not bind persistent interface names to HWADDR
Harald Hoyer [Fri, 4 Apr 2014 10:48:03 +0000 (12:48 +0200)] 
ifcfg: do not bind persistent interface names to HWADDR

(cherry picked from commit fb0e5184a6506185998fd12d151f7d34d07c07b3)

9 years agodracut-initqueue service runs before remote-fs-pre.target
WANG Chao [Thu, 3 Apr 2014 07:49:26 +0000 (15:49 +0800)] 
dracut-initqueue service runs before remote-fs-pre.target

With the following commit, dracut doesn't mount anything from /etc/fstab

commit e920bfb
Author: WANG Chao <chaowang@redhat.com>
Date:   Tue Apr 1 15:20:49 2014 +0800

    fstab: do not mount and fsck from fstab if using systemd

But systemd doesn't mount nfs at all, because no unit is pulling in
remote-fs.target.

dracut must pull in these remote fs mount and all these remote mounts
should start only after network is up (ie. after dracut-initqueue).

Signed-off-by: WANG Chao <chaowang@redhat.com>
(cherry picked from commit b31250e7e6e6e104674dc304ba74965bb56074d6)

9 years agolvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules
Harald Hoyer [Thu, 3 Apr 2014 06:54:27 +0000 (08:54 +0200)] 
lvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules

Before modifying 69-dm-lvm-metad.rules, we should check for the
existance first. Otherwise this results in error messages on
distributions (debian), which do not ship these rules.

(cherry picked from commit 12819a579900b9691e2bfaf14e76fbb025851530)

9 years agofstab: do not mount and fsck from fstab if using systemd
WANG Chao [Tue, 1 Apr 2014 07:20:49 +0000 (15:20 +0800)] 
fstab: do not mount and fsck from fstab if using systemd

If using systemd in initramfs, we could run into a race condition when
dracut and systemd both are trying to mount and run fsck for the same
filesystem, and mount or fsck could be a failure.

To fix such failure, we should use systemd to mount/fsck from /etc/fstab
only.

v2: check $DRACUT_SYSTEMD suggested by Alexander Tsoy

Signed-off-by: WANG Chao <chaowang@redhat.com>
(cherry picked from commit e920bfb1e8a5917e7b0f360d1c51d200db3acbfd)

9 years agodracut-functions.sh: add /lib/modules/*/{extras|weak-updates} for kernel modules
Harald Hoyer [Mon, 28 Apr 2014 10:45:44 +0000 (12:45 +0200)] 
dracut-functions.sh: add /lib/modules/*/{extras|weak-updates} for kernel modules

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

9 years agoifcfg/write-ifcfg.sh: turn on IPV6INIT, if any inet6 address is found
Harald Hoyer [Thu, 3 Apr 2014 06:53:09 +0000 (08:53 +0200)] 
ifcfg/write-ifcfg.sh: turn on IPV6INIT, if any inet6 address is found

If "ip -6 addr" finds any inet6 address, assume IPV6INIT=yes for the
ifcfg file.

9 years agofs-lib: always install fsck.$fs, if present
Harald Hoyer [Fri, 4 Apr 2014 09:33:02 +0000 (11:33 +0200)] 
fs-lib: always install fsck.$fs, if present

9 years agoAdd legacy flag (-l) to lz4 and update magic number
Alexander Tsoy [Wed, 26 Feb 2014 11:50:17 +0000 (15:50 +0400)] 
Add legacy flag (-l) to lz4 and update magic number

Linux kernel does not support the new default lz4 format.

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

9 years agofcoe: workaround fcoe timing issues
Harald Hoyer [Mon, 31 Mar 2014 14:21:49 +0000 (16:21 +0200)] 
fcoe: workaround fcoe timing issues

9 years agodm: add dm-cache modules
Harald Hoyer [Thu, 27 Mar 2014 11:34:40 +0000 (12:34 +0100)] 
dm: add dm-cache modules

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

9 years agonetwork: DCHPv6: set valid_lft and preferred_lft
Harald Hoyer [Thu, 27 Mar 2014 11:31:23 +0000 (12:31 +0100)] 
network: DCHPv6: set valid_lft and preferred_lft

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

9 years agolsinitrd.sh: prevent < <$() construct
Harald Hoyer [Thu, 27 Mar 2014 08:27:53 +0000 (09:27 +0100)] 
lsinitrd.sh: prevent < <$() construct

Running dracut in a chroot environment, which has /dev not correctly
setup will result in errors like:

/usr/bin/lsinitrd: line 164: /dev/fd/62: No such file or directory
cpio: Malformed number �5�OK��
cpio: Malformed number 5�OK��
cpio: Malformed number �OK��

This is because bash wants /dev/fd/<num> for constructs like:
foo < <$(bar)

9 years agonetwork: handle "ip=dhcp6" for all interfaces
Harald Hoyer [Tue, 25 Mar 2014 14:39:56 +0000 (15:39 +0100)] 
network: handle "ip=dhcp6" for all interfaces

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

9 years agofcoe: wait for lldpad to be ready
Harald Hoyer [Tue, 25 Mar 2014 14:28:19 +0000 (15:28 +0100)] 
fcoe: wait for lldpad to be ready

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

9 years agodracut-initramfs-restore: fix unpacking with early microcode
Harald Hoyer [Thu, 20 Mar 2014 12:18:13 +0000 (13:18 +0100)] 
dracut-initramfs-restore: fix unpacking with early microcode

(cherry picked from commit 0626cbe923732d45739ea6da4b816c78c44503ef)

9 years agoshutdown: if kexec failed, do a simple reboot
Harald Hoyer [Tue, 18 Mar 2014 12:21:22 +0000 (13:21 +0100)] 
shutdown: if kexec failed, do a simple reboot

9 years agonetwork:dhclient-script do PREINIT6 for DHCP6
Harald Hoyer [Mon, 17 Mar 2014 12:00:17 +0000 (13:00 +0100)] 
network:dhclient-script do PREINIT6 for DHCP6

9 years agosystemd/dracut-shutdown.service: make failure non-fatal
Harald Hoyer [Wed, 12 Mar 2014 14:39:08 +0000 (15:39 +0100)] 
systemd/dracut-shutdown.service: make failure non-fatal

9 years agoDo not wait_for_dev if hostonly_cmdline not set
Harald Hoyer [Thu, 6 Mar 2014 08:54:36 +0000 (09:54 +0100)] 
Do not wait_for_dev if hostonly_cmdline not set

9 years agodracut: don't let devices timeout
Harald Hoyer [Tue, 4 Mar 2014 12:46:14 +0000 (13:46 +0100)] 
dracut: don't let devices timeout

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

9 years agoAdd -[-no]-hostonly-cmdline option handling for getopt
WANG Chao [Mon, 3 Mar 2014 07:22:00 +0000 (15:22 +0800)] 
Add -[-no]-hostonly-cmdline option handling for getopt

commit ab9457e introduce such new options but it missed to add these
options to getopt arguments.

Signed-off-by: WANG Chao <chaowang@redhat.com>
9 years agotest/TEST-50-MULTINIC/client-init.sh: skip MAC marker files
Harald Hoyer [Fri, 28 Feb 2014 12:26:13 +0000 (13:26 +0100)] 
test/TEST-50-MULTINIC/client-init.sh: skip MAC marker files

9 years agotest/Makefile: add SKIP env to skip certain tests
Harald Hoyer [Fri, 28 Feb 2014 12:25:39 +0000 (13:25 +0100)] 
test/Makefile: add SKIP env to skip certain tests

9 years agotest: add missing Makefile.testdir
Harald Hoyer [Fri, 28 Feb 2014 11:57:57 +0000 (12:57 +0100)] 
test: add missing Makefile.testdir