]>
git.ipfire.org Git - thirdparty/dracut.git/log
Harald Hoyer [Tue, 1 Mar 2016 11:32:02 +0000 (12:32 +0100)]
test: remove dash module, as it is not available in RHEL
Harald Hoyer [Wed, 25 May 2016 12:49:34 +0000 (14:49 +0200)]
dracut-functions.sh: add str_starts() and str_ends()
Daniel Drake [Thu, 15 Jan 2015 17:27:47 +0000 (11:27 -0600)]
kernel-modules: increase SDHCI driver inclusion
The sdhci-pci module is currently not being included in the initramfs,
even though other sdhci modules are. This breaks boot on systems that
rely on this driver to access the root filesystem.
Instead of looking for modules that use sdhci_pltfm_init, look for
sdhci_add_host. I checked 3.18 kernel sources, and this change
does not remove any of the previously-matched SDHCI drivers.
It should result in the addition of sdhci-pci, sdhci-s3c, sdhci-spear
and sdhci-acpi.
(cherry picked from commit
6dcc5e1158bf502b431491a381a16ca894f99ae2 )
Harald Hoyer [Mon, 30 Nov 2015 10:27:03 +0000 (11:27 +0100)]
shutdown: guard against read-only /run
remount the switch rooted /run writeable again.
(cherry picked from commit
54e09dfb72b557ac8ccd48f5d37089287d272ec7 )
Hannes Reinecke [Thu, 25 Feb 2016 12:58:13 +0000 (20:58 +0800)]
95iscsi: parse output from iscsiadm correctly
Due to some obsure reason the IFS parameter is not set correctly
when evaluating get_ibft_mod(). So change the parsing to not rely
on IFS altogether.
References: bnc#886199
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Hannes Reinecke [Thu, 25 Feb 2016 12:58:12 +0000 (20:58 +0800)]
95iscsi: More empty cmdline fixes
This fixes up some 95iscsi/module-setup.sh which might print out empty
commandline files.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Hannes Reinecke [Thu, 25 Feb 2016 12:58:11 +0000 (20:58 +0800)]
95iscsi: Fixup bnx2i offload booting
bnx2i is using a separate iSCSI offload engine with a separate
MAC address. As a result, the iBFT information is displaying
a MAC address which does not relate to any MAC address from
the network interfaces.
In addition, the iSCSI offload engine works independently on
the NIC, so we do not need to enable the NIC for iSCSI offload
to work.
This patch modifies the automatic iBFT detection to not set
the 'ip=ibft' flag when bnx2i offload is detected.
References: bnc#855747
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Hannes Reinecke [Thu, 25 Feb 2016 12:58:10 +0000 (20:58 +0800)]
95iscsi: Install libgcc_s library
iscsiuio is using pthread, which requires libgcc_s for
pthread_cancel to work.
Without this library iscsiuio will crash with SIGABRT.
References: bnc#881692
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Hannes Reinecke [Thu, 25 Feb 2016 12:58:09 +0000 (20:58 +0800)]
95iscsi: Autodetect iSCSI firmware
Some iSCSI initiator present firmware information in
/sys/firmware/ibft or /sys/firmware/iscsi_bootX
Whenever we detect one of those directories we should assume
that the iSCSI devices should be activated.
Also incorporates SUSE patches:
0049:
95iscsi: Use 'ip=ibft' for ibft autoconfiguration
For iBFT autoconfiguration we should be setting 'ip=ibft'
instead of rd.neednet. This should instruct dracut to only
enable the iBFT interfaces and leave the rest alone.
References: bnc#879038
0054:
95iscsi: update commandline printing
dracut has a separate callout 'cmdline' which should be used
for printing out the generated commandline.
Signed-off-by: Pavel Wieczorkiewicz <pwieczorkiewicz@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Harald Hoyer [Mon, 14 Mar 2016 14:55:03 +0000 (15:55 +0100)]
url-lib/url-lib.sh:nfs_fetch_url(): pass file directory to query if nfs is already mounted
Otherwise the returned mount path includes the file with the directory
https://bugzilla.redhat.com/show_bug.cgi?id=
1302764
Harald Hoyer [Tue, 26 Jan 2016 11:26:03 +0000 (12:26 +0100)]
network: if rd.neednet=0 we don't need a bootdev
otherwise dracut would wait for the bootdev interface to appear and be
setup
(cherry picked from commit
f4f8fb5c10cc8d0047123324197aff25f0a63e04 )
Harald Hoyer [Mon, 29 Feb 2016 13:52:16 +0000 (14:52 +0100)]
network/dhclient-script.sh: add classless-static-routes support
https://bugzilla.redhat.com/show_bug.cgi?id=
1260955
Harald Hoyer [Mon, 29 Feb 2016 12:12:02 +0000 (13:12 +0100)]
documentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"
(cherry picked from commit
fe6455a6e8f4b070ffa8116ef26d423a25d56049 )
Harald Hoyer [Wed, 18 Nov 2015 09:58:54 +0000 (10:58 +0100)]
dracut.sh: for microcode generation, skip gpg files
skip all ".asc" files for the AMD microcode generation
(cherry picked from commit
c44d2252bb4b9e72f2b058f8c185698e88dc8374 )
Harald Hoyer [Mon, 29 Feb 2016 10:55:25 +0000 (11:55 +0100)]
dracut: add "tar" and "dd" requirement
https://bugzilla.redhat.com/show_bug.cgi?id=
1285810
Harald Hoyer [Mon, 29 Feb 2016 10:52:37 +0000 (11:52 +0100)]
systemd: add "wheel" and "adm" to passwd and group
# LANG=C journalctl -b -u systemd-tmpfiles-setup-dev.service | grep
# ACL
Dec 01 13:56:59 localhost.localdomain systemd-tmpfiles[112]: Failed
to parse ACL "d:group:adm:r-x,d:group:wheel:r-x": Invalid argument.
Ignoring
Dec 01 13:56:59 localhost.localdomain systemd-tmpfiles[112]: Failed
to parse ACL "group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring
Dec 01 13:56:59 localhost.localdomain systemd-tmpfiles[112]: Failed
to parse ACL "d:group:adm:r-x,d:group:wheel:r-x": Invalid argument.
Ignoring
Dec 01 13:56:59 localhost.localdomain systemd-tmpfiles[112]: Failed
to parse ACL "group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring
# grep ^[aA] /usr/lib/tmpfiles.d/systemd.conf
a+ /run/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x
A+ /run/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
a+ /var/log/journal/%m - - - - d:group:adm:r-x,d:group:wheel:r-x
A+ /var/log/journal/%m - - - - group:adm:r-x,group:wheel:r-x
https://bugzilla.redhat.com/show_bug.cgi?id=
1287537
Thomas Renninger [Thu, 11 Dec 2014 14:46:13 +0000 (15:46 +0100)]
90lvm: Install dm-snapshot module
bnc#888530
Signed-off-by: Thomas Renninger <trenn@suse.de>
(cherry picked from commit
5c84d51b3f258af9035a4031c6b482103adea4d9 )
Pekka Wallendahl [Mon, 18 Jan 2016 18:28:22 +0000 (20:28 +0200)]
multipath: fix majmin_to_mpath_dev()
* Multipath device names only start with the mpath-prefix if the option
use_userfriendly_names is set true in /etc/multipath.conf and if user
has not set any aliases in the said file. Thus the for-loop should go
through all files in /dev/mapper/, not just ones starting with 'mpath'
* Bash is perfectly capable to extend `/dev/mapper/*` notation without a
need to pass it to an external ls
* Changed the function to use a local variable $_dev instead of the
global $dev, which seemed to be the original intention as the local
_dev was defined but not used
(cherry picked from commit
28058a2e373eb268d9b1cd5b65c2ad607961dad1 )
Harald Hoyer [Mon, 18 Jan 2016 15:59:42 +0000 (16:59 +0100)]
dracut-functions.sh:fix check_vol_slaves() volume group name stripping
commit
466a59984a095f33993cffd5a3bea40826469b03 removed whitespace
stripping from lvm volume group names.
(cherry picked from commit
2fd8588da51a0e43684852dcdabe327aca684a9f )
Harald Hoyer [Mon, 14 Dec 2015 12:10:05 +0000 (13:10 +0100)]
network: fix carrier detection
rename iface_has_link() to iface_has_carrier() to clarify usage
Only assign static "wildcard interface" settings, if the interface has a
carrier.
If the interface name was specified with a name, do not do carrier
checking for static configurations.
(cherry picked from commit
df95b1003c8e7564da73de92403013763eb028fe )
Harald Hoyer [Thu, 12 Nov 2015 10:42:13 +0000 (11:42 +0100)]
iscsi/iscsiroot.sh: better put variables in quotes
first rule for a bash programmer
Harald Hoyer [Tue, 17 Jul 2012 11:05:11 +0000 (13:05 +0200)]
Don't call udevadm control --exit in systemd mode
This partly reverts commit
a43f97c4e35d0d9c7e6e315e11c909e86936e1cc .
(cherry picked from commit
765d8408e9aafa45cd89a039f8b41f85191fd91f )
https://bugzilla.redhat.com/show_bug.cgi?id=
1276983
Harald Hoyer [Wed, 11 Nov 2015 10:44:48 +0000 (11:44 +0100)]
Merge pull request #98 from lnykryn/RHEL-7-vlan
write-ifcfg: fix creating configuration for VLAN
Harald Hoyer [Wed, 11 Nov 2015 10:44:23 +0000 (11:44 +0100)]
Merge pull request #99 from lnykryn/RHEL-7-ibmvscsi
90qemu: also add ibmvscsi on qemu
Lukas Nykryn [Tue, 20 Oct 2015 13:30:12 +0000 (15:30 +0200)]
90qemu: also add ibmvscsi on qemu
Without this module following scenario does not work:
1. Install the guest with virtio-scsi-pci as system disk and no other
data disk.
2. Change the system disk from virtio-scsi to spapr-vscsi.
Fedora dracut team [Mon, 19 Oct 2015 16:27:11 +0000 (18:27 +0200)]
write-ifcfg: fix creating configuration for VLAN
Currently the physdev is unset before it is somehow applied.
Also there is no DEVICE in the output.
Harald Hoyer [Fri, 9 Oct 2015 09:35:43 +0000 (11:35 +0200)]
network/ifup.sh: skip empty nameserver values
Harald Hoyer [Fri, 9 Oct 2015 09:31:28 +0000 (11:31 +0200)]
ifcfg/write-ifcfg.sh: don't bind interface, if physical device is set
If a physical device is defined, we don't need to bind the interface to
the MAC address or something else.
Harald Hoyer [Fri, 9 Oct 2015 09:30:03 +0000 (11:30 +0200)]
base/dracut-lib.sh:getargs() don't return 1 for empty values
getargs() is only used with real values and not booleans.
So, return the values only.
Harald Hoyer [Tue, 21 Apr 2015 08:34:31 +0000 (10:34 +0200)]
ifcfg/write-ifcfg.sh: unset vlan
clear the vlan flag, if a previous interface in the loop
was a vlan interface
(cherry picked from commit
23446ef1e0a6eda79049a655cb1645691b129645 )
Harald Hoyer [Fri, 31 Jul 2015 07:05:51 +0000 (09:05 +0200)]
90qemu: fixed systemd-detect-virt output parsing
redirecting systemd-detect-virt to /dev/null doesn't help with parsing
the output :-/
Also, add "Red Hat" as a vendor.
(cherry picked from commit
4135eea634b20c7f7285d134bd6dfe6b799fe226 )
Harald Hoyer [Fri, 25 Sep 2015 18:10:20 +0000 (14:10 -0400)]
dracut.sh: fixed typo in microcode generation
Lubomir Rintel [Tue, 23 Dec 2014 21:03:10 +0000 (22:03 +0100)]
dracut-functions.sh: avoid tokenizing ldconfig output with 'read'
The space does not separate the elements reliably, spaces can be
embedded in parenthesized expressions too:
libgmpxx.so.4 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmpxx.so.4
libgmp.so.10 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmp.so.10
This results in dracut creating '0x0000000004000000' and '=>'
directories in the initramfs image.
(cherry picked from commit
c59779cf9337bc0fc48c7a4d8437f7253f6822c3 )
Harald Hoyer [Fri, 25 Sep 2015 15:07:07 +0000 (11:07 -0400)]
base/dracut-lib.sh:info() be more quiet
Harald Hoyer [Fri, 25 Sep 2015 14:14:33 +0000 (10:14 -0400)]
network:wait_for_ifup() handle "NO-CARRIER" output
if "NO-CARRIER" is one of the flags, we surely have no link yet.
Harald Hoyer [Thu, 17 Sep 2015 18:03:54 +0000 (20:03 +0200)]
dracut.sh: no microcode, if get_ucode_file returns empty file
check, if get_ucode_file() returned an empty string.
Harald Hoyer [Thu, 17 Sep 2015 13:41:12 +0000 (15:41 +0200)]
iscsi/parse-iscsiroot.sh: correct handling if netroot isn't set
corrects
bfe65f913a4bc6bc5fdb7aa75234c229a2ceef8f
Harald Hoyer [Thu, 17 Sep 2015 10:32:07 +0000 (12:32 +0200)]
scsi/parse-iscsiroot.sh: call modprobe with "-b"
honor, if a module is blacklisted
Harald Hoyer [Tue, 15 Sep 2015 14:08:25 +0000 (16:08 +0200)]
dracut.sh: do not create microcode, if no firmware is available
Harald Hoyer [Tue, 15 Sep 2015 14:04:09 +0000 (16:04 +0200)]
dracut.sh: add command line option for install_i18_all
--no-hostonly-i18n -> install_i18n_all=yes
--hostonly-i18n -> install_i18n_all=no
Harald Hoyer [Thu, 14 Aug 2014 10:56:53 +0000 (12:56 +0200)]
i18n: check for $i18n_install_all == "yes" rather than being set
i18n_install_all="no" does not have the expected effect without this
patch
(cherry picked from commit
ae488efa5e6103ffc1be8b8782f8a1c7a5aa90b4 )
Harald Hoyer [Thu, 10 Sep 2015 11:25:13 +0000 (13:25 +0200)]
iscsi/iscsiroot.sh: handle iscsi_firmware in online and timeout queue
The return code of iscsi_firmware is broken, so set the marker
unconditionally.
Harald Hoyer [Thu, 10 Sep 2015 11:23:32 +0000 (13:23 +0200)]
network/netroot.sh: better handling of $netroot and dhcp
if $netroot is emtpy, get it from cmdline
check cmdline directly for root=dhcp(6) and netroot=dhcp(6)
Harald Hoyer [Thu, 10 Sep 2015 11:21:53 +0000 (13:21 +0200)]
iscsi/iscsiroot.sh: use all_ifaces_setup()
we want the route and gateway setup
Harald Hoyer [Thu, 10 Sep 2015 11:20:18 +0000 (13:20 +0200)]
network: add all_ifaces_setup()
all_ifaces_up() is true, if all interfaces are up.
all_ifaces_setup() is true, if all interfaces are up and the gateways
and nameserver are setup.
Harald Hoyer [Tue, 8 Sep 2015 09:44:13 +0000 (11:44 +0200)]
network/dhclient-script.sh: fix RENEW
Remove check, if interface is already up. It is for RENEW.
new_prefix is apparently new_subnet_mask
Harald Hoyer [Thu, 3 Sep 2015 14:25:23 +0000 (16:25 +0200)]
dracut.usage.asc: update man page
- clarify grub2 config for debugging
- clarify hostonly mode
Harald Hoyer [Thu, 3 Sep 2015 10:41:44 +0000 (12:41 +0200)]
network: move "ip=ibft" handling to network module
Harald Hoyer [Thu, 3 Sep 2015 10:41:06 +0000 (12:41 +0200)]
iscsi/parse-iscsiroot.sh: only set initiator-name, if not empty
Harald Hoyer [Wed, 2 Sep 2015 07:47:35 +0000 (09:47 +0200)]
livenet/livenetroot.sh: fixed error condition
copy&paste error
Harald Hoyer [Tue, 1 Sep 2015 18:27:13 +0000 (20:27 +0200)]
qemu: add spapr-vscsi kernel module
Harald Hoyer [Tue, 1 Sep 2015 17:05:37 +0000 (19:05 +0200)]
network/ifup: do DHCP for BOOTDEV
Harald Hoyer [Tue, 1 Sep 2015 15:25:34 +0000 (17:25 +0200)]
network/net-lib.sh: fix IPv6 route parsing
Harald Hoyer [Tue, 1 Sep 2015 15:22:56 +0000 (17:22 +0200)]
network/net-lib.sh: fix wait_for_if_up()
wait for <*UP*> and not "state UP"
state can be UNKNOWN
Harald Hoyer [Tue, 1 Sep 2015 15:22:37 +0000 (17:22 +0200)]
network/ifup: fix warning about not bringing interface up
Harald Hoyer [Tue, 1 Sep 2015 15:21:53 +0000 (17:21 +0200)]
cms/cmsifup.sh: do not use ifup -m
we don't want to bring the interface up several times
Harald Hoyer [Tue, 25 Aug 2015 11:49:10 +0000 (13:49 +0200)]
multipath: add hostonly multipath.conf
Resolves: rhbz#994702
Harald Hoyer [Tue, 25 Aug 2015 09:37:16 +0000 (11:37 +0200)]
network/ifup.sh: only use dhcp on unknown interfaces for ip=dhcp
Harald Hoyer [Tue, 25 Aug 2015 09:30:00 +0000 (11:30 +0200)]
network: also mark interfaces up with their MAC
Harald Hoyer [Tue, 25 Aug 2015 09:20:30 +0000 (11:20 +0200)]
network/ifup.sh: save return value of ifup
Harald Hoyer [Tue, 25 Aug 2015 09:16:46 +0000 (11:16 +0200)]
iscsi/parse-iscsiroot.sh: restart iscsid with try-restart
Harald Hoyer [Tue, 25 Aug 2015 09:16:29 +0000 (11:16 +0200)]
iscsi/parse-iscsiroot.sh: handle firmware in online queue
Harald Hoyer [Tue, 25 Aug 2015 09:15:59 +0000 (11:15 +0200)]
iscsi/parse-iscsiroot.sh: do not modify netroot
Harald Hoyer [Tue, 25 Aug 2015 09:14:38 +0000 (11:14 +0200)]
iscsi/iscsiroot.sh: handle firmware in online queue
otherwise it does not get called, if no netroot is set
Harald Hoyer [Tue, 25 Aug 2015 09:13:38 +0000 (11:13 +0200)]
dracut.spec: raise systemd requirement to >= 219
needs systemd-escape
Harald Hoyer [Tue, 25 Aug 2015 09:13:23 +0000 (11:13 +0200)]
initqueue: add online queue
Harald Hoyer [Tue, 25 Aug 2015 09:12:59 +0000 (11:12 +0200)]
TEST-30-ISCSI: add rd.scsi.firmware
Harald Hoyer [Wed, 19 Aug 2015 14:18:23 +0000 (16:18 +0200)]
crypt/module-setup.sh: fixed parsing crypttab with no ending newline
Harald Hoyer [Wed, 19 Aug 2015 12:00:28 +0000 (14:00 +0200)]
network/ifup.sh:do_static(): error out, if IP is already assigned
Harald Hoyer [Wed, 19 Aug 2015 11:59:40 +0000 (13:59 +0200)]
network/ifup.sh:do_static(): error out, if interface could not be brought up
Harald Hoyer [Tue, 18 Aug 2015 13:26:23 +0000 (15:26 +0200)]
TEST-15-BTRFS: load btrfs module
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 )