]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
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)

8 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

(cherry picked from commit 32770ca79a1f6828ca9fdf4b6841e6a6d4e4754a)

8 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

(cherry picked from commit 77f46adf5e5ab1f6da2e459bb55435d4b70842c5)

8 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

(cherry picked from commit d9b5a98532b6823adb35f7c68766f4df9db8a3c9)

8 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

(cherry picked from commit 65977ef1d107c8741d9f2633b8618aa3aee2a49d)

8 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

(cherry picked from commit 80153acc0f8bbb3829575201e2a0ba3da41268a8)

8 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

(cherry picked from commit d6bfa7052a620ebdd37f78655462120871c49ebd)

8 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

(cherry picked from commit 942d60d8afad4eb8b131a33fe9618e3e8392d33f)

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

Resolves: rhbz#1246217
(cherry picked from commit 69c437dd1c3b877f60ced307068e01619124fef4)

8 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

(cherry picked from commit 0c0abf97ccc2306a7089d53a0a1f92e80b2e733c)

8 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

(cherry picked from commit 2eb3b00133d572183ca022b626d200549ce4ffa8)

8 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

(cherry picked from commit 38180271c587f3053710bf38a6cda829d3a7c00f)

8 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

(cherry picked from commit fb2d643a385f1b02fbac6c2782b0026029c6bde7)

8 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

(cherry picked from commit 93a5a3d3ca6738e3f0282c4d3fc8be3f38f150d3)

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

(cherry picked from commit bfe65f913a4bc6bc5fdb7aa75234c229a2ceef8f)

8 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

(cherry picked from commit 836ca3f47eb0b0a4c97ae704b0b9619a00dbfa87)

8 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

(cherry picked from commit f74b0a9f38838dddcf6f56daa9f20fc3e86087ca)

8 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

(cherry picked from commit 89948e58fd0f80def0912c18c503912873aa9c48)

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

(cherry picked from commit 77c0b308259d3b91c536de9a49c0b99427c5924e)

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

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

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

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

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

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

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

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

(cherry picked from commit 34203d03c0d43aa0aed12988d2719455e80eae54)

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

(cherry picked from commit 4031a2fa642c1db897c1340ad2718301bf873fb3)

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

(cherry picked from commit d02f522089863af2a802cef9e63965349bfcc819)

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

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

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

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

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

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

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

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

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

(cherry picked from commit d8ad687e1a4c0343eb076902b11aff2b2b2c4b85)

8 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

(cherry picked from commit 197e4c90b95f2d9e57104d3b462918c335494697)

8 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

(cherry picked from commit 3bd3bbec319eccd28145f77e42b83b479286ff34)

8 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

(cherry picked from commit 35f40b75e444adae3b3c9bb610d635d9c17a753d)

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

(cherry picked from commit d3f61fb5cdaa56053ae8de0203a13722a7fe717a)

8 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

(cherry picked from commit 310574f7eaf68412035eb19855afe4ce2973b784)

8 years agoMakefile: remove output file before creating it
Harald Hoyer [Wed, 11 Nov 2015 11:33:07 +0000 (12:33 +0100)] 
Makefile: remove output file before creating it

8 years agodracut-systemd/module-setup.sh: remove duplicate vconsole wants
Harald Hoyer [Wed, 11 Nov 2015 11:16:13 +0000 (12:16 +0100)] 
dracut-systemd/module-setup.sh: remove duplicate vconsole wants

Adding the dependency on vconsole is already done in the 00systemd
module and the rescue.service has this already in the unit file.

8 years agodracut.sh: quote $outfile on error removal
Harald Hoyer [Wed, 11 Nov 2015 10:49:34 +0000 (11:49 +0100)] 
dracut.sh: quote $outfile on error removal

8 years agodracut.sh: remove "_EARLY" from CONFIG_MICROCODE_* checks
Harald Hoyer [Wed, 11 Nov 2015 10:38:56 +0000 (11:38 +0100)] 
dracut.sh: remove "_EARLY" from CONFIG_MICROCODE_* checks

EARLY is merged in the main driver

8 years agolvm: remove all quirk arguments
Harald Hoyer [Tue, 10 Nov 2015 16:55:50 +0000 (17:55 +0100)] 
lvm: remove all quirk arguments

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

Once lvm2 starts using /run (bug 742554), it should be no longer
necessary to disable file-based locking in the vgchange call in
fedora-storage-init.
Removing '--sysinit' will make it safe to call LVM operations
concurrently from other units.

The --sysinit is a compound option consisting of:

  -> --ignorelockingfailure - not needed anymore, the /run/lock/lvm is
available rw soon in boot process

  -> --ignoremonitoring - not needed since /run is available, this would
require the dm-event.service to be run before
fedora-storage-init.service (and new lvm2-activation.service when
deployed). But that's a one line change - I'll have a look whether it
plays well with other services and if yes, I'll commit the change. N.B.:
This has a consequence that all volumes activated on vgchange -ay will
be monitored at the same time they're activated (which is a plus I
think). The lvm2-monitor will just grab all the other volumes not
activated at the time of the boot's vgchange -ay call. But that's not an
issue (for already monitored volumes, calling vgchange --monitor y will
just be a NOOP).

 -> --poll n - not needed, we can run the polldaemon as the /run is
available and rw (in case there's unfinished merge or mirror sync from
previous system run, the poll-daemon will be triggered at boot now).
Actually, the polldaemon should be triggered as a service like dmeventd
is, not forked off from the LVM command itself, like from vgchange in
this case - we still need to change this - there's a bug open for this
request already (bug #814857). However, we don't have this feature ready
yet so I need to check whether this is OK with the early boot process
with the current state.

8 years agofips: add authenc and authencesn kernel modules
Harald Hoyer [Tue, 10 Nov 2015 16:35:27 +0000 (17:35 +0100)] 
fips: add authenc and authencesn kernel modules

https://bugzilla.redhat.com/show_bug.cgi?id=1115112#c5

8 years agodracut.spec: omit pkg-config from dependencies
Harald Hoyer [Wed, 30 Sep 2015 12:10:20 +0000 (14:10 +0200)] 
dracut.spec: omit pkg-config from dependencies

8 years agoMakefile: fix VERSION and GITVERSION
Harald Hoyer [Wed, 30 Sep 2015 12:10:05 +0000 (14:10 +0200)] 
Makefile: fix VERSION and GITVERSION

8 years agoMerge pull request #91 from dracut-mailing-devs/1437470322-992-1-git-send-email-cfan...
Harald Hoyer [Wed, 11 Nov 2015 10:48:21 +0000 (11:48 +0100)] 
Merge pull request #91 from dracut-mailing-devs/1437470322-992-1-git-send-email-cfan@redhat.com

remove the incomplete .img file

8 years agoMerge pull request #100 from d-hatayama/suppress_broken_pipe
Harald Hoyer [Wed, 11 Nov 2015 10:43:50 +0000 (11:43 +0100)] 
Merge pull request #100 from d-hatayama/suppress_broken_pipe

lsinitrd: Suppress "cat: write error: Broken pipe"

8 years agoMerge pull request #101 from silvio/sfr/pkgfile
Harald Hoyer [Wed, 11 Nov 2015 10:42:29 +0000 (11:42 +0100)] 
Merge pull request #101 from silvio/sfr/pkgfile

Sfr/pkgfile

8 years agoMerge pull request #103 from FGrose/metadata
Harald Hoyer [Wed, 11 Nov 2015 10:36:47 +0000 (11:36 +0100)] 
Merge pull request #103 from FGrose/metadata

dmsquash-live-root: Use non-persistent metadata snapshots.

8 years agoMerge pull request #102 from FGrose/Overflow
Harald Hoyer [Wed, 11 Nov 2015 09:33:33 +0000 (10:33 +0100)] 
Merge pull request #102 from FGrose/Overflow

dmsquash-live-root: Request overflow support for persistent snapshot.

8 years agodmsquash-live-root: Use non-persistent metadata snapshots. 103/head
Frederick Grose [Mon, 9 Nov 2015 18:46:27 +0000 (10:46 -0800)] 
dmsquash-live-root: Use non-persistent metadata snapshots.

Transient snapshots can take advantage of smaller,
   non-persistent metadata structures.
Make the --readonly option explicit rather than inferred
   for the readonly_overlay target.
Assure that the live-base target is on the BASE_LOOPDEV.

8 years agodmsquash-live-root: Request overflow support for persistent snapshot. 102/head
Frederick Grose [Mon, 9 Nov 2015 17:45:07 +0000 (09:45 -0800)] 
dmsquash-live-root: Request overflow support for persistent snapshot.

8 years agodracut-logger: prefix stderr output with "dracut: "
Harald Hoyer [Mon, 9 Nov 2015 14:33:27 +0000 (15:33 +0100)] 
dracut-logger: prefix stderr output with "dracut: "

dnf updates of the kernel execute dracut in %post.
For the user it is not possible to distinguish the dracut output from
other error messages.

8 years agoPKGFILE: prevent out of tree builds 101/head
Silvio Fricke [Sun, 8 Nov 2015 11:53:36 +0000 (12:53 +0100)] 
PKGFILE: prevent out of tree builds

With makepkg is it possible to build sources away from the PKGFILE. The
previous behavior was crash on build if this was setup. With this
patch we prevent this possibility.

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
8 years agoPKGFILE: version is now completely constructed from git
Silvio Fricke [Sun, 8 Nov 2015 11:49:45 +0000 (12:49 +0100)] 
PKGFILE: version is now completely constructed from git

`pkgver` and `pkgrel` now hard coded to 1. The PKGFILE will getting
changed on a `makepkg`-run.

To prevent some version crashes no commit with changes to `pkgver` and
`pkgrel` should be accepted.

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
8 years agoPKGFILE: update to latest makepkg
Silvio Fricke [Sun, 8 Nov 2015 11:48:26 +0000 (12:48 +0100)] 
PKGFILE: update to latest makepkg

makepkg needs now a package-section.

Signed-off-by: Silvio Fricke <silvio.fricke@gmail.com>
8 years agolsinitrd: Suppress "cat: write error: Broken pipe" 100/head
HATAYAMA Daisuke [Wed, 4 Nov 2015 02:31:10 +0000 (11:31 +0900)] 
lsinitrd: Suppress "cat: write error: Broken pipe"

On systemd, SIGPIPE is ignored by default; see man 5 systemd.exec for
IgnoreSIGPIPE=. As a result, lsinitrd.sh under a systemd service
outputs "cat: write error: Broken pipe" in the processing of
determining a compression format of a given initramfs file using cat
command in the write part of a pipeline processing.

For example, this is a log message of kdump.service in RHEL7.1,

    -- Logs begin at Wed 2015-11-04 09:57:33 JST, end at Wed 2015-11-04 09:58:28 JST. --
    Nov 04 09:57:33 localhost systemd[1]: Stopping Crash recovery kernel arming...
    Nov 04 09:57:33 localhost kdumpctl[22545]: kexec: unloaded kdump kernel
    Nov 04 09:57:33 localhost kdumpctl[22545]: Stopping kdump: [OK]
    Nov 04 09:57:33 localhost systemd[1]: Starting Crash recovery kernel arming...
    Nov 04 09:57:36 localhost kdumpctl[22553]: Detected change(s) in the following file(s):
    Nov 04 09:57:36 localhost kdumpctl[22553]: /etc/kdump.conf
    Nov 04 09:57:36 localhost kdumpctl[22553]: Rebuilding /boot/initramfs-3.10.0-229.el7.x86_64kdump.img
    Nov 04 09:57:40 localhost dracut[24914]: Executing: /usr/sbin/dracut --hostonly --hostonly-cmdline -o "plymouth dash resume" -f /boot/initramfs-3.10.0-229.el7.x86_64kdump.img 3.10.0-229.el7.x86_64
    ...<cut>...
    Nov 04 09:58:12 localhost dracut[24914]: *** Creating image file done ***
    Nov 04 09:58:12 localhost dracut[24914]: Image: /boot/initramfs-3.10.0-229.el7.x86_64kdump.img: 18M
    Nov 04 09:58:12 localhost kdumpctl[22553]: cat: write error: Broken pipe
    Nov 04 09:58:12 localhost dracut[24914]: ========================================================================
    Nov 04 09:58:12 localhost dracut[24914]: Version: dracut-033-240.el7
    Nov 04 09:58:12 localhost dracut[24914]:
    Nov 04 09:58:12 localhost dracut[24914]: Arguments: --hostonly --hostonly-cmdline -o 'plymouth dash resume' -f
    Nov 04 09:58:13 localhost dracut[24914]:
    Nov 04 09:58:13 localhost dracut[24914]: dracut modules:
    Nov 04 09:58:13 localhost dracut[24914]: bash

kdump.service builds and loads an initramfs for kdump kernel using
kdumpctl command which uses dracut command and so lsinitrd command,
too.

Although there's no actual harm except for the error message, there
has been several inquiries from customers about this message so
far. We should suppress this message to reduce needless
communications.

To suppress the message, this commit cleans up the processing of
reading the first 6 bytes of a given initramfs file without cat
command.

8 years agodmsquash-live-root: Use non-persistent metadata snapshots for transient overlays.
Frederick Grose [Fri, 9 Oct 2015 20:23:58 +0000 (16:23 -0400)] 
dmsquash-live-root:  Use non-persistent metadata snapshots for transient overlays.

Temporary snapshots can take advantage of smaller, non-persistent metadata structures.
Make the --readonly option explicit rather than inferred for the readonly_overlay target.
Assure that the live-base target is on the BASE_LOOPDEV.

8 years agoMerge pull request #95 from cgwalters/emacs-setq
Harald Hoyer [Thu, 17 Sep 2015 15:54:36 +0000 (17:54 +0200)] 
Merge pull request #95 from cgwalters/emacs-setq

dir-locals: Avoid use of setq which triggers Emacs warning

8 years agodir-locals: Avoid use of setq which triggers Emacs warning 95/head
Colin Walters [Thu, 17 Sep 2015 15:33:40 +0000 (11:33 -0400)] 
dir-locals: Avoid use of setq which triggers Emacs warning

Emacs has a whitelist of "safe" variables, using `setq` overrides
that and causes it to warn when opening any file by default.

Dropping the `setq` makes Emacs do the right thing.

8 years agodracut.8.asc: mention lsinitrd(1) in see also
Harald Hoyer [Wed, 9 Sep 2015 09:30:52 +0000 (11:30 +0200)] 
dracut.8.asc: mention lsinitrd(1) in see also

8 years agoMerge branch 'master' of github.com:haraldh/dracut
Harald Hoyer [Mon, 7 Sep 2015 13:13:04 +0000 (15:13 +0200)] 
Merge branch 'master' of github.com:haraldh/dracut

8 years agoMerge pull request #94 from yuwata/master
Harald Hoyer [Mon, 7 Sep 2015 13:12:49 +0000 (15:12 +0200)] 
Merge pull request #94 from yuwata/master

Fix typos in error module messages and usage of install blob.

8 years agoinstall blob: fix typos in usage. 94/head
yuwata [Mon, 7 Sep 2015 09:00:16 +0000 (18:00 +0900)] 
install blob: fix typos in usage.

8 years agosystemd-networkd: fix typo in error message
yuwata [Mon, 7 Sep 2015 08:58:40 +0000 (17:58 +0900)] 
systemd-networkd: fix typo in error message

8 years agosystemd-initrd: fix typo in error message.
yuwata [Mon, 7 Sep 2015 08:58:00 +0000 (17:58 +0900)] 
systemd-initrd: fix typo in error message.

8 years agodracut-functions.sh: fixed dracutbasedir, when sourced directly
Harald Hoyer [Thu, 3 Sep 2015 10:31:34 +0000 (12:31 +0200)] 
dracut-functions.sh: fixed dracutbasedir, when sourced directly

8 years agoMerge pull request #87 from dracut-mailing-devs/E1ZK3hi-0000SN-Lt@puleglot.ru
Harald Hoyer [Wed, 2 Sep 2015 10:54:43 +0000 (12:54 +0200)] 
Merge pull request #87 from dracut-mailing-devs/E1ZK3hi-0000SN-Lt@puleglot.ru

dracut-initramfs-restore: make mount error nonfatal

8 years agoMerge pull request #90 from ldzhong/fix
Harald Hoyer [Tue, 25 Aug 2015 10:03:16 +0000 (12:03 +0200)] 
Merge pull request #90 from ldzhong/fix

dracut.sh: remove duplicate call of push_host_devs

8 years agodracut.sh: remove duplicate call of push_host_devs 90/head
Lidong Zhong [Mon, 24 Aug 2015 10:27:54 +0000 (18:27 +0800)] 
dracut.sh: remove duplicate call of push_host_devs

There is no way exit between the two places that call push_host_devs

8 years agoMerge pull request #89 from ldzhong/fix
Harald Hoyer [Mon, 24 Aug 2015 10:11:39 +0000 (12:11 +0200)] 
Merge pull request #89 from ldzhong/fix

dracut-functions.sh: remove duplicate declaratio of local variable

8 years agodracut-functions.sh: remove duplicate declaratio of local variable 89/head
Lidong Zhong [Mon, 24 Aug 2015 10:02:10 +0000 (18:02 +0800)] 
dracut-functions.sh: remove duplicate declaratio of local variable

8 years agoMerge pull request #88 from shoop/staticroutegw
Harald Hoyer [Mon, 24 Aug 2015 09:53:01 +0000 (11:53 +0200)] 
Merge pull request #88 from shoop/staticroutegw

The default gateway might need a static route

8 years agoThe default gateway might need a static route 88/head
Stijn Hoop [Sun, 23 Aug 2015 12:45:53 +0000 (14:45 +0200)] 
The default gateway might need a static route

Some hosting providers need a static route set in order to be
able to reach the default gateway. Be sure to retry adding
the default gateway after setting the static routes.

8 years agoTEST-30-ISCSI: test more and set static initiator name
Harald Hoyer [Thu, 13 Aug 2015 09:54:24 +0000 (11:54 +0200)] 
TEST-30-ISCSI: test more and set static initiator name

8 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

8 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

8 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

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

8 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

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

8 years agobase/dracut-lib.sh: forget about the idea of output redirection
Harald Hoyer [Wed, 12 Aug 2015 12:28:45 +0000 (14:28 +0200)] 
base/dracut-lib.sh: forget about the idea of output redirection

It's just not working :-/

8 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

8 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

8 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

8 years agosystemd: add systemd-run and systemd-escape
Harald Hoyer [Wed, 12 Aug 2015 12:24:45 +0000 (14:24 +0200)] 
systemd: add systemd-run and systemd-escape

8 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

8 years agodracut.sh: remove quotes from install_items and install_optional_items
Harald Hoyer [Mon, 10 Aug 2015 12:05:15 +0000 (14:05 +0200)] 
dracut.sh: remove quotes from install_items and install_optional_items

Unfortunately these are lists with whitespaces.

8 years agobase/dracut-lib.sh: Dup stdout and stderr
Harald Hoyer [Mon, 10 Aug 2015 11:40:43 +0000 (13:40 +0200)] 
base/dracut-lib.sh: Dup stdout and stderr

Dup stdout and stderr, so that subshell redirection does not affect
logging.

Also gets rid of systemd printing info() to the console on "quiet".

8 years agoRevert securitfs change
Mimi Zohar [Mon, 27 Apr 2015 22:24:14 +0000 (18:24 -0400)] 
Revert securitfs change

Commit 5e60145 use findmnt with "--source" or "--target" broke
mounting securityfs.  This patch reverts only the securityfs
portion of the patch.

8 years agoDefine new script to load keys on the IMA keyring (update)
Mimi Zohar [Wed, 29 Apr 2015 15:05:25 +0000 (11:05 -0400)] 
Define new script to load keys on the IMA keyring (update)

This patch supports loading keys either on the _ima keyring or, as of
Linux 3.17, on the trusted .ima keyring.  Only certificates signed by
a key on the system keyring can be loaded onto the trusted .ima keyring.

Changelog:
- Update 98integrity/README

8 years agoExtend evm-enable.sh to load the EVM public key
Mimi Zohar [Mon, 27 Apr 2015 22:24:12 +0000 (18:24 -0400)] 
Extend evm-enable.sh to load the EVM public key

Create the _evm keyring and load the EVM public key on it.

8 years agoRemove 98integrity's dependency on selinux
Mimi Zohar [Mon, 27 Apr 2015 22:24:11 +0000 (18:24 -0400)] 
Remove 98integrity's dependency on selinux

Loading the EVM key(s) is not dependent on selinux.  Remove
the dependency.