]>
git.ipfire.org Git - thirdparty/dracut.git/log
Harald Hoyer [Tue, 18 Aug 2015 13:05:11 +0000 (15:05 +0200)]
test/TEST-04-FULL-SYSTEMD/create-root.sh: modprobe btrfs
why so ever... it used to load automatically
Harald Hoyer [Tue, 18 Aug 2015 13:04:31 +0000 (15:04 +0200)]
dmraid: only scan once because of one device
Harald Hoyer [Tue, 18 Aug 2015 10:41:12 +0000 (12:41 +0200)]
network/dhclient: exit arping immediatly, if we get an answer
Harald Hoyer [Tue, 18 Aug 2015 10:40:01 +0000 (12:40 +0200)]
network/net-lib.sh:ibft unset gateway or dns, if set to 0.0.0.0
Harald Hoyer [Tue, 18 Aug 2015 10:27:32 +0000 (12:27 +0200)]
fcoe: cleanup lldpad
Resolves: rhbz#
1246217
Harald Hoyer [Tue, 18 Aug 2015 10:25:53 +0000 (12:25 +0200)]
udev-rules: install 40-redhat.rules
Harald Hoyer [Tue, 18 Aug 2015 10:13:55 +0000 (12:13 +0200)]
network/parse-ip-opts.sh: bind enx* interface to the MAC
do it automatically for the persistent naming scheme
Harald Hoyer [Tue, 18 Aug 2015 10:07:41 +0000 (12:07 +0200)]
network/ifup.sh: arping for static IPv4 addresses
Harald Hoyer [Tue, 18 Aug 2015 09:53:31 +0000 (11:53 +0200)]
network/ifup.sh: let dhcp client run in the background
we need to renew the lease
Harald Hoyer [Tue, 18 Aug 2015 09:52:56 +0000 (11:52 +0200)]
systemd/dracut-cmdline.sh: print out cmdline in one line
Harald Hoyer [Tue, 18 Aug 2015 09:50:40 +0000 (11:50 +0200)]
base/dracut-lib.sh:vinfo/vwarn handle lines without newline
Harald Hoyer [Tue, 18 Aug 2015 09:50:15 +0000 (11:50 +0200)]
iscsi: handle timeout case better
Harald Hoyer [Sat, 15 Aug 2015 13:42:51 +0000 (15:42 +0200)]
dracut-logger.sh: log also rest of line without return
Harald Hoyer [Sat, 15 Aug 2015 11:22:44 +0000 (13:22 +0200)]
TEST-30-ISCSI: fix test to run with new iscsi
Harald Hoyer [Sat, 15 Aug 2015 11:22:07 +0000 (13:22 +0200)]
iscsi/module-setup.sh: iscsid need /var/lib/iscsi
Harald Hoyer [Sat, 15 Aug 2015 11:21:29 +0000 (13:21 +0200)]
iscsi/iscsiroot.sh: systemd-run does not understand --no-block
not yet on RHEL-7
Harald Hoyer [Wed, 12 Aug 2015 12:42:03 +0000 (14:42 +0200)]
TEST-30-ISCSI: switch to scsi-target-utils
netbsd-iscsi is not available on RHEL
Beef up the testsuite to use the two targets over different
interfaces.
Test the new iSCSI parameters rd.iscsi.waitnet and rd.iscsi.testroute.
(cherry picked from commit
c22c43f81a5f15c8759e6aa69773d0e9010c4741 )
Harald Hoyer [Wed, 12 Aug 2015 12:40:42 +0000 (14:40 +0200)]
TEST-30-ISCSI/dhcpd.conf: set the LUN
set the LUN, so the udev rule to mount the disk matches
(cherry picked from commit
52b91b66980d0de18a52c6c1c5334364b115fee2 )
Harald Hoyer [Thu, 13 Aug 2015 09:53:21 +0000 (11:53 +0200)]
iscsi/iscsiroot.sh: handle timeout with all interfaces up
restart iscsid, because it may disbehaved
(cherry picked from commit
6802cf23499b05544079b26a39e339bb3476d38d )
Harald Hoyer [Wed, 12 Aug 2015 13:14:11 +0000 (15:14 +0200)]
iscsi/parse-iscsiroot.sh: use iBFT initiator name
(cherry picked from commit
feb8dc685dca1229c517de9ec9854367b8c49524 )
Harald Hoyer [Wed, 12 Aug 2015 13:11:17 +0000 (15:11 +0200)]
dracut.cmdline.7.asc: document rd.iscsi.waitnet and rd.iscsi.testroute
(cherry picked from commit
69171aa8fa4bdd196709318582d73076677bd16c )
Harald Hoyer [Wed, 12 Aug 2015 12:33:49 +0000 (14:33 +0200)]
iscsi: integrate with systemd and improve robustness
parse-cmdline sets up an initial initiator-name to let iscsid start.
iscsid is started before doing any iscsistart business.
iscsistart is done with systemd-run asynchrone to do things in
paralllel. Also restarted for every new interface which shows up.
If rd.iscsi.waitnet (default) is set, iscsistart is done only
after all interfaces are up.
If not all interfaces are up and rd.iscsi.testroute (default) is set,
the route to a iscsi target IP is checked and skipped, if there is none.
If all things fail, we issue a "dummy" interface iscsiroot to retry
everything in the initqueue/timeout.
(cherry picked from commit
d94050ddaea8343d8adb8f151c8f4cad591d29d9 )
Harald Hoyer [Wed, 12 Aug 2015 12:24:05 +0000 (14:24 +0200)]
network/net-lib.sh: add is_ip()
add function to test if string is a valid IP
(cherry picked from commit
01b23b6900eabefbfd1f589b9f12c8ff38c5afc0 )
Harald Hoyer [Thu, 13 Aug 2015 13:24:53 +0000 (15:24 +0200)]
systemd: add systemd-run and systemd-escape
Harald Hoyer [Wed, 12 Aug 2015 12:25:23 +0000 (14:25 +0200)]
network/parse-ip-opts.sh: assume rd.neednet for multiple ip options
set rd.neednet on the kernel cmdline to disable this behaviour
(cherry picked from commit
4e9ba952bfa607ac47bfe3cf4943ae3386da22bc )
Harald Hoyer [Wed, 12 Aug 2015 12:27:01 +0000 (14:27 +0200)]
nfs/parse-nfsroot.sh: silence useless warning if netroot is not nfs
(cherry picked from commit
50e86bf02be003f3de6214f8012e62edde0085fc )
Harald Hoyer [Wed, 12 Aug 2015 12:27:39 +0000 (14:27 +0200)]
dracut-systemd/dracut-initqueue.sh: be verbose about timeout
Issue a warning, if timeout scripts are executed
(cherry picked from commit
8ba684be1c04976204d2b671ab90cb27791f467b )
Harald Hoyer [Tue, 20 May 2014 11:23:43 +0000 (13:23 +0200)]
dracut-functions.sh:require_binaries() clarify message
The info message written by require_binaries() was a bit frighten to
users. So just be a little bit more verbose.
If you have ideas on how to improve the message for these "soft"
dependency modules, please submit patches.
(cherry picked from commit
0fa5dbedc5b222435f51f7460a81232ee120c4e1 )
Harald Hoyer [Wed, 5 Mar 2014 11:23:49 +0000 (12:23 +0100)]
dracut-functions.sh: degrade info about missing binaries to info
(cherry picked from commit
83a3cba777efb71be6c368a65e2ed5794395168e )
Harald Hoyer [Thu, 9 Jul 2015 14:14:50 +0000 (16:14 +0200)]
crypt: install drbg unconditionally in hostonly mode
older kernels had the drbg kernel module and didn't need it
Harald Hoyer [Wed, 28 Jan 2015 13:25:09 +0000 (13:25 +0000)]
lvm: add cache tools for dm-cache usage
(cherry picked from commit
70598ac292bce6e554cf0dc327426a7dbf92c65f )
Gerd von Egidy [Thu, 5 Mar 2015 11:07:57 +0000 (12:07 +0100)]
Add support for ethernet point-to-point connections configured via DHCP
When current dracut receives an ip with netmask of 255.255.255.255 via DHCP,
setting the also supplied default gateway fails (because it is obviously not
within the netmask).
The setup with a netmask of /32 is quite common in colocation datacenters
where you don't want the machines of two different customers to directly talk
to each other. At least two of the biggest colocation providers in Germany
(1&1 and Strato) do it that way. NetworkManager supports this kind of setup
and the dhclient-scripts of several distributions too.
In this patch I have implemented a simple approach very similar to what is
found in Debian. The dhclient-script from Fedora uses a more sophisticated
approach, but that relies on the ipcalc utility which would introduce a
dependency on Fedora-initscripts for dracut.
Signed-off-by: Gerd von Egidy <gerd.von.egidy@intra2net.com>
(cherry picked from commit
99ccbc30dff9fa51dd3187dc10f8f632e5e54e4b )
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 )
Harald Hoyer [Fri, 3 Jul 2015 12:35:25 +0000 (14:35 +0200)]
lsinitrd.sh: ignore "cat: write error: Broken pipe"
Harald Hoyer [Fri, 3 Jul 2015 12:28:55 +0000 (14:28 +0200)]
man page: changed grub.conf to grub2.cfg
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
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 )
Radek Vykydal [Tue, 13 Jan 2015 14:14:10 +0000 (15:14 +0100)]
Add rd.live.overlay.size option
(cherry picked from commit
18423f7951de7b9cb4007438b58b6067aa6f2e93 )
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 )
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 )
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 )
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 )
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
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
Chris Leech [Fri, 3 Jul 2015 11:44:16 +0000 (13:44 +0200)]
fcoe: EDD parsing patch for i40e
Chris Leech [Fri, 3 Jul 2015 11:40:12 +0000 (13:40 +0200)]
fcoe: start with fcoemon instead of fipvlan
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.
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
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 )
Harald Hoyer [Thu, 2 Jul 2015 13:00:41 +0000 (15:00 +0200)]
crypt: add drbg kernel module
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 )
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.
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
Harald Hoyer [Thu, 7 May 2015 12:42:10 +0000 (14:42 +0200)]
network:dhcp:wait_for_ipv6_dad() in PREINIT6
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
Harald Hoyer [Tue, 28 Apr 2015 08:46:33 +0000 (10:46 +0200)]
fips: add some s390 kernel modules
(cherry picked from commit
822a7ae50431998dc359439cd6f5133c9d0e2cfb )
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 )
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 )
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 )
Harald Hoyer [Thu, 19 Feb 2015 09:45:35 +0000 (10:45 +0100)]
fips: add drbg kernel module
(cherry picked from commit
7e9341434fca7606d11ffce99bda61a4ccb9ef10 )
Harald Hoyer [Wed, 21 Jan 2015 12:39:28 +0000 (13:39 +0100)]
network:ifup source team info if present
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 )
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 )
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.
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 )
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
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 )
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 )
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 )
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 )
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 )
Harald Hoyer [Fri, 9 Jan 2015 13:53:42 +0000 (14:53 +0100)]
fips: remove c&p "and"
(cherry picked from commit
40899490330574487e7e3ea2c448a521b36bb40a )
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 )
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 )
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 )
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.
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 )
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 )
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 )
Harald Hoyer [Fri, 12 Sep 2014 07:57:13 +0000 (09:57 +0200)]
cms/cmssetup.sh: fixed indention
(cherry picked from commit
d68163551226d302677e358e721560d8d651a30f )
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 )
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 )
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 )
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 )
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
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