]>
git.ipfire.org Git - thirdparty/dracut.git/log
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.
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
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.
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.
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
Harald Hoyer [Tue, 14 Jul 2015 08:11:59 +0000 (10:11 +0200)]
use mktemp "-p" instead of "--tmpdir" for busybox
Harald Hoyer [Fri, 10 Jul 2015 09:21:51 +0000 (11:21 +0200)]
dracut.spec: add dracut-init.sh
Mike Gilbert [Tue, 14 Jul 2015 15:12:16 +0000 (11:12 -0400)]
syncheck: Look for 'echo -n' usage in modules
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.
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.
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.
Harald Hoyer [Mon, 13 Jul 2015 08:38:16 +0000 (10:38 +0200)]
TODO: update
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
Harald Hoyer [Thu, 9 Jul 2015 17:44:30 +0000 (19:44 +0200)]
dracut.sh: early check for bash version
Harald Hoyer [Thu, 9 Jul 2015 16:22:15 +0000 (18:22 +0200)]
dracut.sh: remember $0 for --regenerate-all
Harald Hoyer [Thu, 9 Jul 2015 16:02:44 +0000 (18:02 +0200)]
dracut.sh: reduce code
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
Harald Hoyer [Thu, 9 Jul 2015 13:27:44 +0000 (15:27 +0200)]
guard ${arrays[@]} with ""
Harald Hoyer [Thu, 9 Jul 2015 12:33:24 +0000 (14:33 +0200)]
dracut.sh: remove pop()
Harald Hoyer [Thu, 9 Jul 2015 12:31:26 +0000 (14:31 +0200)]
dracut.conf: remove example parameters
Harald Hoyer [Thu, 9 Jul 2015 12:13:44 +0000 (14:13 +0200)]
dracut.sh: remove push()
can be done with var+=(val)
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.
Harald Hoyer [Wed, 8 Jul 2015 06:49:02 +0000 (08:49 +0200)]
network/dhclient-script.sh: remove bashism
Harald Hoyer [Tue, 7 Jul 2015 13:34:30 +0000 (15:34 +0200)]
TEST-50-MULTINIC/test.sh: correctly call ldconfig
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
Harald Hoyer [Tue, 7 Jul 2015 12:29:22 +0000 (14:29 +0200)]
TEST-04-FULL-SYSTEMD: fixup loadkeys keymap loading
Harald Hoyer [Tue, 7 Jul 2015 11:45:19 +0000 (13:45 +0200)]
dracut-pre-mount.service should run before systemd-fsck-root.service
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>
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>
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>
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>
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
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.
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
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
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>
Harald Hoyer [Thu, 2 Jul 2015 17:48:25 +0000 (19:48 +0200)]
network/dhclient-script.sh: fixup lease time
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.
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
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
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.
Harald Hoyer [Mon, 29 Jun 2015 14:14:58 +0000 (16:14 +0200)]
lower the log level for dfatal
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.
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.
Harald Hoyer [Wed, 1 Jul 2015 12:53:33 +0000 (14:53 +0200)]
network/dhclient-script.sh: add RENEW/REBIND
Cristian Rodríguez [Wed, 1 Jul 2015 23:15:13 +0000 (20:15 -0300)]
systemd: if kdbus is available, include the kernel module
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"
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.
Harald Hoyer [Tue, 23 Jun 2015 13:29:00 +0000 (15:29 +0200)]
dracut.spec: turn requires in recommends
Harald Hoyer [Tue, 23 Jun 2015 13:21:37 +0000 (15:21 +0200)]
dracut.spec: Recommends grubby
Harald Hoyer [Tue, 16 Jun 2015 13:17:39 +0000 (15:17 +0200)]
dracut.spec: move dmsquash and livnet to subpackage
dmsquash and livenet need img-lib, which needs tar, which is normally
not needed.
Harald Hoyer [Tue, 16 Jun 2015 13:08:23 +0000 (15:08 +0200)]
uefi-lib: remove bogus comment
Harald Hoyer [Mon, 15 Jun 2015 13:28:52 +0000 (15:28 +0200)]
rootfs-generator: check for rootok, before doing any action
Harald Hoyer [Tue, 23 Jun 2015 12:12:40 +0000 (14:12 +0200)]
Merge pull request #74 from xnox/master
Fix default udev & systemd dir detection, in usr-merge configurations.
Dimitri John Ledkov [Tue, 17 Feb 2015 13:03:01 +0000 (13:03 +0000)]
Fix default udev & systemd dir detection, in usr-merge configurations.
Test that /lib is not a symlink, before using split-usr paths.
Harald Hoyer [Mon, 15 Jun 2015 10:27:21 +0000 (12:27 +0200)]
NEWS: version 043
Harald Hoyer [Mon, 15 Jun 2015 09:31:53 +0000 (11:31 +0200)]
Merge pull request #73 from dracut-mailing-devs/
1434358579 -11674-1-git-send-email-lzhong@suse.com
dracut-lib.sh: typo fix
Harald Hoyer [Mon, 15 Jun 2015 09:30:51 +0000 (11:30 +0200)]
dmsquash-live: add dmsquash-generator
Harald Hoyer [Mon, 15 Jun 2015 09:28:33 +0000 (11:28 +0200)]
Merge pull request #71 from jsynacek/doc-fix
doc: fix formatting
Lidong Zhong [Mon, 15 Jun 2015 08:56:19 +0000 (16:56 +0800)]
dracut-lib.sh: typo fix
Signed-off-by: Lidong Zhong <lzhong@suse.com>
Jan Synacek [Mon, 15 Jun 2015 07:49:52 +0000 (09:49 +0200)]
doc: fix formatting
Harald Hoyer [Tue, 9 Jun 2015 11:04:31 +0000 (13:04 +0200)]
NEWS & AUTHORS update - 042
Harald Hoyer [Wed, 10 Jun 2015 16:45:45 +0000 (18:45 +0200)]
TODO: update
Harald Hoyer [Wed, 10 Jun 2015 17:45:30 +0000 (19:45 +0200)]
TEST-16-DMSQUASH: add more debug parms
Harald Hoyer [Wed, 10 Jun 2015 17:39:41 +0000 (19:39 +0200)]
run-qemu: default kernel to "/lib/modules/${KVERSION}/vmlinuz"
newer Fedora kernel install the kernel to /lib/modules
Harald Hoyer [Wed, 10 Jun 2015 17:28:31 +0000 (19:28 +0200)]
dmsquash-live: install a sysroot.mount generator for systemd
otherwise systemd uses its own sysroot.mount line
Harald Hoyer [Tue, 9 Jun 2015 13:05:06 +0000 (15:05 +0200)]
crypt: check for crypttab before reading
Harald Hoyer [Tue, 9 Jun 2015 13:04:36 +0000 (15:04 +0200)]
udev-rules: add 60-block.rules
Harald Hoyer [Tue, 9 Jun 2015 11:49:32 +0000 (13:49 +0200)]
dracut-functions.sh: only honor the first [0-9]+<module> dir
If multiple directories with different numbers exist, only honor the
first one.
Harald Hoyer [Tue, 9 Jun 2015 11:34:57 +0000 (13:34 +0200)]
fixup test suite
- qemu wants to have "format=raw"
- "-kernel" is obsolete, because run-qemu picks the right path
Harald Hoyer [Tue, 9 Jun 2015 10:29:41 +0000 (12:29 +0200)]
dracut.conf.5.asc: document "compress"
Harald Hoyer [Fri, 5 Jun 2015 10:59:58 +0000 (12:59 +0200)]
dracut.conf.5.asc: add missing "="
Christian Rodrigues [Mon, 23 Mar 2015 16:12:15 +0000 (17:12 +0100)]
Correct paths for openSUSE
openSUSE has things stored in different places, so fixup the
paths here.
Signed-off-by: Christian Rodrigues <crrodriguez@opensuse.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Hannes Reinecke [Mon, 23 Mar 2015 16:12:18 +0000 (17:12 +0100)]
95fcoe-uefi: Test for EFI firmware
The fcoe-uefi module should test for EFI firmware when called
in 'hostonly' mode; of no EFI firmware is found then the module
doesn't need to be included.
References: bnc#882412
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Cristian Rodríguez [Tue, 10 Feb 2015 05:26:47 +0000 (02:26 -0300)]
systemd: include systemd-random-seed.service
In current systemd releases there is no random-seed-load service
only systemd-random-seed.service
Jan Synacek [Wed, 11 Feb 2015 13:06:25 +0000 (14:06 +0100)]
doc: fix typo
Harald Hoyer [Tue, 2 Jun 2015 10:04:51 +0000 (12:04 +0200)]
Merge pull request #58 from dracut-mailing-devs/
20150326044148 .10121.15286.stgit@notabene.brown
mdraid fixes
NeilBrown [Tue, 31 Mar 2015 21:57:41 +0000 (08:57 +1100)]
crypt/parse-crypt.sh: hide encrypted devices from systemd timeout warnings.
When systemd's crypttab generator parsed crypttab, it tells
systemd about several devices which may not appear until later
in the boot sequence, and which are not needed while dract is running.
This can particularly happen when an md array is encrypted,
and the array is newly degraded so that it doesn't appear until
dracut runs mdraid_start.sh.
This can result in systemd printing warning messages which are
inappropriate.
So tell systemd that the timeout for each of these is zero.
This is involves splitting some functionality out of wait_for_dev()
That function does two things:
- creates 'finished' hooks so that dracut will wait for the device,
and
- sets the systemd timeout for the device to zero, so systemd doesn't
wait.
We only want the second of these for most encrypted devices.
So split that out into a new function set_systemd_timeout_for_dev(),
and call it from parse-crypt.sh
Signed-off-by: NeilBrown <neilb@suse.de>
--
This version fixes the missing redirect from /etc/crypttab
NeilBrown
Harald Hoyer [Tue, 2 Jun 2015 09:57:58 +0000 (11:57 +0200)]
Merge pull request #67 from dracut-mailing-devs/
1432116434 -18050-1-git-send-email-cfan@redhat.com
Change the fs_passno of nfs to 0
Harald Hoyer [Tue, 2 Jun 2015 09:54:07 +0000 (11:54 +0200)]
Merge pull request #68 from dracut-mailing-devs/
1431698021 -16626-3-git-send-email-colin@mageia.org
dracut: Make host only mode more resilient to missing swaps.
This patch set allows swap devices to disappear without cocking up a
host-only initramfs boot.
Harald Hoyer [Tue, 2 Jun 2015 09:49:25 +0000 (11:49 +0200)]
Merge pull request #44 from MrStaticVoid/fix-crypt-loop-info-log-level
crypt-loop: Fix decrypt when running at info log level
Harald Hoyer [Tue, 2 Jun 2015 09:47:58 +0000 (11:47 +0200)]
Merge pull request #45 from MrStaticVoid/fix-crypt-loop-hostonly-kernel-module
crypt-loop: Always include 'loop' kernel module
Harald Hoyer [Tue, 2 Jun 2015 09:33:45 +0000 (11:33 +0200)]
dracut-initramfs-restore.sh: try to mount /boot
This is very useful when /boot has the "noauto" option.
Thanks to Igor Filakhtov
Nikoli [Sat, 15 Nov 2014 14:01:18 +0000 (17:01 +0300)]
Mount /dev, /dev/shm and /run noexec
Harald Hoyer [Tue, 2 Jun 2015 09:44:39 +0000 (11:44 +0200)]
Merge pull request #51 from dracut-mailing-devs/
13711492 .8HAMuGhYIN@thunder
Add support for ethernet point-to-point connections configured via DHCP
Harald Hoyer [Tue, 2 Jun 2015 09:20:10 +0000 (11:20 +0200)]
Merge pull request #53 from dracut-mailing-devs/E1YQLG5-00009v-BS@puleglot.ru
base/dracut-lib.sh: remove bashism
xtraeme [Tue, 2 Jun 2015 09:11:21 +0000 (11:11 +0200)]
Portability fixes:
- Use uid_t not __uid_t.
- Define _GNU_SOURCE for cpu_set_t and others.
- Include string.h for strncmp().
- Detect musl's ldd error message.
Harald Hoyer [Tue, 2 Jun 2015 09:11:40 +0000 (11:11 +0200)]
Merge pull request #64 from fabiand/lvm-activationskip
Respect LVM activationskip
Harald Hoyer [Tue, 2 Jun 2015 09:10:59 +0000 (11:10 +0200)]
Merge pull request #65 from scop/comment
Fix stale comment about required bash version
Harald Hoyer [Tue, 2 Jun 2015 09:10:29 +0000 (11:10 +0200)]
Merge pull request #66 from scop/lbzip2
Use lbzip2 instead of bzip2 if available
Harald Hoyer [Wed, 20 May 2015 12:55:19 +0000 (14:55 +0200)]
dracut.spec: use the autosetup macro to apply the patches
Harald Hoyer [Thu, 28 May 2015 17:44:55 +0000 (19:44 +0200)]
network: setup gateway after setting up resolv.conf
If a daemon listens for route changes and wants to use the interface
afterwards, it should be able to resolve DNS
Harald Hoyer [Thu, 21 May 2015 12:43:14 +0000 (14:43 +0200)]
dracut.sh: fall back to /usr/lib/os-release, if /etc/os-release missing
Harald Hoyer [Thu, 21 May 2015 12:42:39 +0000 (14:42 +0200)]
udev-rules: optionally install /etc/udev/udev.conf
udevd runs even without this config file
Ville Skyttä [Sun, 24 May 2015 19:29:20 +0000 (22:29 +0300)]
Use lbzip2 instead of bzip2 if available
Ville Skyttä [Sun, 24 May 2015 19:26:20 +0000 (22:26 +0300)]
Fix stale comment about required bash version
Fabian Deutsch [Thu, 21 May 2015 10:38:05 +0000 (12:38 +0200)]
lvm: Don't activate LVs with activationskip set
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=
1186854
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Fabian Deutsch [Thu, 21 May 2015 10:37:38 +0000 (12:37 +0200)]
doc: Add a minimal rd.live.overlay documentation
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
Chao Fan [Wed, 20 May 2015 10:07:14 +0000 (18:07 +0800)]
Change the fs_passno of nfs to 0
There is a bug that kdump-initrd contains entry requesting nfs dump
filesystem to get filesystemchecked. And there is an erro message said
that nfs need be checked. But there's no fsck for nfs utility, e.g
fsck.nfs like other file system. Whatever fs_passno 0 or 2 are passed,
no fsck is executed at all for nfs mount.But in dracut, set it to be 2
always, so the erro message appear and it should be set to 0.
In the fstab,the sixth variable fs_passno stands for that the device need
checked or not,and dracut set it to "2".To fix this issue, it should
be "0" when the device is nfs.The third variable stands for the type of
the filesystem and we can use it to judge whether the device is nfs.
So when the third variable of fstab contains "nfs", the sixth variable
fs_passno should be set to "0".
Signed-off-by: Chao Fan <cfan@redhat.com>
Harald Hoyer [Mon, 18 May 2015 11:43:26 +0000 (13:43 +0200)]
50drm: add hyperv_fb kernel module
https://bugzilla.redhat.com/show_bug.cgi?id=
1192035