]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
8 years agonetwork: setup gateway after setting up resolv.conf
Harald Hoyer [Thu, 28 May 2015 17:44:55 +0000 (19:44 +0200)] 
network: setup gateway after setting up resolv.conf

If a daemon listens for route changes and wants to use the interface
afterwards, it should be able to resolve DNS

(cherry picked from commit 0b7bfacfeaf86c4001dc2ea46cecdc65c9cdfff1)

8 years agolsinitrd.sh: ignore "cat: write error: Broken pipe"
Harald Hoyer [Fri, 3 Jul 2015 12:35:25 +0000 (14:35 +0200)] 
lsinitrd.sh: ignore "cat: write error: Broken pipe"

8 years agoman page: changed grub.conf to grub2.cfg
Harald Hoyer [Fri, 3 Jul 2015 12:28:55 +0000 (14:28 +0200)] 
man page: changed grub.conf to grub2.cfg

8 years agomultipath: install all multipath path selector kernel modules
Harald Hoyer [Fri, 3 Jul 2015 12:24:50 +0000 (14:24 +0200)] 
multipath: install all multipath path selector kernel modules

By default, dracut only builds in dm-service-time into the initramfs as
that is the default multipath.conf path selector. If the user changes
the path selector to "round robin" on the fly and runs dracut, multipath
does not find any paths on boot and the user will be dropped into a
shell.

Apparently, in RHEL7 dracut defaults to "hostonly" mode, i.e. modules
not currently in use at the time dracut runs do not get built into
initramfs. This is definitely one case where this doesn't work. A change
to reconfigure multipath probably should not render the system
unbootable.

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

8 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

(cherry picked from commit 9f0878540bdc8054dc2b45427eed957b9bd25f2d)

8 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

(cherry picked from commit 18423f7951de7b9cb4007438b58b6067aa6f2e93)

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

(cherry picked from commit 370035d561baa6852bcb02161ef736a78b62b336)

8 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
(cherry picked from commit 26d14fb3d36d6091f64258a62c49939478405693)

8 years agobase: Don't wait for swap devices in host-only mode.
Colin Guthrie [Fri, 15 May 2015 13:53:40 +0000 (14:53 +0100)] 
base: Don't wait for swap devices in host-only mode.

The only reason we add swap devices to host-only mode (added in
dd5875499ece9dbc90e10eafd0073ee15d0c86a4) is to allow us to process
resume= arguments passed on the kernel command line when the swap
partition lives on something slightly more complex than a normal
partion (e.g. in an LVM or RAID setup).

By adding the device to host_devs, the necessary LVM and RAID hooks
are added and thus the underlying storage will be initialised OK, and
the 95resume module handles the waiting for the device (via udev rules
creating the /dev/resume symlink).

So ultimately, we do not need to hard-code the waiting for the swap
devices into the initramfs at build time as the waiting part can be
dynamic.

This makes things more resiliant to swap partitions disappearing and
being reformatted etc.

Inspired by a patch by Martin Whitaker on Mageia bug:
https://bugs.mageia.org/show_bug.cgi?id=12305

(cherry picked from commit 3e3ed34f036a833ccc2150c6224d0a954e841e39)

8 years ago95fcoe-uefi: Test for EFI firmware
Hannes Reinecke [Mon, 23 Mar 2015 16:12:18 +0000 (17:12 +0100)] 
95fcoe-uefi: Test for EFI firmware

The fcoe-uefi module should test for EFI firmware when called
in 'hostonly' mode; of no EFI firmware is found then the module
doesn't need to be included.

References: bnc#882412

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
(cherry picked from commit 6755c208556be7a85c76e731de48a56f56e81c4c)

8 years agolivenet: don't attempt to download the image for every interface
Harald Hoyer [Fri, 3 Jul 2015 12:00:33 +0000 (14:00 +0200)] 
livenet: don't attempt to download the image for every interface

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

8 years agofcoe/fcoe-edd.sh: cleanup the script
Harald Hoyer [Fri, 3 Jul 2015 11:52:32 +0000 (13:52 +0200)] 
fcoe/fcoe-edd.sh: cleanup the script

- check if modprobe was successful
- add a timeout for /sys/firmware/edd
- only remove the module, if it was loaded by the script

8 years agofcoe: EDD parsing patch for i40e
Chris Leech [Fri, 3 Jul 2015 11:44:16 +0000 (13:44 +0200)] 
fcoe: EDD parsing patch for i40e

8 years agofcoe: start with fcoemon instead of fipvlan
Chris Leech [Fri, 3 Jul 2015 11:40:12 +0000 (13:40 +0200)] 
fcoe: start with fcoemon instead of fipvlan

8 years agonetwork: add options to tweak timeouts
Harald Hoyer [Fri, 3 Jul 2015 11:30:40 +0000 (13:30 +0200)] 
network: add options to tweak timeouts

 rd.net.dhcp.retry=<cnt>
     If this option is set, dracut will try to connect via dhcp
     <cnt> times before failing. Default is 1.

 rd.net.timeout.dhcp=<arg>
     If this option is set, dhclient is called with "-timeout <arg>".

 rd.net.timeout.iflink=<seconds>
     Wait <seconds> until link shows up. Default is 60 seconds.

 rd.net.timeout.ifup=<seconds>
     Wait <seconds> until link has state "UP". Default is 20 seconds.

 rd.net.timeout.route=<seconds>
     Wait <seconds> until route shows up. Default is 20 seconds.

 rd.net.timeout.ipv6dad=<seconds>
     Wait <seconds> until IPv6 DAD is finished. Default is 50 seconds.

 rd.net.timeout.ipv6auto=<seconds>
     Wait <seconds> until IPv6 automatic addresses are assigned.
     Default is 40 seconds.

 rd.net.timeout.carrier=<seconds>
     Wait <seconds> until carrier is recognized. Default is 5 seconds.

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

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

(cherry picked from commit 180e9d78516fb4b2ee5baef44521007a860d4dd2)

8 years ago50drm: add hyperv_fb kernel module
Harald Hoyer [Mon, 18 May 2015 11:43:26 +0000 (13:43 +0200)] 
50drm: add hyperv_fb kernel module

https://bugzilla.redhat.com/show_bug.cgi?id=1192035
(cherry picked from commit 81b67232dcc796178124676d124d7d91514e4a8f)

8 years agodoc: Add a minimal rd.live.overlay documentation
Fabian Deutsch [Thu, 21 May 2015 10:37:38 +0000 (12:37 +0200)] 
doc: Add a minimal rd.live.overlay documentation

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
(cherry picked from commit a1b4efe6a722ac3754d8a48109575d11d5ccf61b)

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

8 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

(cherry picked from commit 1f8abe81a9fca0f44c63bf3bd30a7f7fbec28642)

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

8 years agoAdding support for read/write filesystem images
Major Hayden [Mon, 4 Aug 2014 15:27:36 +0000 (10:27 -0500)] 
Adding support for read/write filesystem images

A user can provide a filesystem image (rootfs.img) inside a compressed
tarball and that filesystem image will be mounted read/write.  This provides
some benefits over a device mapper snapshot overlay, especially when the
live system becomes full.  The boot command line simple needs
"rd.writable.fsimg" added to utilize this feature.

Additional documentation for this option as well as other live boot
options is included.

Signed-off-by: Major Hayden <major@mhtx.net>
(cherry picked from commit 504c0a8feca7d7ef470e4483a68cbaf9cb7df2bf)

8 years agosplitup dracut-init.sh from dracut-functions.sh
Harald Hoyer [Thu, 2 Jul 2015 13:40:13 +0000 (15:40 +0200)] 
splitup dracut-init.sh from dracut-functions.sh

other tools want to source dracut-functions.sh without any mkdir side
effects.

(cherry picked from commit 777f2db0373ccbc1a44fc2d960ecefbe50195055)

8 years agonfs/nfs-lib.sh: add anaconda_nfsv6_to_var()
Harald Hoyer [Thu, 2 Jul 2015 13:21:35 +0000 (15:21 +0200)] 
nfs/nfs-lib.sh: add anaconda_nfsv6_to_var()

add "nfs:[[2001:0db8:85a3:08d3:1319:8a2e:0370:7344]]/path" style parsing

https://bugzilla.redhat.com/show_bug.cgi?id=1190098
(cherry picked from commit ba665de454e7d6ef1da4ba95308fb9f65c7a9497)

8 years agoChange the fs_passno of nfs to 0
Chao Fan [Wed, 20 May 2015 10:07:14 +0000 (18:07 +0800)] 
Change the fs_passno of nfs to 0

There is a bug that kdump-initrd contains entry requesting nfs dump
filesystem to get filesystemchecked. And there is an erro message said
that nfs need be checked. But there's no fsck for nfs utility, e.g
fsck.nfs like other file system. Whatever fs_passno 0 or 2 are passed,
no fsck is executed at all for nfs mount.But in dracut, set it to be 2
always, so the erro message appear and it should be set to 0.

In the fstab,the sixth variable fs_passno stands for that the device need
checked or not,and dracut set it to "2".To fix this issue, it should
be "0" when the device is nfs.The third variable stands for the type of
the filesystem and we can use it to judge whether the device is nfs.
So when the third variable of fstab contains "nfs", the sixth variable
fs_passno should be set to "0".

Signed-off-by: Chao Fan <cfan@redhat.com>
(cherry picked from commit 3586a7aa770016aeadb23257c27916fd009bec42)

8 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

(cherry picked from commit afcc697cb8c588eef68bb635f790991411209089)

8 years agonetwork: don't use "ifup -m"
Harald Hoyer [Thu, 2 Jul 2015 09:32:08 +0000 (11:32 +0200)] 
network: don't use "ifup -m"

"ifup -m" was thought to be used by humans in the emergency shell.
Using it programatically shows some other flaw in the execution logic.

Also, "ifup -m" was configuring the interface multiple times on "add"
and "change" uevent, because the "$netif.did-setup" test was not
executed.

(cherry picked from commit 7cca5efdcea4f1431331cf7663fc6fb48a365cdf)

8 years agonetwork/dhclient-script.sh: make IPv4 DHCP lease time optionally
Harald Hoyer [Wed, 1 Jul 2015 12:57:15 +0000 (14:57 +0200)] 
network/dhclient-script.sh: make IPv4 DHCP lease time optionally

If bootp is used, no lease time is provided in the packet from the bootp
server.

(cherry picked from commit 0f89ec314b062a410199251db0356a55b4773173)

8 years agonetwork/dhclient-script.sh: add RENEW/REBIND
Harald Hoyer [Wed, 1 Jul 2015 12:53:33 +0000 (14:53 +0200)] 
network/dhclient-script.sh: add RENEW/REBIND

(cherry picked from commit cf627b20d039c527f4de167e38978d4984e4d727)

8 years agoFactor out all the "type -V" commands
Harald Hoyer [Thu, 6 Feb 2014 15:45:20 +0000 (16:45 +0100)] 
Factor out all the "type -V" commands

Add new functions require_binaries() and require_any_binary() to be used
in the check() section of module-setup.sh.

These functions print a warning line telling the user, which binary is
missing for the specific dracut module.

This unifies the way of checking for binaries and makes the life of an
initramfs creator easier, if he wants to find out why a specific dracut
module is not included in the initramfs.

(cherry picked from commit 30e6e809ed8d189cc8374df3c28cfbcab5a299b9)

8 years agodracut-lib.sh:info() output info to stderr
Harald Hoyer [Thu, 2 Jul 2015 13:02:31 +0000 (15:02 +0200)] 
dracut-lib.sh:info() output info to stderr

otherwise it might collide with stdout redirection

(cherry picked from commit 57fb6e67de0cc58b9d188439b0ceb0d0d5dbbd6f)

8 years agocrypt: add drbg kernel module
Harald Hoyer [Thu, 2 Jul 2015 13:00:41 +0000 (15:00 +0200)] 
crypt: add drbg kernel module

8 years agodracut.sh: add devices with x-initrd.mount in /etc/fstab to host_devs
Harald Hoyer [Thu, 2 Jul 2015 12:55:31 +0000 (14:55 +0200)] 
dracut.sh: add devices with x-initrd.mount in /etc/fstab to host_devs

otherwise dracut might not even be able to mount those.

(cherry picked from commit 916559e073a49eedbc7b0c58b399d303fb8c2a05)

9 years agodracut-pre-pivot: call udevadm settle one last time
Harald Hoyer [Tue, 16 Jun 2015 11:28:48 +0000 (13:28 +0200)] 
dracut-pre-pivot: call udevadm settle one last time

Some Hardware needs initialization and killing modprobe or modprobe
scripts would harm the process.

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

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

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

9 years agorearrange fips module ordering due to zlib
Harald Hoyer [Thu, 7 May 2015 12:29:22 +0000 (14:29 +0200)] 
rearrange fips module ordering due to zlib

[    1.220106] alg: pcomp: Failed to load transform for zlib: -2
[    1.221346] alg: pcomp: Failed to load transform for zlib: -2

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

(cherry picked from commit 822a7ae50431998dc359439cd6f5133c9d0e2cfb)

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

(cherry picked from commit 3a04bddeed15c810865aa49a2575bf13e651272d)

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.

(cherry picked from commit 99d4fd6bb791ca8ce07e07e13b58445f3e20894a)

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)