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

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

8 years agodracut.sh: simplify modalias reading
Harald Hoyer [Thu, 30 Jul 2015 10:11:42 +0000 (12:11 +0200)] 
dracut.sh: simplify modalias reading

8 years agodracut-initramfs-restore: make mount error nonfatal 87/head
Alexander Tsoy [Tue, 28 Jul 2015 11:55:59 +0000 (14:55 +0300)] 
dracut-initramfs-restore: make mount error nonfatal

Script enables errexit option (set -e). So if /boot is not a mount point
or is already mounted, then script dies after unsuccessful mount
command. Fix this by always returning successful result.

8 years agoqemu: add spapr-vscsi kernel module
Harald Hoyer [Tue, 28 Jul 2015 09:55:04 +0000 (11:55 +0200)] 
qemu: add spapr-vscsi kernel module

8 years agoMerge pull request #85 from Quarky9/master
Harald Hoyer [Mon, 27 Jul 2015 11:40:53 +0000 (13:40 +0200)] 
Merge pull request #85 from Quarky9/master

40network/net-lib.sh: get_ip() Add missing echo to output the result

8 years agocrypt: s/allow-discards/discard for crypttab
Harald Hoyer [Mon, 27 Jul 2015 11:30:22 +0000 (13:30 +0200)] 
crypt: s/allow-discards/discard for crypttab

actually the option in crypttab is named "discard" and not
"allow-discards"

https://bugzilla.suse.com/show_bug.cgi?id=932972

8 years agoAdd missing echo to output the result. 84/head 85/head
Stefan Reimer [Sat, 25 Jul 2015 01:17:04 +0000 (01:17 +0000)] 
Add missing echo to output the result.

Only place this function is currently called seems from line 28 in modules.d/95nfs/nfs-lib.sh. Bug fix.

8 years agoCleanup compressor handling
Harald Hoyer [Wed, 22 Jul 2015 09:34:08 +0000 (11:34 +0200)] 
Cleanup compressor handling

If no compressor is specified, try to find a suitable one.

Check if kernel modules can be uncompressed.

8 years agodmsquash-generator.sh: increase timeout for checkisomd5
Harald Hoyer [Sat, 18 Jul 2015 11:02:25 +0000 (13:02 +0200)] 
dmsquash-generator.sh: increase timeout for checkisomd5

if the checkisomd5 takes longer than 3 minutes, the device timeout for
/dev/mapper/live-rw cancels the boot process.

8 years agoMerge pull request #81 from floppym/printf2
Harald Hoyer [Thu, 16 Jul 2015 10:02:48 +0000 (12:02 +0200)] 
Merge pull request #81 from floppym/printf2

Replace echo -n with printf in code with a /bin/sh shebang

8 years agouse mktemp "-p" instead of "--tmpdir" for busybox
Harald Hoyer [Tue, 14 Jul 2015 08:11:59 +0000 (10:11 +0200)] 
use mktemp "-p" instead of "--tmpdir" for busybox

8 years agodracut.spec: add dracut-init.sh
Harald Hoyer [Fri, 10 Jul 2015 09:21:51 +0000 (11:21 +0200)] 
dracut.spec: add dracut-init.sh

8 years agosyncheck: Look for 'echo -n' usage in modules 81/head
Mike Gilbert [Tue, 14 Jul 2015 15:12:16 +0000 (11:12 -0400)] 
syncheck: Look for 'echo -n' usage in modules

8 years agoReplace echo -n with printf in code with a /bin/sh shebang
Mike Gilbert [Wed, 15 Jul 2015 02:22:14 +0000 (22:22 -0400)] 
Replace echo -n with printf in code with a /bin/sh shebang

POSIX does not mandate that echo support the -n parameter.
printf has more well-defined behavior.

8 years agodracut-systemd/dracut-initqueue: only start service if really needed
Harald Hoyer [Mon, 13 Jul 2015 08:51:47 +0000 (10:51 +0200)] 
dracut-systemd/dracut-initqueue: only start service if really needed

Only start the dracut-initqueue.service, if the dracut_need_initqueue
command was issued on creation or later on set.

8 years agocrypt: skip crypttab entries with the same device
Harald Hoyer [Mon, 13 Jul 2015 08:39:07 +0000 (10:39 +0200)] 
crypt: skip crypttab entries with the same device

It was only checked, if the name of the crypttab entry matched.
This patch adds checking, if the device matches.

8 years agoTODO: update
Harald Hoyer [Mon, 13 Jul 2015 08:38:16 +0000 (10:38 +0200)] 
TODO: update

8 years agonetwork: add rd.peerdns=0 parameter
Harald Hoyer [Mon, 13 Jul 2015 08:14:15 +0000 (10:14 +0200)] 
network: add rd.peerdns=0 parameter

Add rd.peerdns=0 parameter to disable DHCP nameserver setting

8 years agodracut.sh: early check for bash version
Harald Hoyer [Thu, 9 Jul 2015 17:44:30 +0000 (19:44 +0200)] 
dracut.sh: early check for bash version

8 years agodracut.sh: remember $0 for --regenerate-all
Harald Hoyer [Thu, 9 Jul 2015 16:22:15 +0000 (18:22 +0200)] 
dracut.sh: remember $0 for --regenerate-all

8 years agodracut.sh: reduce code
Harald Hoyer [Thu, 9 Jul 2015 16:02:44 +0000 (18:02 +0200)] 
dracut.sh: reduce code

8 years agodracut-functions.sh: simplify some for loops
Harald Hoyer [Thu, 9 Jul 2015 13:34:47 +0000 (15:34 +0200)] 
dracut-functions.sh: simplify some for loops

continue early, if condition is not met

8 years agoguard ${arrays[@]} with ""
Harald Hoyer [Thu, 9 Jul 2015 13:27:44 +0000 (15:27 +0200)] 
guard ${arrays[@]} with ""

8 years agodracut.sh: remove pop()
Harald Hoyer [Thu, 9 Jul 2015 12:33:24 +0000 (14:33 +0200)] 
dracut.sh: remove pop()

8 years agodracut.conf: remove example parameters
Harald Hoyer [Thu, 9 Jul 2015 12:31:26 +0000 (14:31 +0200)] 
dracut.conf: remove example parameters

8 years agodracut.sh: remove push()
Harald Hoyer [Thu, 9 Jul 2015 12:13:44 +0000 (14:13 +0200)] 
dracut.sh: remove push()

can be done with var+=(val)

8 years agoAdd all btrfs devices
Harald Hoyer [Thu, 9 Jul 2015 11:18:13 +0000 (13:18 +0200)] 
Add all btrfs devices

We have to find them with "btrfs usage", which is cumbersome.

8 years agonetwork/dhclient-script.sh: remove bashism
Harald Hoyer [Wed, 8 Jul 2015 06:49:02 +0000 (08:49 +0200)] 
network/dhclient-script.sh: remove bashism

8 years agoTEST-50-MULTINIC/test.sh: correctly call ldconfig
Harald Hoyer [Tue, 7 Jul 2015 13:34:30 +0000 (15:34 +0200)] 
TEST-50-MULTINIC/test.sh: correctly call ldconfig

8 years agoTEST-14-IMSM: remove "rd.auto"
Harald Hoyer [Tue, 7 Jul 2015 12:31:16 +0000 (14:31 +0200)] 
TEST-14-IMSM: remove "rd.auto"

otherwise rd.auto auto assembles the device

8 years agoTEST-04-FULL-SYSTEMD: fixup loadkeys keymap loading
Harald Hoyer [Tue, 7 Jul 2015 12:29:22 +0000 (14:29 +0200)] 
TEST-04-FULL-SYSTEMD: fixup loadkeys keymap loading

8 years agodracut-pre-mount.service should run before systemd-fsck-root.service
Harald Hoyer [Tue, 7 Jul 2015 11:45:19 +0000 (13:45 +0200)] 
dracut-pre-mount.service should run before systemd-fsck-root.service

8 years agoensure pre-mount (and resume) run before root fsck
Andrei Borzenkov [Fri, 26 Jun 2015 14:55:56 +0000 (16:55 +0200)] 
ensure pre-mount (and resume) run before root fsck

References:
https://bugzilla.suse.com/show_bug.cgi?id=906592
Signed-off-by: Thomas Renninger <trenn@suse.de>
8 years agoUse the uncompressed kernel file on arm and aarch to detect kernel version
Thomas Renninger [Fri, 26 Jun 2015 14:55:54 +0000 (16:55 +0200)] 
Use the uncompressed kernel file on arm and aarch to detect kernel version

This is due to file cannot read out the kernel version on these.

Many thanks to Alexander Graf finding this in old SUSE mkinitrd code.
Converted by Thomas Renninger.

Signed-off-by: Thomas Renninger <trenn@suse.de>
https://bugzilla.suse.com/show_bug.cgi?id=908454
Signed-off-by: Thomas Renninger <trenn@suse.de>
8 years agomkinitrd-suse.sh: Bail out with exit 1 if initrd cannot be generated
Thomas Renninger [Fri, 26 Jun 2015 14:55:53 +0000 (16:55 +0200)] 
mkinitrd-suse.sh: Bail out with exit 1 if initrd cannot be generated

Signed-off-by: Thomas Renninger <trenn@suse.de>
8 years agoReset IFS variable
Hannes Reinecke [Fri, 26 Jun 2015 14:55:52 +0000 (16:55 +0200)] 
Reset IFS variable

Setting and unsetting the IFS variable is tricky. To be on the
safe side we should always reset the IFS variable to its original
value after parsing.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
8 years agoskipcpio/skipcpio.c: linux kernel only accepts "070701" signature
Harald Hoyer [Tue, 7 Jul 2015 11:26:38 +0000 (13:26 +0200)] 
skipcpio/skipcpio.c: linux kernel only accepts "070701" signature

don't bother with other signatures

8 years agodmsquash-live/dmsquash-live-root.sh: fixup checkisomd5 for systemd
Harald Hoyer [Tue, 7 Jul 2015 11:25:56 +0000 (13:25 +0200)] 
dmsquash-live/dmsquash-live-root.sh: fixup checkisomd5 for systemd

systemd does not like a leading "-" for unit template filenames anymore.

8 years agoMerge pull request #78 from dracut-mailing-devs/20150706073126.GC22559@dhcp-128-51...
Harald Hoyer [Tue, 7 Jul 2015 11:16:27 +0000 (13:16 +0200)] 
Merge pull request #78 from dracut-mailing-devs/20150706073126.GC22559@dhcp-128-51.nay.redhat.com

90multipath: add hostonly multipath.conf in case hostonly mode

8 years agoMerge pull request #77 from dracut-mailing-devs/1435792513-2222-1-git-send-email...
Harald Hoyer [Tue, 7 Jul 2015 11:15:34 +0000 (13:15 +0200)] 
Merge pull request #77 from dracut-mailing-devs/1435792513-2222-1-git-send-email-crrodriguez@opensuse.org

systemd: if kdbus is available, include the kernel module

8 years ago90multipath: add hostonly multipath.conf in case hostonly mode 78/head
Dave Young [Mon, 6 Jul 2015 07:31:26 +0000 (15:31 +0800)] 
90multipath: add hostonly multipath.conf in case hostonly mode

For large machine, suppose there's a lot of multipath devices, multipath layer
will use a lot of memory. For kdump kernel memory is very limited thus it causes
oom. To avoid oom, we only add necessary multipath devices in kdump kernel
multipath.conf.

This is done by use mpathconf --allow, a new option which is like whitelist.

Signed-off-by: Dave Young <dyoung@redhat.com>
8 years agonetwork/dhclient-script.sh: fixup lease time
Harald Hoyer [Thu, 2 Jul 2015 17:48:25 +0000 (19:48 +0200)] 
network/dhclient-script.sh: fixup lease time

8 years agosplitup dracut-init.sh from dracut-functions.sh
Harald Hoyer [Thu, 2 Jul 2015 13:40:13 +0000 (15:40 +0200)] 
splitup dracut-init.sh from dracut-functions.sh

other tools want to source dracut-functions.sh without any mkdir side
effects.

8 years agonfs/nfs-lib.sh: add anaconda_nfsv6_to_var()
Harald Hoyer [Thu, 2 Jul 2015 13:21:35 +0000 (15:21 +0200)] 
nfs/nfs-lib.sh: add anaconda_nfsv6_to_var()

add "nfs:[[2001:0db8:85a3:08d3:1319:8a2e:0370:7344]]/path" style parsing

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

8 years agodracut-lib.sh:info() output info to stderr
Harald Hoyer [Thu, 2 Jul 2015 13:02:31 +0000 (15:02 +0200)] 
dracut-lib.sh:info() output info to stderr

otherwise it might collide with stdout redirection

8 years agodracut.sh: add devices with x-initrd.mount in /etc/fstab to host_devs
Harald Hoyer [Thu, 2 Jul 2015 12:55:31 +0000 (14:55 +0200)] 
dracut.sh: add devices with x-initrd.mount in /etc/fstab to host_devs

otherwise dracut might not even be able to mount those.

8 years agolower the log level for dfatal
Harald Hoyer [Mon, 29 Jun 2015 14:14:58 +0000 (16:14 +0200)] 
lower the log level for dfatal

8 years agonetwork: don't use "ifup -m"
Harald Hoyer [Thu, 2 Jul 2015 09:32:08 +0000 (11:32 +0200)] 
network: don't use "ifup -m"

"ifup -m" was thought to be used by humans in the emergency shell.
Using it programatically shows some other flaw in the execution logic.

Also, "ifup -m" was configuring the interface multiple times on "add"
and "change" uevent, because the "$netif.did-setup" test was not
executed.

8 years agonetwork/dhclient-script.sh: make IPv4 DHCP lease time optionally
Harald Hoyer [Wed, 1 Jul 2015 12:57:15 +0000 (14:57 +0200)] 
network/dhclient-script.sh: make IPv4 DHCP lease time optionally

If bootp is used, no lease time is provided in the packet from the bootp
server.

8 years agonetwork/dhclient-script.sh: add RENEW/REBIND
Harald Hoyer [Wed, 1 Jul 2015 12:53:33 +0000 (14:53 +0200)] 
network/dhclient-script.sh: add RENEW/REBIND

8 years agosystemd: if kdbus is available, include the kernel module 77/head
Cristian Rodríguez [Wed, 1 Jul 2015 23:15:13 +0000 (20:15 -0300)] 
systemd: if kdbus is available, include the kernel module

8 years agoMerge pull request #76 from fabiand/activationskip
Harald Hoyer [Thu, 25 Jun 2015 10:20:13 +0000 (12:20 +0200)] 
Merge pull request #76 from fabiand/activationskip

Revert "lvm: Don't activate LVs with activationskip set"

8 years agoRevert "lvm: Don't activate LVs with activationskip set" 76/head
Fabian Deutsch [Thu, 25 Jun 2015 09:17:59 +0000 (11:17 +0200)] 
Revert "lvm: Don't activate LVs with activationskip set"

This reverts commit cfa365a32d47388c8476064b23d7d4684f1e591b.

The logic in commit cfa365a was added to prevent (odl) lvms from
activating snapshots which should not be activated.
Newer lvms however do this automatically (not enabling an LV if the
the 'k' attribute set), thus we can revert the previous commit.

8 years agodracut.spec: turn requires in recommends
Harald Hoyer [Tue, 23 Jun 2015 13:29:00 +0000 (15:29 +0200)] 
dracut.spec: turn requires in recommends