]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
9 years agowrite-ifcfg: fix creating configuration for VLAN 98/head
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.

9 years agonetwork/ifup.sh: skip empty nameserver values
Harald Hoyer [Fri, 9 Oct 2015 09:35:43 +0000 (11:35 +0200)] 
network/ifup.sh: skip empty nameserver values

9 years agoifcfg/write-ifcfg.sh: don't bind interface, if physical device is set
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.

9 years agobase/dracut-lib.sh:getargs() don't return 1 for empty values
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.

9 years agoifcfg/write-ifcfg.sh: unset vlan
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)

9 years ago90qemu: fixed systemd-detect-virt output parsing
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)

9 years agodracut.sh: fixed typo in microcode generation
Harald Hoyer [Fri, 25 Sep 2015 18:10:20 +0000 (14:10 -0400)] 
dracut.sh: fixed typo in microcode generation

9 years agodracut-functions.sh: avoid tokenizing ldconfig output with 'read'
Lubomir Rintel [Tue, 23 Dec 2014 21:03:10 +0000 (22:03 +0100)] 
dracut-functions.sh: avoid tokenizing ldconfig output with 'read'

The space does not separate the elements reliably, spaces can be
embedded in parenthesized expressions too:

  libgmpxx.so.4 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmpxx.so.4
  libgmp.so.10 (libc6, hwcap: 0x0000000004000000) => /lib/sse2/libgmp.so.10

This results in dracut creating '0x0000000004000000' and '=>'
directories in the initramfs image.

(cherry picked from commit c59779cf9337bc0fc48c7a4d8437f7253f6822c3)

9 years agobase/dracut-lib.sh:info() be more quiet
Harald Hoyer [Fri, 25 Sep 2015 15:07:07 +0000 (11:07 -0400)] 
base/dracut-lib.sh:info() be more quiet

9 years agonetwork:wait_for_ifup() handle "NO-CARRIER" output
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.

9 years agodracut.sh: no microcode, if get_ucode_file returns empty file
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.

9 years agoiscsi/parse-iscsiroot.sh: correct handling if netroot isn't set
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

9 years agoscsi/parse-iscsiroot.sh: call modprobe with "-b"
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

9 years agodracut.sh: do not create microcode, if no firmware is available
Harald Hoyer [Tue, 15 Sep 2015 14:08:25 +0000 (16:08 +0200)] 
dracut.sh: do not create microcode, if no firmware is available

9 years agodracut.sh: add command line option for install_i18_all
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

9 years agoi18n: check for $i18n_install_all == "yes" rather than being set
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)

9 years agoiscsi/iscsiroot.sh: handle iscsi_firmware in online and timeout queue
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.

9 years agonetwork/netroot.sh: better handling of $netroot and dhcp
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)

9 years agoiscsi/iscsiroot.sh: use all_ifaces_setup()
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

9 years agonetwork: add all_ifaces_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.

9 years agonetwork/dhclient-script.sh: fix RENEW
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

9 years agodracut.usage.asc: update man page
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

9 years agonetwork: move "ip=ibft" handling to network module
Harald Hoyer [Thu, 3 Sep 2015 10:41:44 +0000 (12:41 +0200)] 
network: move "ip=ibft" handling to network module

9 years agoiscsi/parse-iscsiroot.sh: only set initiator-name, if not empty
Harald Hoyer [Thu, 3 Sep 2015 10:41:06 +0000 (12:41 +0200)] 
iscsi/parse-iscsiroot.sh: only set initiator-name, if not empty

9 years agolivenet/livenetroot.sh: fixed error condition
Harald Hoyer [Wed, 2 Sep 2015 07:47:35 +0000 (09:47 +0200)] 
livenet/livenetroot.sh: fixed error condition

copy&paste error

9 years agoqemu: add spapr-vscsi kernel module
Harald Hoyer [Tue, 1 Sep 2015 18:27:13 +0000 (20:27 +0200)] 
qemu: add spapr-vscsi kernel module

9 years agonetwork/ifup: do DHCP for BOOTDEV
Harald Hoyer [Tue, 1 Sep 2015 17:05:37 +0000 (19:05 +0200)] 
network/ifup: do DHCP for BOOTDEV

9 years agonetwork/net-lib.sh: fix IPv6 route parsing
Harald Hoyer [Tue, 1 Sep 2015 15:25:34 +0000 (17:25 +0200)] 
network/net-lib.sh: fix IPv6 route parsing

9 years agonetwork/net-lib.sh: fix wait_for_if_up()
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

9 years agonetwork/ifup: fix warning about not bringing interface up
Harald Hoyer [Tue, 1 Sep 2015 15:22:37 +0000 (17:22 +0200)] 
network/ifup: fix warning about not bringing interface up

9 years agocms/cmsifup.sh: do not use ifup -m
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

9 years agomultipath: add hostonly multipath.conf
Harald Hoyer [Tue, 25 Aug 2015 11:49:10 +0000 (13:49 +0200)] 
multipath: add hostonly multipath.conf

Resolves: rhbz#994702

9 years agonetwork/ifup.sh: only use dhcp on unknown interfaces for ip=dhcp
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

9 years agonetwork: also mark interfaces up with their MAC
Harald Hoyer [Tue, 25 Aug 2015 09:30:00 +0000 (11:30 +0200)] 
network: also mark interfaces up with their MAC

9 years agonetwork/ifup.sh: save return value of ifup
Harald Hoyer [Tue, 25 Aug 2015 09:20:30 +0000 (11:20 +0200)] 
network/ifup.sh: save return value of ifup

9 years agoiscsi/parse-iscsiroot.sh: restart iscsid with try-restart
Harald Hoyer [Tue, 25 Aug 2015 09:16:46 +0000 (11:16 +0200)] 
iscsi/parse-iscsiroot.sh: restart iscsid with try-restart

9 years agoiscsi/parse-iscsiroot.sh: handle firmware in online queue
Harald Hoyer [Tue, 25 Aug 2015 09:16:29 +0000 (11:16 +0200)] 
iscsi/parse-iscsiroot.sh: handle firmware in online queue

9 years agoiscsi/parse-iscsiroot.sh: do not modify netroot
Harald Hoyer [Tue, 25 Aug 2015 09:15:59 +0000 (11:15 +0200)] 
iscsi/parse-iscsiroot.sh: do not modify netroot

9 years agoiscsi/iscsiroot.sh: handle firmware in online queue
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

9 years agodracut.spec: raise systemd requirement to >= 219
Harald Hoyer [Tue, 25 Aug 2015 09:13:38 +0000 (11:13 +0200)] 
dracut.spec: raise systemd requirement to >= 219

needs systemd-escape

9 years agoinitqueue: add online queue
Harald Hoyer [Tue, 25 Aug 2015 09:13:23 +0000 (11:13 +0200)] 
initqueue: add online queue

9 years agoTEST-30-ISCSI: add rd.scsi.firmware
Harald Hoyer [Tue, 25 Aug 2015 09:12:59 +0000 (11:12 +0200)] 
TEST-30-ISCSI: add rd.scsi.firmware

9 years agocrypt/module-setup.sh: fixed parsing crypttab with no ending newline
Harald Hoyer [Wed, 19 Aug 2015 14:18:23 +0000 (16:18 +0200)] 
crypt/module-setup.sh: fixed parsing crypttab with no ending newline

9 years agonetwork/ifup.sh:do_static(): error out, if IP is already assigned
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

9 years agonetwork/ifup.sh:do_static(): error out, if interface could not be brought up
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

9 years agoTEST-15-BTRFS: load btrfs module
Harald Hoyer [Tue, 18 Aug 2015 13:26:23 +0000 (15:26 +0200)] 
TEST-15-BTRFS: load btrfs module

9 years agotest/TEST-04-FULL-SYSTEMD/create-root.sh: modprobe btrfs
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

9 years agodmraid: only scan once because of one device
Harald Hoyer [Tue, 18 Aug 2015 13:04:31 +0000 (15:04 +0200)] 
dmraid: only scan once because of one device

9 years agonetwork/dhclient: exit arping immediatly, if we get an answer
Harald Hoyer [Tue, 18 Aug 2015 10:41:12 +0000 (12:41 +0200)] 
network/dhclient: exit arping immediatly, if we get an answer

9 years agonetwork/net-lib.sh:ibft unset gateway or dns, if set to 0.0.0.0
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

9 years agofcoe: cleanup lldpad
Harald Hoyer [Tue, 18 Aug 2015 10:27:32 +0000 (12:27 +0200)] 
fcoe: cleanup lldpad

Resolves: rhbz#1246217

9 years agoudev-rules: install 40-redhat.rules
Harald Hoyer [Tue, 18 Aug 2015 10:25:53 +0000 (12:25 +0200)] 
udev-rules: install 40-redhat.rules

9 years agonetwork/parse-ip-opts.sh: bind enx* interface to the MAC
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

9 years agonetwork/ifup.sh: arping for static IPv4 addresses
Harald Hoyer [Tue, 18 Aug 2015 10:07:41 +0000 (12:07 +0200)] 
network/ifup.sh: arping for static IPv4 addresses

9 years agonetwork/ifup.sh: let dhcp client run in the background
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

9 years agosystemd/dracut-cmdline.sh: print out cmdline in one line
Harald Hoyer [Tue, 18 Aug 2015 09:52:56 +0000 (11:52 +0200)] 
systemd/dracut-cmdline.sh: print out cmdline in one line

9 years agobase/dracut-lib.sh:vinfo/vwarn handle lines without newline
Harald Hoyer [Tue, 18 Aug 2015 09:50:40 +0000 (11:50 +0200)] 
base/dracut-lib.sh:vinfo/vwarn handle lines without newline

9 years agoiscsi: handle timeout case better
Harald Hoyer [Tue, 18 Aug 2015 09:50:15 +0000 (11:50 +0200)] 
iscsi: handle timeout case better

9 years agodracut-logger.sh: log also rest of line without return
Harald Hoyer [Sat, 15 Aug 2015 13:42:51 +0000 (15:42 +0200)] 
dracut-logger.sh: log also rest of line without return

9 years agoTEST-30-ISCSI: fix test to run with new iscsi
Harald Hoyer [Sat, 15 Aug 2015 11:22:44 +0000 (13:22 +0200)] 
TEST-30-ISCSI: fix test to run with new iscsi

9 years agoiscsi/module-setup.sh: iscsid need /var/lib/iscsi
Harald Hoyer [Sat, 15 Aug 2015 11:22:07 +0000 (13:22 +0200)] 
iscsi/module-setup.sh: iscsid need /var/lib/iscsi

9 years agoiscsi/iscsiroot.sh: systemd-run does not understand --no-block
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

9 years agoTEST-30-ISCSI: switch to scsi-target-utils
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)

9 years agoTEST-30-ISCSI/dhcpd.conf: set the LUN
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)

9 years agoiscsi/iscsiroot.sh: handle timeout with all interfaces up
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)

9 years agoiscsi/parse-iscsiroot.sh: use iBFT initiator name
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)

9 years agodracut.cmdline.7.asc: document rd.iscsi.waitnet and rd.iscsi.testroute
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)

9 years agoiscsi: integrate with systemd and improve robustness
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)

9 years agonetwork/net-lib.sh: add is_ip()
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)

9 years agosystemd: add systemd-run and systemd-escape
Harald Hoyer [Thu, 13 Aug 2015 13:24:53 +0000 (15:24 +0200)] 
systemd: add systemd-run and systemd-escape

9 years agonetwork/parse-ip-opts.sh: assume rd.neednet for multiple ip options
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)

9 years agonfs/parse-nfsroot.sh: silence useless warning if netroot is not nfs
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)

9 years agodracut-systemd/dracut-initqueue.sh: be verbose about timeout
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)

10 years agodracut-functions.sh:require_binaries() clarify message
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)

10 years agodracut-functions.sh: degrade info about missing binaries to info
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)

10 years agocrypt: install drbg unconditionally in hostonly mode
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

10 years agolvm: add cache tools for dm-cache usage
Harald Hoyer [Wed, 28 Jan 2015 13:25:09 +0000 (13:25 +0000)] 
lvm: add cache tools for dm-cache usage

(cherry picked from commit 70598ac292bce6e554cf0dc327426a7dbf92c65f)

10 years agoAdd support for ethernet point-to-point connections configured via DHCP
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)

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

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

10 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

10 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

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

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

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

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

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

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

10 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

10 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

10 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

10 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

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

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

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

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

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

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

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

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