Harald Hoyer
3c00189988
dracut.sh: remove quotes from install_items and install_optional_items
...
Unfortunately these are lists with whitespaces.
2015-08-10 14:05:15 +02:00
Harald Hoyer
e6a2555c7d
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".
2015-08-10 13:40:43 +02:00
Mimi Zohar
4f50a9bfb1
Revert securitfs change
...
Commit 5e60145
use findmnt with "--source" or "--target" broke
mounting securityfs. This patch reverts only the securityfs
portion of the patch.
2015-08-03 12:36:05 +02:00
Mimi Zohar
41ac16b26f
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
2015-08-03 12:36:05 +02:00
Mimi Zohar
396d3cc7ff
Extend evm-enable.sh to load the EVM public key
...
Create the _evm keyring and load the EVM public key on it.
2015-08-03 12:36:05 +02:00
Mimi Zohar
b05ad85b0c
Remove 98integrity's dependency on selinux
...
Loading the EVM key(s) is not dependent on selinux. Remove
the dependency.
2015-08-03 12:36:05 +02:00
Harald Hoyer
4135eea634
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.
2015-07-31 09:05:51 +02:00
Harald Hoyer
96d694c0b5
dracut.sh: simplify modalias reading
2015-07-30 12:11:42 +02:00
Alexander Tsoy
da5304aabc
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.
2015-07-28 15:04:56 +02:00
Harald Hoyer
cce34acace
qemu: add spapr-vscsi kernel module
2015-07-28 11:55:04 +02:00
Harald Hoyer
607ff8204b
Merge pull request #85 from Quarky9/master
...
40network/net-lib.sh: get_ip() Add missing echo to output the result
2015-07-27 13:40:53 +02:00
Harald Hoyer
2082cdf230
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
2015-07-27 13:30:22 +02:00
Stefan Reimer
c1c96f2c47
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.
2015-07-25 01:17:04 +00:00
Harald Hoyer
693b7a3283
Cleanup compressor handling
...
If no compressor is specified, try to find a suitable one.
Check if kernel modules can be uncompressed.
2015-07-22 11:35:28 +02:00
Chao Fan
7eeaa4ab14
remove the incomplete .img file
...
If the directory where the .img file is saved has no enough space, or in
other wrong conditions, dracut will get an incomplete file xxx.img. But
sometimes this .img file will be loaded when rebooting the system. And then
some bugs will happen because this .img file is wrong.
So I think dracut should remove the incomplete file because this .img file
with problems was made by dracut. And then the wrong file will not be loaded
anymore.
Signed-off-by: Chao Fan <cfan@redhat.com>
2015-07-21 12:05:42 +02:00
Harald Hoyer
f4d64d55ea
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.
2015-07-18 13:02:25 +02:00
Harald Hoyer
ff55a8939c
Merge pull request #81 from floppym/printf2
...
Replace echo -n with printf in code with a /bin/sh shebang
2015-07-16 12:02:48 +02:00
Harald Hoyer
e50f91e600
use mktemp "-p" instead of "--tmpdir" for busybox
2015-07-15 11:47:43 +02:00
Harald Hoyer
7f2ea02b4a
dracut.spec: add dracut-init.sh
2015-07-15 11:47:43 +02:00
Mike Gilbert
24f32511fc
syncheck: Look for 'echo -n' usage in modules
2015-07-14 22:24:27 -04:00
Mike Gilbert
5899f2f516
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.
2015-07-14 22:22:14 -04:00
Harald Hoyer
e47907cc6b
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.
2015-07-13 10:51:47 +02:00
Harald Hoyer
968280e370
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.
2015-07-13 10:44:27 +02:00
Harald Hoyer
8c7dc032f8
TODO: update
2015-07-13 10:38:16 +02:00
Harald Hoyer
df0bdd5ae9
network: add rd.peerdns=0 parameter
...
Add rd.peerdns=0 parameter to disable DHCP nameserver setting
2015-07-13 10:14:15 +02:00
Harald Hoyer
ee44f62972
dracut.sh: early check for bash version
2015-07-09 19:44:30 +02:00
Harald Hoyer
e8f19bcf26
dracut.sh: remember $0 for --regenerate-all
2015-07-09 18:22:15 +02:00
Harald Hoyer
cb0913db0d
dracut.sh: reduce code
2015-07-09 18:06:55 +02:00
Harald Hoyer
32de4eb5d3
dracut-functions.sh: simplify some for loops
...
continue early, if condition is not met
2015-07-09 15:36:25 +02:00
Harald Hoyer
3721635b2c
guard ${arrays[@]} with ""
2015-07-09 15:36:25 +02:00
Harald Hoyer
694725abf0
dracut.sh: remove pop()
2015-07-09 15:36:25 +02:00
Harald Hoyer
e833e26137
dracut.conf: remove example parameters
2015-07-09 15:36:25 +02:00
Harald Hoyer
5a66d51102
dracut.sh: remove push()
...
can be done with var+=(val)
2015-07-09 15:36:25 +02:00
Harald Hoyer
1cadc26fd4
Add all btrfs devices
...
We have to find them with "btrfs usage", which is cumbersome.
2015-07-09 15:36:25 +02:00
Harald Hoyer
78362bc5fe
network/dhclient-script.sh: remove bashism
2015-07-08 08:49:02 +02:00
Harald Hoyer
7ecb36aef4
TEST-50-MULTINIC/test.sh: correctly call ldconfig
2015-07-07 15:34:30 +02:00
Harald Hoyer
3fa31c3a47
TEST-14-IMSM: remove "rd.auto"
...
otherwise rd.auto auto assembles the device
2015-07-07 14:31:16 +02:00
Harald Hoyer
9ee2f1e235
TEST-04-FULL-SYSTEMD: fixup loadkeys keymap loading
2015-07-07 14:31:06 +02:00
Harald Hoyer
e860ef0e30
dracut-pre-mount.service should run before systemd-fsck-root.service
2015-07-07 13:45:19 +02:00
Andrei Borzenkov
6c9484f614
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>
2015-07-07 13:44:24 +02:00
Thomas Renninger
162daf0c97
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>
2015-07-07 13:44:24 +02:00
Thomas Renninger
01e60ca4f6
mkinitrd-suse.sh: Bail out with exit 1 if initrd cannot be generated
...
Signed-off-by: Thomas Renninger <trenn@suse.de>
2015-07-07 13:44:24 +02:00
Hannes Reinecke
b8efaa0017
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>
2015-07-07 13:44:24 +02:00
Harald Hoyer
6318baa45f
skipcpio/skipcpio.c: linux kernel only accepts "070701" signature
...
don't bother with other signatures
2015-07-07 13:44:13 +02:00
Harald Hoyer
3d579309cd
dmsquash-live/dmsquash-live-root.sh: fixup checkisomd5 for systemd
...
systemd does not like a leading "-" for unit template filenames anymore.
2015-07-07 13:44:13 +02:00
Harald Hoyer
f621aeba65
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
2015-07-07 13:16:27 +02:00
Harald Hoyer
59815841e9
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
2015-07-07 13:15:34 +02:00
Dave Young
77403e0032
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>
2015-07-06 10:06:04 +02:00
Harald Hoyer
8d09f493a6
network/dhclient-script.sh: fixup lease time
2015-07-02 19:48:25 +02:00
Harald Hoyer
777f2db037
splitup dracut-init.sh from dracut-functions.sh
...
other tools want to source dracut-functions.sh without any mkdir side
effects.
2015-07-02 16:04:05 +02:00