]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
8 years agoMerge branch 'master' of github.com:haraldh/dracut
Harald Hoyer [Mon, 29 Feb 2016 14:07:41 +0000 (15:07 +0100)] 
Merge branch 'master' of github.com:haraldh/dracut

8 years agonetwork/dhclient-script.sh: add classless-static-routes support
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
(cherry picked from commit a48ea27debb926a30810c9f1a42f096494c727e2)

8 years agodocumentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"
Harald Hoyer [Mon, 29 Feb 2016 12:12:02 +0000 (13:12 +0100)] 
documentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"

8 years agoMerge pull request #116 from evverx/fix-ask-cmdline-hostonly=0
Harald Hoyer [Tue, 16 Feb 2016 14:16:04 +0000 (15:16 +0100)] 
Merge pull request #116 from evverx/fix-ask-cmdline-hostonly=0

base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup

8 years agoMerge pull request #115 from evverx/fix-dracut-cmdline-ask-service
Harald Hoyer [Tue, 16 Feb 2016 08:52:27 +0000 (09:52 +0100)] 
Merge pull request #115 from evverx/fix-dracut-cmdline-ask-service

dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask

8 years agobase/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup 116/head
Evgeny Vereshchagin [Mon, 15 Feb 2016 13:47:18 +0000 (13:47 +0000)] 
base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup

How to reproduce:
host# ./dracut.sh -o 'dracut-systemd systemd systemd-initrd' --local -f ./initramfs.img

host# qemu-system-x86_64 -initrd ./initramfs.img \
    -append 'root=/dev/sda1 rd.cmdline=ask rd.hostonly=0' \
    ...

Enter additional kernel command line parameter (end with ctrl-d or .)
> rd.break
> .
...
There is no "Break before switch_root"
...

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
8 years agodracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask 115/head
Evgeny Vereshchagin [Mon, 15 Feb 2016 08:29:40 +0000 (08:29 +0000)] 
dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask

How to reproduce:

host# dracut --kernel-cmdline='rd.cmdline=ask' initramfs.img
host# qemu-system-x86_64 -initrd initramfs.img ... -append root=/dev/sda1 ...
...

qemu-host# journalctl -b | grep dracut-cmdline-ask
...
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Installed new job dracut-cmdline-ask.service/start as 42
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: ConditionKernelCommandLine=rd.cmdline=ask failed.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Starting requested but condition failed. Not starting unit.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Job dracut-cmdline-ask.service/start finished, result=done
...

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
8 years agokernel-modules: join instmods and install all usb/storage
Harald Hoyer [Tue, 26 Jan 2016 13:59:28 +0000 (14:59 +0100)] 
kernel-modules: join instmods and install all usb/storage

8 years agokernel-modules: add usb-storage
Harald Hoyer [Tue, 26 Jan 2016 13:56:05 +0000 (14:56 +0100)] 
kernel-modules: add usb-storage

To save the rdsosreport.txt to a USB stick, the usb-storage module is
needed

8 years agonetwork: if rd.neednet=0 we don't need a bootdev
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

8 years agonetwork: add mtu to list of variables to store in override
Harald Hoyer [Tue, 19 Jan 2016 14:12:39 +0000 (15:12 +0100)] 
network: add mtu to list of variables to store in override

8 years agoTEST-30-ISCSI: some tests have unknown return code
Harald Hoyer [Tue, 19 Jan 2016 13:43:43 +0000 (14:43 +0100)] 
TEST-30-ISCSI: some tests have unknown return code

by design

8 years agoFixed vlan, bonding, bridging, team logic
Harald Hoyer [Tue, 19 Jan 2016 10:34:10 +0000 (11:34 +0100)] 
Fixed vlan, bonding, bridging, team logic

Call ifup for the slaves and assemble afterwards.

8 years agoMerge pull request #111 from wyrmiyu/multipath_fix
Harald Hoyer [Tue, 19 Jan 2016 09:16:13 +0000 (10:16 +0100)] 
Merge pull request #111 from wyrmiyu/multipath_fix

multipath: fix majmin_to_mpath_dev()

8 years agomultipath: fix majmin_to_mpath_dev() 111/head
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

8 years agodracut-functions.sh:fix check_vol_slaves() volume group name stripping
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.

8 years agonetwork/net-lib.sh: correctly set mac address for ip=...:<mtu>:<mac>
Harald Hoyer [Wed, 13 Jan 2016 12:43:38 +0000 (13:43 +0100)] 
network/net-lib.sh: correctly set mac address for ip=...:<mtu>:<mac>

if ip=...:<mtu>:<mac> was specified, macadress was not set

8 years agodracut.sh: fail hard, if we find modules and modules.dep is missing
Harald Hoyer [Wed, 13 Jan 2016 08:32:24 +0000 (09:32 +0100)] 
dracut.sh: fail hard, if we find modules and modules.dep is missing

If modules are present in /lib/modules/<kernelversion> and modules.dep
is empty, depmod was not run most likely.

8 years agodracut.cmdline: remove extra ":" from ip= doc
Harald Hoyer [Wed, 13 Jan 2016 08:17:40 +0000 (09:17 +0100)] 
dracut.cmdline: remove extra ":" from ip= doc

8 years agodracut.sh: restorecon final image file
Harald Hoyer [Fri, 8 Jan 2016 10:37:25 +0000 (11:37 +0100)] 
dracut.sh: restorecon final image file

Instead of "mv" use "cp --reflink=auto" and restorecon the final image

8 years agofcoe: no need to copy lldpad state
Harald Hoyer [Thu, 7 Jan 2016 09:44:31 +0000 (10:44 +0100)] 
fcoe: no need to copy lldpad state

/dev/shm should be available later on by the normal switch root bind mount.

8 years agoMerge pull request #109 from puleglot/fix_dev_unit_name
Harald Hoyer [Thu, 7 Jan 2016 09:13:45 +0000 (10:13 +0100)] 
Merge pull request #109 from puleglot/fix_dev_unit_name

base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"

8 years agonbd: add missing generator
Harald Hoyer [Thu, 7 Jan 2016 08:56:36 +0000 (09:56 +0100)] 
nbd: add missing generator

8 years agobase/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-" 109/head
Alexander Tsoy [Tue, 5 Jan 2016 19:11:57 +0000 (22:11 +0300)] 
base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"

crypt/parse-crypt.sh generate initqueue job which always call
dev_unit_name() with an argument beginning with "-". This results
in the following error:

dracut-initqueue[307]: + systemd-escape -p -cfb4aa43-2f02-4c6b-a313-60ea99288087
dracut-initqueue[307]: systemd-escape: invalid option -- 'c'

8 years agotest/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id
Harald Hoyer [Mon, 14 Dec 2015 14:12:24 +0000 (15:12 +0100)] 
test/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id

8 years agoTEST-16-DMSQUASH: do not use "--" with ldconfig -r
Harald Hoyer [Mon, 14 Dec 2015 12:59:33 +0000 (13:59 +0100)] 
TEST-16-DMSQUASH: do not use "--" with ldconfig -r

8 years agonbd: add systemd generator and use nbd export names instead of port numbers
Harald Hoyer [Mon, 14 Dec 2015 12:10:33 +0000 (13:10 +0100)] 
nbd: add systemd generator and use nbd export names instead of port numbers

Add a systemd generator for root=nbd:.. so that systemd has a correct
sysroot.mount unit.

Use export names instead of port numbers, because port number based
exports are deprecated and were removed.

8 years agonetwork: fix carrier detection
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.

8 years agolivenet/module-setup.sh: only include systemd generator if systemd included
Harald Hoyer [Mon, 14 Dec 2015 10:16:42 +0000 (11:16 +0100)] 
livenet/module-setup.sh: only include systemd generator if systemd included

8 years agosystemd: include machine-info
Harald Hoyer [Mon, 14 Dec 2015 10:16:12 +0000 (11:16 +0100)] 
systemd: include machine-info

8 years agokernel-modules: include all HID driver in hostonly mode
Harald Hoyer [Wed, 9 Dec 2015 13:14:46 +0000 (14:14 +0100)] 
kernel-modules: include all HID driver in hostonly mode

If a kernel is updated in the undocked state and later on docked, some
keyboard modules can be missing.

Thus include all HID drivers.

8 years agodmsquash-live/dmsquash-live-root.sh: SQUASHED can be set earlier
Harald Hoyer [Tue, 1 Dec 2015 07:52:00 +0000 (08:52 +0100)] 
dmsquash-live/dmsquash-live-root.sh: SQUASHED can be set earlier

8b5ee88ff667693b2d8da85a8552ad8f5ab95127 removed the check for SQUASHED,
assuming, that the if clause above was the only place, where SQUASHED is
set.

This patch reverts to the old logic, because SQUASHED can be set
earlier.

8 years agoshutdown: guard against read-only /run
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.

8 years agolivenet/livenet-generator.sh: mode 0755
Harald Hoyer [Fri, 27 Nov 2015 08:44:24 +0000 (09:44 +0100)] 
livenet/livenet-generator.sh: mode 0755

8 years agodmraid/61-dmraid-imsm.rules: add nowatch option for udev
Harald Hoyer [Thu, 26 Nov 2015 16:46:03 +0000 (17:46 +0100)] 
dmraid/61-dmraid-imsm.rules: add nowatch option for udev

udev rereads partitions, if watch is set for disks

8 years agodmsquash-live/dmsquash-live-root.sh: fixed typo
Harald Hoyer [Thu, 26 Nov 2015 14:50:39 +0000 (15:50 +0100)] 
dmsquash-live/dmsquash-live-root.sh: fixed typo

8 years agoNEWS: update for version 044 044
Harald Hoyer [Mon, 23 Nov 2015 10:34:18 +0000 (11:34 +0100)] 
NEWS: update for version 044

8 years agoAUTHORS: update
Harald Hoyer [Wed, 18 Nov 2015 13:43:03 +0000 (14:43 +0100)] 
AUTHORS: update

8 years agodmraid/61-dmraid-imsm.rules: remove double ","
Harald Hoyer [Wed, 25 Nov 2015 13:20:42 +0000 (14:20 +0100)] 
dmraid/61-dmraid-imsm.rules: remove double ","

8 years agolvm: silence errors from "lvm dumpconfig"
Harald Hoyer [Mon, 23 Nov 2015 10:09:47 +0000 (11:09 +0100)] 
lvm: silence errors from "lvm dumpconfig"

if the config option does not exist, we ignore the error anyway

8 years agoman: clarify add_dracutmodules vs dracutmodules
Harald Hoyer [Mon, 23 Nov 2015 09:36:22 +0000 (10:36 +0100)] 
man: clarify add_dracutmodules vs dracutmodules

8 years agoFor rd.hostonly=0 remove all initqueue/finished files also
Harald Hoyer [Fri, 20 Nov 2015 09:21:31 +0000 (10:21 +0100)] 
For rd.hostonly=0 remove all initqueue/finished files also

This helps booting systems with changed configuration

8 years agoMakefile: add efi target
Harald Hoyer [Wed, 18 Nov 2015 13:58:10 +0000 (14:58 +0100)] 
Makefile: add efi target

make an UEFI bootable image

8 years agodracut.sh: only create one TMPDIR
Harald Hoyer [Wed, 18 Nov 2015 13:46:30 +0000 (14:46 +0100)] 
dracut.sh: only create one TMPDIR

use DRACUT_TMPDIR subdirs for everything

8 years agoRevert "systemd: if kdbus is available, include the kernel module"
Harald Hoyer [Wed, 18 Nov 2015 11:46:44 +0000 (12:46 +0100)] 
Revert "systemd: if kdbus is available, include the kernel module"

This reverts commit 90ff5ad67ecab66a8f699c9805729701981ee018.

There will be no kdbus anymore :-/

8 years agoMerge pull request #97 from FGrose/dmsquash-live-root
Harald Hoyer [Mon, 23 Nov 2015 10:07:43 +0000 (11:07 +0100)] 
Merge pull request #97 from FGrose/dmsquash-live-root

dmsquash-live-root:  Persistence without overlay for uncompressed live installations

8 years agoMerge pull request #106 from FGrose/dracut.cmdline
Harald Hoyer [Mon, 23 Nov 2015 09:05:51 +0000 (10:05 +0100)] 
Merge pull request #106 from FGrose/dracut.cmdline

dracut.cmdline:  Update Booting live images section

8 years agodracut.cmdline: Update Booting live images section 106/head
Frederick Grose [Sat, 21 Nov 2015 21:46:18 +0000 (16:46 -0500)] 
dracut.cmdline:  Update Booting live images section

Add descriptions for the rd.live.overlay.readonly,
rd.live.overlay.size, rd.live.overlay.reset,
rd.live.squashimg, and rd.live.overlay=none options.
Mention the Invalid mark on exhausted overlays.
Clarify the rd.writable.fsimg option.
Repunctuate the rd.live.overlay.thin option description.

8 years agodmsquash-live-root: Avoid an overlay for persistent, uncompressed, read-write live... 97/head
Frederick Grose [Fri, 9 Oct 2015 20:56:19 +0000 (16:56 -0400)] 
dmsquash-live-root:  Avoid an overlay for persistent, uncompressed, read-write live installations.

Persistent, uncompressed live installations can avoid overlays with a new rd.live.overlay=none flag.
Non-persistent rd.live.ram boots can also take advantage of persistent home.img filesystems.

8 years agoMerge pull request #105 from antonym/master
Harald Hoyer [Thu, 19 Nov 2015 15:35:29 +0000 (16:35 +0100)] 
Merge pull request #105 from antonym/master

livenet: add livenet-generator

8 years agolivenet: add livenet-generator 105/head
Antony Messerli [Thu, 19 Nov 2015 14:10:03 +0000 (08:10 -0600)] 
livenet: add livenet-generator

Resolves issues where systemd attempts to boot a live URL as an NFS mount.

This patch uses systemd's generator arg[2] to generate an early sysroot.mount
that preempts systemd-fstab-generator.

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

8 years agodracut.sh: for microcode generation, skip gpg files
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

8 years agoTEST-16-DMSQUASH: add code for IO throtteling in qemu
Harald Hoyer [Wed, 18 Nov 2015 09:17:04 +0000 (10:17 +0100)] 
TEST-16-DMSQUASH: add code for IO throtteling in qemu

To test the mediacheck feature, I added commented out code with qemu IO
throtteling.

8 years agodracut.sh: save systemdutildir env
Harald Hoyer [Tue, 17 Nov 2015 08:45:29 +0000 (09:45 +0100)] 
dracut.sh: save systemdutildir env

even, if no systemd is used, we need that variable for systemd-udevd

8 years agoCheck for systemd before installing systemd specific files
Harald Hoyer [Mon, 16 Nov 2015 08:41:26 +0000 (09:41 +0100)] 
Check for systemd before installing systemd specific files

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

8 years agodracut.sh: add back host_modules part
Harald Hoyer [Mon, 16 Nov 2015 08:24:50 +0000 (09:24 +0100)] 
dracut.sh: add back host_modules part

host_modules was removed accidently while remove host_modaliases

8 years agoiscsi/parse-iscsiroot.sh: reload udev rules
Harald Hoyer [Fri, 13 Nov 2015 15:37:48 +0000 (16:37 +0100)] 
iscsi/parse-iscsiroot.sh: reload udev rules

in the DHCP case udev is already running, so reload the rules before
continuing.

8 years agodracut-init.sh: libdir paths need dracut-function.sh
Harald Hoyer [Fri, 13 Nov 2015 13:19:53 +0000 (14:19 +0100)] 
dracut-init.sh: libdir paths need dracut-function.sh

8 years agoCheck rd.zfcp= format in dracut hook:cmdline process stage
Zhiguo Deng [Fri, 16 Oct 2015 02:04:34 +0000 (04:04 +0200)] 
Check rd.zfcp= format in dracut hook:cmdline process stage

When using rd.zfcp= parameter in generic.prm file, wrong format
parameters will prevent the zfcp driver to add the correct SCSI
disk. dracut should die when a wrong rd.zfcp= parameter supplied.

Signed-off-by: Zhiguo Deng <bjzgdeng@linux.vnet.ibm.com>
8 years agodracut.sh: remove the concept of host_modalias
Harald Hoyer [Fri, 13 Nov 2015 12:40:38 +0000 (13:40 +0100)] 
dracut.sh: remove the concept of host_modalias

We can never gather enough information about compiled in modules, so
don't pretend to know and do smart decisions.

8 years agoRevert "Let user specify the action after fail"
dyoung@redhat.com [Mon, 31 Aug 2015 02:43:20 +0000 (10:43 +0800)] 
Revert "Let user specify the action after fail"

This reverts commit 9d787df19674937e8c07bd295b5d282a63829209

action_on_fail is useless thus remove the commits for it one by one.

Signed-off-by: Dave Young <dyoung@redhat.com>
8 years agoRevert "99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck"
dyoung@redhat.com [Mon, 31 Aug 2015 02:43:19 +0000 (10:43 +0800)] 
Revert "99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck"

This reverts commit 679fa7ed3c0f4c827bfc6885d34f56713fe85c1e.

action_on_fail is useless thus remove the commits for it one by one.

Signed-off-by: Dave Young <dyoung@redhat.com>
8 years agoRevert "dracut-emergency.service: do not start for "action_on_fail=continue""
dyoung@redhat.com [Mon, 31 Aug 2015 02:43:18 +0000 (10:43 +0800)] 
Revert "dracut-emergency.service: do not start for "action_on_fail=continue""

This reverts commit b78e6ac2c328c76057b17059a761ab44707f9aa0.

action_on_fail is useless thus remove the commits for it one by one.

Signed-off-by: Dave Young <dyoung@redhat.com>
8 years agoRevert "systemd/emergency.service: do not run for action_on_fail=continue"
dyoung@redhat.com [Mon, 31 Aug 2015 02:43:17 +0000 (10:43 +0800)] 
Revert "systemd/emergency.service: do not run for action_on_fail=continue"

This reverts commit dcae873414ff643e1de790f256e414923e2aef8b.

action_on_fail is useless thus remove the commits for it one by one.

Signed-off-by: Dave Young <dyoung@redhat.com>
8 years agoRevert "rename kernel command line param action_on_fail to rd.action_on_fail"
dyoung@redhat.com [Mon, 31 Aug 2015 02:43:16 +0000 (10:43 +0800)] 
Revert "rename kernel command line param action_on_fail to rd.action_on_fail"

This reverts commit 391d6057908be2fe78f8084eb1b2adc27c781c0b.

action_on_fail is useless thus remove the commits for it one by one.

Signed-off-by: Dave Young <dyoung@redhat.com>
8 years agoRevert "Change the implementation of action_on_fail"
dyoung@redhat.com [Mon, 31 Aug 2015 02:43:15 +0000 (10:43 +0800)] 
Revert "Change the implementation of action_on_fail"

This reverts commit d2765b5175663d094737d6819cc3f3df53e7a4cb.

action_on_fail is useless thus remove the commits for it one by one.

Signed-off-by: Dave Young <dyoung@redhat.com>
8 years agodracut.sh: Support --mount with just mountpoint as parameter
Fabian [Fri, 11 Sep 2015 11:35:57 +0000 (13:35 +0200)] 
dracut.sh: Support --mount with just mountpoint as parameter

Right now the --mount parameter of dracut expects a rather long fstab-like
line. This makes it possible to invoke dracut with e.g. --mount /boot.

8 years agoAdd awk and getopt as dependencies of znetconf
Mei Liu [Tue, 10 Nov 2015 04:34:24 +0000 (12:34 +0800)] 
Add awk and getopt as dependencies of znetconf

znetconf command is part of s390utils-base package. It depends on
awk and getopt.

This patch is used to fix the following error:

dracut:/#
znetconf -c

/usr/sbin/znetconf: line 70: awk: command not found
/usr/sbin/znetconf: line 1138: getopt: command not found

Signed-off-by: Mei Liu <liumbj@linux.vnet.ibm.com>
8 years agoiscsi: only systemctl try-restart iscsid, if systemd is used
Harald Hoyer [Fri, 13 Nov 2015 12:16:10 +0000 (13:16 +0100)] 
iscsi: only systemctl try-restart iscsid, if systemd is used

8 years agoiscsi/iscsiroot.sh: put variables in quotes
Harald Hoyer [Fri, 13 Nov 2015 12:15:05 +0000 (13:15 +0100)] 
iscsi/iscsiroot.sh: put variables in quotes

best practice

8 years agorepro squash
Harald Hoyer [Fri, 13 Nov 2015 12:14:05 +0000 (13:14 +0100)] 
repro squash

8 years agoreduce dracut-functions.sh and add to dracut-init.sh
Harald Hoyer [Fri, 13 Nov 2015 12:06:01 +0000 (13:06 +0100)] 
reduce dracut-functions.sh and add to dracut-init.sh

move all dracut specific functions to dracut-init.sh

8 years agoadd --no-reproducible to turn off reproducible mode
Harald Hoyer [Fri, 13 Nov 2015 10:53:36 +0000 (11:53 +0100)] 
add --no-reproducible to turn off reproducible mode

Also warn about cpio not supporting it and turn it on by default for
fedora.

8 years agodracut-systemd/rootfs-generator.sh: s/RequiresOverridable/Requires
Harald Hoyer [Fri, 13 Nov 2015 09:13:08 +0000 (10:13 +0100)] 
dracut-systemd/rootfs-generator.sh: s/RequiresOverridable/Requires

RequiresOverridable will be deprecated

8 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

(cherry picked from commit e65825117377a8e1e730912aa4c0e786122d892a)

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

(cherry picked from commit d1f7f2ac046c77913d1ca97cf8414d9226ae1286)

8 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

(cherry picked from commit a594b4e357bc63dd22ae04346dbca648e0d62744)

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

(cherry picked from commit f059985b14f80a41f3b8103b67cb8fae0d3fc2fc)

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

(cherry picked from commit 327d765512135721a323822a8b10ac1539bd20c6)

8 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

(cherry picked from commit 7fd112f20e63def6d274ab445b5eb82138348901)

8 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

(cherry picked from commit 13b5c1d09e0e242f1817057501292fe9d7e9ad92)

8 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

(cherry picked from commit 34b551a1c4d4513189807ee2a639c9214d887ddb)

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

(cherry picked from commit fd3eddf06990a617a2f90b0a699947ab3faf2cc2)

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

(cherry picked from commit 17cee31b115a146bca5519b6ac4b422080d764c7)

8 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

(cherry picked from commit 7cddfbbadbc40a4b6d331be25a3c38ad3a52239b)

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

(cherry picked from commit 63e75dc4cdb14e392e38a8973126c9a29b266411)

8 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

(cherry picked from commit 52845b168d0909d72b4c2f0b6511ed18877a31e8)

8 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

(cherry picked from commit b334c83e4abdc1dd87276fa7de4617cd349a5a4f)

8 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

(cherry picked from commit eb87dc91d078ee942ef9c8bbc8e82f4ee4ccf0c6)

8 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

(cherry picked from commit b813b1b3064d4951c5403bb0f96480de9a355d8e)

8 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

(cherry picked from commit 7316d68353cfd6e08f007d10ea3e32fa4d083487)

8 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

(cherry picked from commit a4c47ce0ddc7f7b46c2395709cf83f731f90685b)

8 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

(cherry picked from commit d8572e0bf4d49a8d2ec71726d0fd38d1c73ca3f7)

8 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

(cherry picked from commit 70f3c07846e92d11484a1f7b5cb84aacc47489b4)

8 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

(cherry picked from commit 0852c38b7a2b893e4f9e5894ba09eebc649f047f)

8 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

(cherry picked from commit 7c24815034241e490422691b5f18671c4b9812a9)

8 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

(cherry picked from commit 53537f4d23091457f644ab8b3edf09c2dca4351c)

8 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

(cherry picked from commit b4006781e8a59dc69a0dd3836fce137f08b23001)

8 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

(cherry picked from commit a6befb52eb5eeb87c0c41303fe08e50bd2fde0d3)

8 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

(cherry picked from commit 7f59cbd31817c81fa5aec9f86c33dfe1ce23ec6a)