]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
10 years agoAdd lzo, lz4 compression and read INITRD_COMPRESS
P J P [Fri, 11 Oct 2013 13:56:51 +0000 (19:26 +0530)] 
Add lzo, lz4 compression and read INITRD_COMPRESS

This patch adds support for lzop(1) & lz4(1) compression
algorithms to compress iniramfs image file. Both are supported
by the Linux kernel.

Linux kernel exports user's choice of initramfs compression
algorithm as a shell environment variable: INITRD_COMPRESS.
This patch adds support to read this variable and duly compress
the initramfs image file.

Environment variable INITRD_COMPRESS has less precedence than the
command line options --gzip, etc. Ie. command line options could
override the compression algorithm defined by $INITRD_COMPRESS.

Signed-off-by: P J P <ppandit@redhat.com>
[Edited-by: Harald Hoyer: add documentation about lzo and lz4]

10 years agoresume: remove resume-genrules.sh
Alexander Tsoy [Wed, 9 Oct 2013 03:02:56 +0000 (07:02 +0400)] 
resume: remove resume-genrules.sh

parse-resume.sh already contains all the code from resume-genrules.sh.
Also parse-resume.sh is executed before resume-genrules.sh, so there is
no point to keep the latter.

This fixes the following error messages:
dracut-initqueue: ln: failed to create symbolic link '/dev/resume': File exists
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/settled/resume.sh': No such file or directory
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/timeout/resume.sh': No such file or directory

10 years agoresume: fix swap detection in hostonly
Alexander Tsoy [Wed, 9 Oct 2013 02:39:46 +0000 (06:39 +0400)] 
resume: fix swap detection in hostonly

Check for other possible fs types. This fixes swap detection when using
TuxOnIce kernel.

Note that parse-resume.sh generate udev rules with support for
ID_FS_TYPE=suspend, but we do not include it here, because it is
libvolume_id thing and host_fs_types is populated using blkid.

10 years agobase/init.sh: also mkdir /run/lock
Harald Hoyer [Wed, 9 Oct 2013 06:20:39 +0000 (08:20 +0200)] 
base/init.sh: also mkdir /run/lock

10 years agodmsquash-live: add /dev/mapper/live-base
Brian C. Lane [Tue, 8 Oct 2013 13:13:44 +0000 (15:13 +0200)] 
dmsquash-live: add /dev/mapper/live-base

This is similar to the reason for adding the
/run/initramfs/live-baseloop symlink -- access to the original live
image without overlays.

livemedia-creator does not create a osmin.img, so there is no mountable
device for it to use when rsyncing the live image to the target. It
needs a device that points to the original live image without overlays.

Note that lmc won't be creating osmin.img, since really isn't needed any
longer. Its purpose was to provide a minimal image that could be dd'd to
the target. Now that we use rsync this is no longer necessary.

The included patch adds a /dev/mapper/live-base device that Anaconda can
use whether or not there is an osmin present.

10 years agoDoc: cleanup, extend and split and reuse
Harald Hoyer [Tue, 8 Oct 2013 12:59:47 +0000 (14:59 +0200)] 
Doc: cleanup, extend and split and reuse

10 years agodracut.sh: do not bail out, if kernel modules dir is missing
Harald Hoyer [Tue, 8 Oct 2013 13:03:40 +0000 (15:03 +0200)] 
dracut.sh: do not bail out, if kernel modules dir is missing

and only print a warning message

10 years ago10i18n/parse-i18n.sh: parse rd.vconsole and rd.locale
Harald Hoyer [Tue, 8 Oct 2013 13:02:14 +0000 (15:02 +0200)] 
10i18n/parse-i18n.sh: parse rd.vconsole and rd.locale

and removed systemd part, because parse-i18n.sh is not even installed in
systemd driven initramfs images.

10 years ago*/module-setup.sh: add comments for dracut called functions
Harald Hoyer [Tue, 8 Oct 2013 08:37:56 +0000 (10:37 +0200)] 
*/module-setup.sh: add comments for dracut called functions

10 years agolvm: install thin utils for non-hostonly
Harald Hoyer [Tue, 8 Oct 2013 08:30:00 +0000 (10:30 +0200)] 
lvm: install thin utils for non-hostonly

10 years agoprepare 034 release 034
Harald Hoyer [Tue, 8 Oct 2013 07:55:26 +0000 (09:55 +0200)] 
prepare 034 release

10 years agomkinitrd-dracut.sh: removed trailing space in comment
Harald Hoyer [Mon, 7 Oct 2013 13:18:08 +0000 (15:18 +0200)] 
mkinitrd-dracut.sh: removed trailing space in comment

10 years agobtrfs: use inst_hook to install the timeout hook
Harald Hoyer [Mon, 7 Oct 2013 13:06:50 +0000 (15:06 +0200)] 
btrfs: use inst_hook to install the timeout hook

10 years agorootfs-block: add support for the rootfallback= kernel cmdline option
Harald Hoyer [Mon, 7 Oct 2013 13:06:22 +0000 (15:06 +0200)] 
rootfs-block: add support for the rootfallback= kernel cmdline option

10 years agofcoe: add FCoE UEFI boot device support
Harald Hoyer [Mon, 7 Oct 2013 12:24:36 +0000 (14:24 +0200)] 
fcoe: add FCoE UEFI boot device support

10 years agodracut.spec: remove bcache module
Harald Hoyer [Fri, 4 Oct 2013 14:35:33 +0000 (16:35 +0200)] 
dracut.spec: remove bcache module

10 years agomkinitrd-dracut.sh: do not "--keep" files for --verbose
Harald Hoyer [Fri, 4 Oct 2013 11:57:15 +0000 (13:57 +0200)] 
mkinitrd-dracut.sh: do not "--keep" files for --verbose

10 years agomkinitrd-dracut.sh: Build host images for default_kernel_images and -i/-k paths
Thomas Renninger [Fri, 27 Sep 2013 18:19:00 +0000 (20:19 +0200)] 
mkinitrd-dracut.sh: Build host images for default_kernel_images and -i/-k paths

default_kernel_images and -i/-k paths are new (SuSE) code paths and
would have resulted in usage errors before.

There we want to build host only images for faster building and
smaller images.
Also force creation (overriding) of initrd images in these code paths.

Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agomkinitrd-dracut.sh: Also allow -d to specify the root_fs and -s dummy
Thomas Renninger [Fri, 27 Sep 2013 18:18:59 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Also allow -d to specify the root_fs and -s dummy

-d is the SUSE mkinitrd version option to pass the rootfs.
-s is to enable splash which may not be needed, but some callers rely on it,
not to return an error.

Make this wrapper compatible to it.

Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agomkinitrd-dracut.sh: Allow mkinitrd call without passing any parameters
Thomas Renninger [Fri, 27 Sep 2013 18:18:58 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Allow mkinitrd call without passing any parameters

Before this gave a "usage" error.
Now boot_dir (by default /boot) is scanned for available kernels and sane
initrd default targets get defined and the corresponding initramfs files
are generated.

Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agomkinitrd-dracut.sh: Implement --quiet|-q option
Thomas Renninger [Fri, 27 Sep 2013 18:18:57 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Implement --quiet|-q option

Dracut is rather verbose. This optional parameter is to limit the output
to the essential: For each generated initrd show the kernel, target and
possibly additional options passed to dracut.

Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agomkinitrd-dracut.sh: Enhance param parsing: Allow multiple arguments per param
Thomas Renninger [Fri, 27 Sep 2013 18:18:56 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Enhance param parsing: Allow multiple arguments per param

Currently --with parameter had to be passed as: --with="mod1 mod2".
Now one can pass: --with "mod1 mod2" or even --with mod1 mod2.

Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agomkinitrd-dracut.sh: Introduce -i -k parameters
Thomas Renninger [Fri, 27 Sep 2013 18:18:55 +0000 (20:18 +0200)] 
mkinitrd-dracut.sh: Introduce -i -k parameters

In SUSE, one can pass a list of kernel files via -k parameter.
For each an initrd is generated as passed via -i parameters.

Make the dracut mkinitrd wrapper compatible to those.
For now only one kernel file and initrd target can be specified.
This will get enhanced with a follow-up patch.

Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agomdraid/module-setup.sh: fixes for mdadm-3.2.6+
Alexander Tsoy [Sat, 28 Sep 2013 21:31:01 +0000 (01:31 +0400)] 
mdraid/module-setup.sh: fixes for mdadm-3.2.6+

mdadm-3.2.6+:
Incremental assembly rule contains "--offroot" arg. Update
regexp to catch this variant.

mdadm-3.3+:
Rules was splitted into two files: 63-md-raid-arrays.rules
and 64-md-raid-assembly.rules. Install them both and edit
the latter.

10 years agomdraid/module-setup.sh: install configs from /etc/mdadm.conf.d
Alexander Tsoy [Thu, 3 Oct 2013 10:54:42 +0000 (14:54 +0400)] 
mdraid/module-setup.sh: install configs from /etc/mdadm.conf.d

/etc/mdadm.conf.d directory is supported since mdadm-3.3

10 years agodracut.spec: conflict with old bcache-tools
Harald Hoyer [Fri, 4 Oct 2013 11:36:36 +0000 (13:36 +0200)] 
dracut.spec: conflict with old bcache-tools

10 years agodracut-functions.sh:inst_rules() do not install rules in CWD
Harald Hoyer [Fri, 4 Oct 2013 11:32:15 +0000 (13:32 +0200)] 
dracut-functions.sh:inst_rules() do not install rules in CWD

10 years agobcache: removed, it's in the upstream bcache-tools package
Harald Hoyer [Fri, 4 Oct 2013 08:43:02 +0000 (10:43 +0200)] 
bcache: removed, it's in the upstream bcache-tools package

10 years agolvm/mdraid: Fix LVM on MD activation
Peter Rajnoha [Fri, 4 Oct 2013 08:41:24 +0000 (10:41 +0200)] 
lvm/mdraid: Fix LVM on MD activation

The 69-dm-lvm-metad.rules set some udev env. variables that makes it
possible to detect the right time to activate LVM on MD. The MD is very
similar to DM during activation - it's usable only after proper device
activation - the CHANGE event. We need to make a difference between a
CHANGE event that comes from this activation and CHANGE event that is
the outcome of the WATCH udev rule (otherwise we'd end up with LVM
activation done on each CHANGE event - which is wrong).

So we need the udev databse to be persistent during pivot to root fs
even for MD devices.

10 years agodracut-logger.sh: do not log to syslog/kmsg/journal for UID != 0
Harald Hoyer [Wed, 2 Oct 2013 10:48:57 +0000 (12:48 +0200)] 
dracut-logger.sh: do not log to syslog/kmsg/journal for UID != 0

Don't clutter the system log with user actions.

Also check, if systemd-cat works, before using it.

10 years agodracut.sh: bail out early, if destination dir is not writeable
Harald Hoyer [Wed, 2 Oct 2013 10:48:11 +0000 (12:48 +0200)] 
dracut.sh: bail out early, if destination dir is not writeable

10 years agodracut-bash-completion.sh: add --prelink --noprelink
Harald Hoyer [Wed, 2 Oct 2013 10:47:34 +0000 (12:47 +0200)] 
dracut-bash-completion.sh: add --prelink --noprelink

10 years agodracut.conf.5.asc: Add ACPI table override and uncompressed cpio doc
Thomas Renninger [Fri, 27 Sep 2013 18:10:40 +0000 (20:10 +0200)] 
dracut.conf.5.asc: Add ACPI table override and uncompressed cpio doc

Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agodracut: Implement ACPI table overriding
Thomas Renninger [Fri, 27 Sep 2013 18:10:39 +0000 (20:10 +0200)] 
dracut: Implement ACPI table overriding

An example config file for this feature could be:

/etc/dracut.conf.d/03-acpi-override.conf

with this content:
acpi_override="yes"
acpi_table_dir="/etc/dracut.conf.d/acpi_tables"

Then all files ending with *.aml will be put into the early cpio
(kernel/firmware/acpi) and will be used to replace the BIOS provided tables
if the kernel supports this feature.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agodracut: Do not create early_cpio if no suitable microcode exist in hostonly case
Thomas Renninger [Fri, 27 Sep 2013 18:10:38 +0000 (20:10 +0200)] 
dracut: Do not create early_cpio if no suitable microcode exist in hostonly case

Intel microcodes only exist for very specific family/model/stepping CPUs.
If no microcode gets added, there is no need to create an empty
(only directories) cpio later that gets glued to the initrd.

This also fixes:

*** Constructing GenuineIntel.bin ****
cat: /lib/firmware/intel-ucode/06-3c-03: No such file or directory

in hostonly mode if there is no suitable microcode for the CPU.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agodracut: Generlize microcode early cpio usage
Thomas Renninger [Fri, 27 Sep 2013 18:10:37 +0000 (20:10 +0200)] 
dracut: Generlize microcode early cpio usage

ACPI early table override also may need to place files into an early cpio.
Reflect this in variable and file names.
This change is renaming only and does not introduce any real change.

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years agoadd /etc/system-fips for dracut-fips subpackage
Harald Hoyer [Wed, 2 Oct 2013 10:36:25 +0000 (12:36 +0200)] 
add /etc/system-fips for dracut-fips subpackage

10 years agoAdd option to turn on/off prelinking
Harald Hoyer [Tue, 17 Sep 2013 17:23:20 +0000 (12:23 -0500)] 
Add option to turn on/off prelinking

--prelink, --noprelink

do_prelink=[yes|no]

10 years agodracut.sh: we don't need to read the modalias files
Harald Hoyer [Fri, 13 Sep 2013 15:51:29 +0000 (17:51 +0200)] 
dracut.sh: we don't need to read the modalias files

udev does only parse the uevent MODALIAS line, so whatever is in the
modalias files would not trigger any module load.

10 years agodracut.sh: also search uevent's for MODALIAS
Harald Hoyer [Fri, 13 Sep 2013 15:34:18 +0000 (17:34 +0200)] 
dracut.sh: also search uevent's for MODALIAS

10 years agoifup: do not dhcp on network interface of secondary stack
WANG Chao [Fri, 13 Sep 2013 14:28:44 +0000 (22:28 +0800)] 
ifup: do not dhcp on network interface of secondary stack

Configure cmdline to:
 ip=br0:dhcp bridge=br0:bond0 bond=bond0:eth0

By default ifup bond0 will run dhcp on bond0, which is wrong. bond0
isn't the top interface. we should really run dhcp on br0.

So if we ifup an network interface on secondary stack, we should not
dhcp. Fix this issue with this patch.

10 years agodracut.sh: harden host_modalias reading
Harald Hoyer [Fri, 13 Sep 2013 14:33:01 +0000 (16:33 +0200)] 
dracut.sh: harden host_modalias reading

Some weird PPC driver make their modulias unreadable

$ cat /sys/devices/vio/4000/modalias
cat: /sys/devices/vio/4000/modalias: No such device

10 years agoversion 033 033
Harald Hoyer [Thu, 12 Sep 2013 12:52:20 +0000 (14:52 +0200)] 
version 033

10 years agodracut.sh: Fixup previous commit to only read /sys and /proc in hostonly mode
Colin Walters [Wed, 11 Sep 2013 13:04:45 +0000 (09:04 -0400)] 
dracut.sh: Fixup previous commit to only read /sys and /proc in hostonly mode

The gnome-ostree build system generates dracut initramfs images on the
build server, therefore not in hostonly mode.  The build system at the
moment doesn't mount /sys, and the previous commit caused a hard
failure due to lack of /sys/devices.

Because we only want /sys/devices in hostonly mode, just move those
bits inside the hostonly conditional above.

10 years agodracut-functions.sh: extend module_is_host_only()
Harald Hoyer [Wed, 11 Sep 2013 07:57:52 +0000 (09:57 +0200)] 
dracut-functions.sh: extend module_is_host_only()

If the currently running kernel is not present in the installer root,
fall back to modalias checking.

10 years agoMakefile: create hostonly test image without debug
Harald Hoyer [Wed, 11 Sep 2013 07:57:25 +0000 (09:57 +0200)] 
Makefile: create hostonly test image without debug

10 years agonetwork: correctly name iBFT vlan devices
Harald Hoyer [Wed, 11 Sep 2013 07:56:57 +0000 (09:56 +0200)] 
network: correctly name iBFT vlan devices

10 years agoTEST-50-MULTINIC: improve interface test
Harald Hoyer [Tue, 10 Sep 2013 08:51:04 +0000 (10:51 +0200)] 
TEST-50-MULTINIC: improve interface test

10 years agonfs/nfsroot-cleanup.sh: silently try to umount rpc_pipefs
Harald Hoyer [Tue, 10 Sep 2013 08:50:23 +0000 (10:50 +0200)] 
nfs/nfsroot-cleanup.sh: silently try to umount rpc_pipefs

10 years agonetwork/ifup.sh: ifup with dhcp, if no ip= params specified
Harald Hoyer [Tue, 10 Sep 2013 08:49:51 +0000 (10:49 +0200)] 
network/ifup.sh: ifup with dhcp, if no ip= params specified

10 years agonetwork/net-genrules.sh: react also on NAME
Harald Hoyer [Tue, 10 Sep 2013 08:48:18 +0000 (10:48 +0200)] 
network/net-genrules.sh: react also on NAME

Recent systemd-udevd network renaming rules work on NAME.
Also enqueue only one unique initqueue job.

10 years agodracut.sh: reorder things to let "--print-cmdline" work
Harald Hoyer [Mon, 9 Sep 2013 14:52:19 +0000 (16:52 +0200)] 
dracut.sh: reorder things to let "--print-cmdline" work

10 years agobcache: newer util-linux supports bcache with blkid
Harald Hoyer [Mon, 9 Sep 2013 14:51:44 +0000 (16:51 +0200)] 
bcache: newer util-linux supports bcache with blkid

and probe-bcache should not be needed in that case

10 years agodmsquash-live/iso-scan: do the iso scan regardless of /dev/loop0
Harald Hoyer [Mon, 9 Sep 2013 14:49:45 +0000 (16:49 +0200)] 
dmsquash-live/iso-scan: do the iso scan regardless of /dev/loop0

The loop driver could be a module and would never be loaded, so the
iso-scan never takes place.

To let the iso-scan happen, it is now placed into the initqueue/settled
unconditionally.

10 years agono more global $CMDLINE
Harald Hoyer [Thu, 5 Sep 2013 07:57:48 +0000 (09:57 +0200)] 
no more global $CMDLINE

Do not use the global variable CMDLINE anymore. Use
CMDLINE=$(getcmdline)

10 years agodracut-lib: do not use cached CMDLINE in _getcmdline
WANG Chao [Wed, 4 Sep 2013 16:10:37 +0000 (00:10 +0800)] 
dracut-lib: do not use cached CMDLINE in _getcmdline

Cached CMDLINE doesn't work 100%. For example the following case,

1. dracut starts to run dracut-cmdline.sh. CMDLINE is cached when calling
   getarg 'rd.break=cmdline'.
2. In 92-parse-ibft.sh, ibft_to_cmdline() calls $(set_ifname ibft xx:xx..)
   multiple times in each subshell.
3. In 1st call, set_ifname() will check $(getargs ifname) and write out
   ifname=xxxx accordingly.
4. In 2nd call, set_ifname() will check $(getargs ifname) and it's wrong here.
   Because in step 3, we introduce a new cmdline arg ifname=xxx, but CMDLINE
   isn't updated. Thus we fail to get the new ifname arg.

It's doable to unset CMDLINE every time after a new cmdline arg is in. But
unset should be done in the parent process, because unset CMDLINE in a
subshell won't unset CMDLINE in its parent or sibling process. And also it's
painful to unset CMDLINE every time. In the future, functions and code
snippet could probably separate or move to other file, the unset CMDLINE could
malfunction again like this time.

So I'm thinking not to cache CMDLINE. It's doesn't hurt to re-read all the
cmdline args everytime. Because it's in initramfs, a non cached _getcmdline()
should be fast enough.

Please consider!

Thanks
WANG Chao

10 years agoRewrite "rootok" and "netroot" logic
Harald Hoyer [Wed, 4 Sep 2013 07:45:04 +0000 (09:45 +0200)] 
Rewrite "rootok" and "netroot" logic

Previously if "$rootok" = 1, parsing of netroot command line arguments
was skipped. For multiple netroot arguments, all parse scripts have to
run.

Previously only the first netroot argument was taken into account for
the parsing scripts. Now every netroot argument is processed.

10 years agonet-lib: ibft_to_cmdline() fixes
WANG Chao [Tue, 3 Sep 2013 17:29:58 +0000 (01:29 +0800)] 
net-lib: ibft_to_cmdline() fixes

Fix 3 issues in ibft_to_cmdline():
- unset local variables at the beginning of each loop
- only write vlan.conf when we write out ip=xxx
- when vlan id is 0, don't write out vlan.conf. Because 0 means untagged
  and we don't actually need vlan interface.

10 years agoiscsi: parse iscsi parameter, even if rootok=1
Harald Hoyer [Tue, 3 Sep 2013 13:23:28 +0000 (15:23 +0200)] 
iscsi: parse iscsi parameter, even if rootok=1

10 years agodracut-functions.sh:for_each_module_dir() skip empty modules
Harald Hoyer [Mon, 2 Sep 2013 08:27:46 +0000 (10:27 +0200)] 
dracut-functions.sh:for_each_module_dir() skip empty modules

skip modules, which have no module-setup.sh, install or installkernel

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

10 years agodracut-logger.sh: check is journald.socket is active
Harald Hoyer [Wed, 28 Aug 2013 18:01:54 +0000 (20:01 +0200)] 
dracut-logger.sh: check is journald.socket is active

before using systemd-cat, make sure someone is listening

10 years agoresume: debian's resume is in /usr/lib/uswsusp
Harald Hoyer [Wed, 28 Aug 2013 08:57:23 +0000 (10:57 +0200)] 
resume: debian's resume is in /usr/lib/uswsusp

Hurray! Everybody reinvents the wheel!

10 years agodracut-functions.sh:get_devpath_block() make local vars local
Harald Hoyer [Tue, 27 Aug 2013 09:34:39 +0000 (11:34 +0200)] 
dracut-functions.sh:get_devpath_block() make local vars local

10 years agodmraid/mdraid: improve hostonly recognition
Harald Hoyer [Mon, 26 Aug 2013 12:04:56 +0000 (14:04 +0200)] 
dmraid/mdraid: improve hostonly recognition

Factor out get_devpath_block(), which also fixes a dmraid hostonly bug.

Also only include dmraid and mdraid, if they are actually in use.

10 years agodmraid/parse-dm.sh: if rd.md=0, use dmraid for imsm and ddf
Harald Hoyer [Mon, 26 Aug 2013 10:46:51 +0000 (12:46 +0200)] 
dmraid/parse-dm.sh: if rd.md=0, use dmraid for imsm and ddf

10 years agoi18n: check for setfont and loadkeys binaries
Harald Hoyer [Mon, 26 Aug 2013 08:19:49 +0000 (10:19 +0200)] 
i18n: check for setfont and loadkeys binaries

10 years agonetwork: move ibft parsing before all other network cmdline parser
Harald Hoyer [Mon, 26 Aug 2013 08:18:47 +0000 (10:18 +0200)] 
network: move ibft parsing before all other network cmdline parser

otherwise the config produced by ibft will not get processed

10 years agodracut-functions.sh:get_persistent_dev() do not check non-existent dirs
Harald Hoyer [Fri, 23 Aug 2013 17:04:12 +0000 (19:04 +0200)] 
dracut-functions.sh:get_persistent_dev() do not check non-existent dirs

10 years agouse ${var:+val} rather than ${var+val}
Harald Hoyer [Thu, 22 Aug 2013 09:24:01 +0000 (11:24 +0200)] 
use ${var:+val} rather than ${var+val}

${var:+val} also catches var=""

10 years agodracut-functions.sh:inst_rules() do not install from /etc in generic mode
Harald Hoyer [Thu, 22 Aug 2013 08:53:43 +0000 (10:53 +0200)] 
dracut-functions.sh:inst_rules() do not install from /etc in generic mode

In generic mode, local configuration should not be part of the image.

Also handle symlinks for rule files.

10 years agodracut-functions.sh: use builtin bash functions rather than tr
Harald Hoyer [Thu, 22 Aug 2013 08:52:49 +0000 (10:52 +0200)] 
dracut-functions.sh: use builtin bash functions rather than tr

convert uppercase to lowercase using bash syntax

10 years agoremoved freenode.txt
Harald Hoyer [Thu, 22 Aug 2013 08:24:15 +0000 (10:24 +0200)] 
removed freenode.txt

10 years agofreenode IRC #dracut verification
Harald Hoyer [Thu, 22 Aug 2013 08:14:24 +0000 (10:14 +0200)] 
freenode IRC #dracut verification

10 years agodracut.asc: document debugging dracut on shutdown
Harald Hoyer [Thu, 22 Aug 2013 07:39:38 +0000 (09:39 +0200)] 
dracut.asc: document debugging dracut on shutdown

10 years agoadd dracut.css for dracut.html
Harald Hoyer [Wed, 21 Aug 2013 11:12:55 +0000 (13:12 +0200)] 
add dracut.css for dracut.html

10 years agourl-lib.sh: handle 0-size files with curl
Harald Hoyer [Tue, 20 Aug 2013 14:15:17 +0000 (16:15 +0200)] 
url-lib.sh: handle 0-size files with curl

https://bugzilla.redhat.com/show_bug.cgi?id=989133#c9

10 years agodracut-functions.sh: add expand_persistent_dev()
Harald Hoyer [Tue, 20 Aug 2013 14:01:10 +0000 (16:01 +0200)] 
dracut-functions.sh: add expand_persistent_dev()

also fixes missing '{' for LABEL=... swaps

10 years agonetwork: do not depend on ifcfg
Harald Hoyer [Tue, 20 Aug 2013 13:09:33 +0000 (15:09 +0200)] 
network: do not depend on ifcfg

rather let ifcfg return 0 if /etc/sysconfig/network-scripts exists

10 years agodracut-032 032
Harald Hoyer [Tue, 20 Aug 2013 10:39:57 +0000 (12:39 +0200)] 
dracut-032

10 years agoadd newline to cmdline config files
Harald Hoyer [Tue, 20 Aug 2013 11:08:11 +0000 (13:08 +0200)] 
add newline to cmdline config files

10 years agodracut.sh: recognize swap entries in fstab with mountpoint "none"
Harald Hoyer [Tue, 20 Aug 2013 10:01:17 +0000 (12:01 +0200)] 
dracut.sh: recognize swap entries in fstab with mountpoint "none"

10 years agoadd persistent_policy configuration option
Harald Hoyer [Tue, 20 Aug 2013 08:28:14 +0000 (10:28 +0200)] 
add persistent_policy configuration option

10 years agodracut.conf.5.asc: correct ro_mnt documentation
Harald Hoyer [Tue, 20 Aug 2013 08:27:29 +0000 (10:27 +0200)] 
dracut.conf.5.asc: correct ro_mnt documentation

10 years agodracut-functions.sh:dracut_module_included() check with spaces
Harald Hoyer [Tue, 20 Aug 2013 07:03:22 +0000 (09:03 +0200)] 
dracut-functions.sh:dracut_module_included() check with spaces

check also for surrounding spaces in the module strings

10 years agodracut.sh: fixed checking for FIPS mode
Harald Hoyer [Tue, 20 Aug 2013 07:02:48 +0000 (09:02 +0200)] 
dracut.sh: fixed checking for FIPS mode

10 years agosystemd: pre-pivot hooks runs after /sysroot is mounted
WANG Chao [Fri, 16 Aug 2013 05:13:28 +0000 (13:13 +0800)] 
systemd: pre-pivot hooks runs after /sysroot is mounted

If rootflags=nofail, sysroot.mount won't strictly run "Before"
initrd-root-fs.target. So we need to order dracut-pre-pivot after
sysroot.mount.

10 years agodracut.sh: Fix [no-]early-microcode parameter and add documentation.
Daniel Schaal [Fri, 16 Aug 2013 21:16:15 +0000 (23:16 +0200)] 
dracut.sh: Fix [no-]early-microcode parameter and add documentation.

[no-]early-microcode was missing from getopt argument list.

Let arguments passed by command line override config files.

10 years agodracut.sh: add --persistent-policy option
Harald Hoyer [Fri, 16 Aug 2013 09:52:07 +0000 (11:52 +0200)] 
dracut.sh: add --persistent-policy option

--persistent-policy <policy>:
    Use <policy> to address disks and partitions.
    <policy> can be any directory name found in /dev/disk.
    E.g. "by-uuid", "by-label"

10 years agobase/dracut-lib.sh: move warn() definition before usage
Harald Hoyer [Fri, 16 Aug 2013 09:00:45 +0000 (11:00 +0200)] 
base/dracut-lib.sh: move warn() definition before usage

10 years agodracut.spec: correct License string
Harald Hoyer [Fri, 16 Aug 2013 09:00:21 +0000 (11:00 +0200)] 
dracut.spec: correct License string

10 years agodracut.spec: add bash module
Harald Hoyer [Thu, 15 Aug 2013 14:24:13 +0000 (16:24 +0200)] 
dracut.spec: add bash module

10 years agoadd parameter --print-cmdline
Harald Hoyer [Thu, 15 Aug 2013 13:52:22 +0000 (15:52 +0200)] 
add parameter --print-cmdline

This prints the kernel command line parameters for the current disk
layout.

$ dracut --print-cmdline
rd.luks.uuid=luks-e68c8906-6542-4a26-83c4-91b4dd9f0471
rd.lvm.lv=debian/root rd.lvm.lv=debian/usr root=/dev/mapper/debian-root
rootflags=rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered
rootfstype=ext4

10 years agoresurrect TEST-14-IMSM
Harald Hoyer [Thu, 15 Aug 2013 13:54:18 +0000 (15:54 +0200)] 
resurrect TEST-14-IMSM

10 years agodracut-functions.sh: add find_mp_fsopts
Harald Hoyer [Thu, 15 Aug 2013 10:23:04 +0000 (12:23 +0200)] 
dracut-functions.sh: add find_mp_fsopts

10 years agodracut-functions.sh: no more 'echo'
Harald Hoyer [Thu, 15 Aug 2013 10:22:26 +0000 (12:22 +0200)] 
dracut-functions.sh: no more 'echo'

10 years agorootfs-block: search all host_devs for a journal device
Harald Hoyer [Thu, 15 Aug 2013 08:56:31 +0000 (10:56 +0200)] 
rootfs-block: search all host_devs for a journal device

10 years agodracut-functions.sh: add find_dev_fsopts()
Harald Hoyer [Thu, 15 Aug 2013 09:14:14 +0000 (11:14 +0200)] 
dracut-functions.sh: add find_dev_fsopts()

10 years agoCreate initramfs without using udevadm
Harald Hoyer [Thu, 15 Aug 2013 08:44:20 +0000 (10:44 +0200)] 
Create initramfs without using udevadm

This enables building a hostonly image, without the udev database
populated.

10 years agotestsuite: fixed network interface names
Harald Hoyer [Thu, 15 Aug 2013 08:25:19 +0000 (10:25 +0200)] 
testsuite: fixed network interface names

10 years agodracut.spec: dracut-network requires dhclient
Harald Hoyer [Thu, 15 Aug 2013 06:32:38 +0000 (08:32 +0200)] 
dracut.spec: dracut-network requires dhclient