]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
13 years agolsinitrd: default to /boot/initramfs-$(uname -r).img 010
Harald Hoyer [Thu, 31 Mar 2011 17:49:43 +0000 (19:49 +0200)] 
lsinitrd: default to /boot/initramfs-$(uname -r).img

13 years agoNEWS: inc version and add NEWS
Harald Hoyer [Thu, 31 Mar 2011 16:49:27 +0000 (18:49 +0200)] 
NEWS: inc version and add NEWS

13 years agodracut.spec: drop net-tools requirement
Harald Hoyer [Thu, 31 Mar 2011 16:49:02 +0000 (18:49 +0200)] 
dracut.spec: drop net-tools requirement

13 years agoPKGBUILD, debian/*: changed URLs to kernel.org
Harald Hoyer [Thu, 31 Mar 2011 16:48:27 +0000 (18:48 +0200)] 
PKGBUILD, debian/*: changed URLs to kernel.org

13 years agodracut.spec: fixed URL
Harald Hoyer [Thu, 31 Mar 2011 16:45:49 +0000 (18:45 +0200)] 
dracut.spec: fixed URL

13 years agoMakefile: "make dist" now generates .tar.gz
Harald Hoyer [Thu, 31 Mar 2011 16:45:01 +0000 (18:45 +0200)] 
Makefile: "make dist" now generates .tar.gz

13 years agobase/init: reset PATH after the /run move
Harald Hoyer [Thu, 31 Mar 2011 12:10:22 +0000 (14:10 +0200)] 
base/init: reset PATH after the /run move

13 years agobase/dracut-lib.sh: changed kmgs log levels
Harald Hoyer [Thu, 31 Mar 2011 11:12:38 +0000 (13:12 +0200)] 
base/dracut-lib.sh: changed kmgs log levels

New kernel/dmesg understands syslog levels, so we log with "+24" to indicate
that dracut is a daemon (current init).

13 years agodmsquash-live/dmsquash-live-genrules.sh: fixed udev rule location
Harald Hoyer [Thu, 31 Mar 2011 06:24:15 +0000 (08:24 +0200)] 
dmsquash-live/dmsquash-live-genrules.sh: fixed udev rule location

Fixed the rule directory to $UDEVRULESD

13 years agoplymouth: use /run/plymouth/pid instead of /run/initramfs/plymouth
Harald Hoyer [Wed, 30 Mar 2011 14:24:57 +0000 (16:24 +0200)] 
plymouth: use /run/plymouth/pid instead of /run/initramfs/plymouth

13 years agofips: fixed "boot=<dev>" handling
Harald Hoyer [Wed, 30 Mar 2011 12:50:42 +0000 (14:50 +0200)] 
fips: fixed "boot=<dev>" handling

13 years agobase/init: fixed compat /dev/.initramfs copy
Harald Hoyer [Wed, 30 Mar 2011 01:23:37 +0000 (03:23 +0200)] 
base/init: fixed compat /dev/.initramfs copy

13 years agodoc: s#/init.log#/run/initramfs/init.log#g
Harald Hoyer [Wed, 30 Mar 2011 01:22:14 +0000 (03:22 +0200)] 
doc: s#/init.log#/run/initramfs/init.log#g

13 years agobase/dracut-lib.sh: relax getargbool value parsing
Harald Hoyer [Tue, 29 Mar 2011 23:45:17 +0000 (01:45 +0200)] 
base/dracut-lib.sh: relax getargbool value parsing

if a non-boolean value was specified, like "yes" or "no",
getargbool() would error, because we check for "$val -eq 0"

13 years agobase/init: fix cdrom polling
Harald Hoyer [Tue, 29 Mar 2011 22:01:00 +0000 (00:01 +0200)] 
base/init: fix cdrom polling

13 years agoplymouth gensplash: check for console_init before calling it
Harald Hoyer [Tue, 29 Mar 2011 14:38:11 +0000 (16:38 +0200)] 
plymouth gensplash: check for console_init before calling it

Thanks Jon Ander Hernandez!

13 years agoEnsure rpc_pipefs is mounted
Jon Ander Hernandez [Fri, 18 Feb 2011 11:24:06 +0000 (12:24 +0100)] 
Ensure rpc_pipefs is mounted

While on some systems (like Fedora) rpc_pipefs is mounted
automatically when sunrpc module is loaded, on Debian based systems it
needs to be mounted manually.

13 years ago40network/dhcp-root.sh: s#initqueue-finished#initqueue/finished#g
Harald Hoyer [Tue, 29 Mar 2011 13:46:53 +0000 (15:46 +0200)] 
40network/dhcp-root.sh: s#initqueue-finished#initqueue/finished#g

13 years agodracut: add "/lib/firmware/updates" to default firmware path
Harald Hoyer [Tue, 29 Mar 2011 13:32:34 +0000 (15:32 +0200)] 
dracut: add "/lib/firmware/updates" to default firmware path

13 years agodracut: removed extra char in "Including modules done"
Harald Hoyer [Tue, 29 Mar 2011 12:45:08 +0000 (14:45 +0200)] 
dracut: removed extra char in "Including modules done"

13 years agodracut-functions: bashified ret=ret+$? to ret+=$?
Harald Hoyer [Tue, 29 Mar 2011 09:30:27 +0000 (11:30 +0200)] 
dracut-functions: bashified ret=ret+$? to ret+=$?

13 years agodracut: source reformat with line breaks
Harald Hoyer [Tue, 29 Mar 2011 09:27:15 +0000 (11:27 +0200)] 
dracut: source reformat with line breaks

13 years agodracut: simplify $kernel version argument setting
Harald Hoyer [Tue, 29 Mar 2011 09:21:54 +0000 (11:21 +0200)] 
dracut: simplify $kernel version argument setting

13 years agodracut: don't skip zero-length string outfile argument
Amadeusz Żołnowski [Mon, 28 Mar 2011 23:21:56 +0000 (01:21 +0200)] 
dracut: don't skip zero-length string outfile argument

When '' was passed as outfile, dracut generated name with following
pattern:

  /boot/initramfs-$kernel

With commit 486a1b9324d6fc7bc534d8147d64b8b259692c46 dracut skips ''
argument.

13 years agoRevert "dracut: don't skip zero-length string outfile argument"
Harald Hoyer [Tue, 29 Mar 2011 08:52:22 +0000 (10:52 +0200)] 
Revert "dracut: don't skip zero-length string outfile argument"

This reverts commit 0dd37f13c5cf507dbc6fd68605784ce350ef15cd.

13 years agodracut: don't skip zero-length string outfile argument
Harald Hoyer [Tue, 29 Mar 2011 08:25:24 +0000 (10:25 +0200)] 
dracut: don't skip zero-length string outfile argument

When '' was passed as outfile, dracut generated name with following
pattern:

  /boot/initramfs-${kernel}.img

With commit 486a1b9324d6fc7bc534d8147d64b8b259692c46 dracut skips ''
argument.

13 years agoNEWS: update 009
Harald Hoyer [Mon, 28 Mar 2011 19:09:34 +0000 (21:09 +0200)] 
NEWS: update

13 years agodracut.conf.d/fedora.conf.example: change stdloglvl to 3
Harald Hoyer [Mon, 28 Mar 2011 19:08:54 +0000 (21:08 +0200)] 
dracut.conf.d/fedora.conf.example: change stdloglvl to 3

13 years agoAUTHORS: update
Harald Hoyer [Mon, 28 Mar 2011 19:08:23 +0000 (21:08 +0200)] 
AUTHORS: update

13 years ago02caps: changed pre-pivot priority to 00
Harald Hoyer [Mon, 28 Mar 2011 18:33:20 +0000 (20:33 +0200)] 
02caps: changed pre-pivot priority to 00

caps should be dropped before any actions with the mounted rootfs happen

13 years ago10rpmversion/version.sh: version file moved to /lib/dracut
Harald Hoyer [Mon, 28 Mar 2011 18:26:29 +0000 (20:26 +0200)] 
10rpmversion/version.sh: version file moved to /lib/dracut

13 years agoNEWS: update
Harald Hoyer [Mon, 28 Mar 2011 15:52:46 +0000 (17:52 +0200)] 
NEWS: update

13 years ago99base/init: fall back to manual cdrom polling
Harald Hoyer [Mon, 28 Mar 2011 15:46:03 +0000 (17:46 +0200)] 
99base/init: fall back to manual cdrom polling

13 years ago40network: make dhclient mandatory again
Harald Hoyer [Mon, 28 Mar 2011 15:23:06 +0000 (17:23 +0200)] 
40network: make dhclient mandatory again

13 years ago40network: install dhclient, brctl and ifenslave optionally
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:49 +0000 (15:56 +0100)] 
40network: install dhclient, brctl and ifenslave optionally

Warning given by check() function in case if any of those binaries
doesn't exist was removed, because it's produces by "dracut_install -o"
later.

13 years agodracut.conf.5.xml, dracut.8.xml: logging options and -M documented
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:52 +0000 (15:56 +0100)] 
dracut.conf.5.xml, dracut.8.xml: logging options and -M documented

13 years agodracut: new option: -M, --show-modules - lists modules on build
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:51 +0000 (15:56 +0100)] 
dracut: new option: -M, --show-modules - lists modules on build

Module name is printed to standard output before its inclusion.

13 years agodracut-logger: /dev/log is socket, not character device
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:50 +0000 (15:56 +0100)] 
dracut-logger: /dev/log is socket, not character device

Fixed typo in error message by the way.

13 years agomodules.d: logging functions adjusted to dracut-logger
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:48 +0000 (15:56 +0100)] 
modules.d: logging functions adjusted to dracut-logger

13 years agodracut-functions: logging functions adjusted to dracut-logger
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:47 +0000 (15:56 +0100)] 
dracut-functions: logging functions adjusted to dracut-logger

13 years agodracut-functions: code formatting corrected
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:46 +0000 (15:56 +0100)] 
dracut-functions: code formatting corrected

13 years agodracut: when stdloglvl not set defaulted to 0 - should be 4
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:45 +0000 (15:56 +0100)] 
dracut: when stdloglvl not set defaulted to 0 - should be 4

Removed unnecessary stdloglvl default in dracut.conf.

13 years agodracut-logger: 'user' facility for build-time and 'daemon' for boot-time
Amadeusz Żołnowski [Fri, 25 Mar 2011 14:56:44 +0000 (15:56 +0100)] 
dracut-logger: 'user' facility for build-time and 'daemon' for boot-time

13 years agodracut-functions: try to find dracutbasedir, if not set
Harald Hoyer [Fri, 25 Mar 2011 14:40:51 +0000 (15:40 +0100)] 
dracut-functions: try to find dracutbasedir, if not set

13 years agodracut-functions: use "type" to determine the need of sourcing dracut-logger
Harald Hoyer [Fri, 25 Mar 2011 14:38:54 +0000 (15:38 +0100)] 
dracut-functions: use "type" to determine the need of sourcing dracut-logger

13 years agologinit: log to /run/initramfs/init.log
Harald Hoyer [Fri, 25 Mar 2011 12:35:05 +0000 (13:35 +0100)] 
loginit: log to /run/initramfs/init.log

13 years agologinit: use /run/initramfs/init.log.end as end marker
Harald Hoyer [Fri, 25 Mar 2011 12:34:37 +0000 (13:34 +0100)] 
loginit: use /run/initramfs/init.log.end as end marker

13 years agobase/dracut-lib.sh: s/RDDEBUG/RD_DEBUG/g
Harald Hoyer [Fri, 25 Mar 2011 12:32:02 +0000 (13:32 +0100)] 
base/dracut-lib.sh: s/RDDEBUG/RD_DEBUG/g

RDDEBUG would be unset by the environment cleanup in init and logging
would be turned off afterwards.

13 years agoMove all hooks to "$hookdir"
Harald Hoyer [Fri, 25 Mar 2011 12:31:34 +0000 (13:31 +0100)] 
Move all hooks to "$hookdir"

hookdir=/lib/dracut/hooks for now, to keep the root directory clean

13 years agocheck for getarg() function before sourcing dracut-lib.sh
Harald Hoyer [Fri, 25 Mar 2011 12:07:39 +0000 (13:07 +0100)] 
check for getarg() function before sourcing dracut-lib.sh

make use of "type getarg" to check, if we really need to source
dracut-lib.sh

13 years agodracut-functions: install udev rules
Harald Hoyer [Fri, 25 Mar 2011 12:05:05 +0000 (13:05 +0100)] 
dracut-functions: install udev rules

Install the udev rules to /lib, if the original rule is found there.

13 years agomkdir -m 0755
Harald Hoyer [Fri, 25 Mar 2011 12:04:16 +0000 (13:04 +0100)] 
mkdir -m 0755

add the missing directory permissions to mkdir

13 years agonetwork: install brctl optionally
Harald Hoyer [Fri, 25 Mar 2011 12:02:10 +0000 (13:02 +0100)] 
network: install brctl optionally

13 years agomove dracut version file to /lib/dracut/dracut-$version
Harald Hoyer [Fri, 25 Mar 2011 12:00:24 +0000 (13:00 +0100)] 
move dracut version file to /lib/dracut/dracut-$version

13 years agodracut: use readlink for drautbasedir if "-l"
Harald Hoyer [Fri, 25 Mar 2011 11:51:24 +0000 (12:51 +0100)] 
dracut: use readlink for drautbasedir if "-l"

13 years agobase/init: fixed /dev/.initramfs creation, for no "/run"
Harald Hoyer [Thu, 24 Mar 2011 10:31:49 +0000 (11:31 +0100)] 
base/init: fixed /dev/.initramfs creation, for no "/run"

13 years agodracut: fixed directory handling, if image is created in "/"
Harald Hoyer [Thu, 24 Mar 2011 10:30:23 +0000 (11:30 +0100)] 
dracut: fixed directory handling, if image is created in "/"

13 years agoUpdate PKGBUILD to force backups of /etc/dracut.conf on install.
Victor Lowther [Sat, 19 Mar 2011 15:48:19 +0000 (10:48 -0500)] 
Update PKGBUILD to force backups of /etc/dracut.conf on install.

13 years agoMake compression do The Right Thing based on what is in the config files.
Victor Lowther [Sat, 19 Mar 2011 15:48:19 +0000 (10:48 -0500)] 
Make compression do The Right Thing based on what is in the config files.

13 years agoUpdate and slightly refactor compression handling.
Victor Lowther [Sat, 19 Mar 2011 15:48:19 +0000 (10:48 -0500)] 
Update and slightly refactor compression handling.

This adds a --compress= option along with xz support for 2.6.38 and above.

13 years agodracut: fix arithemtic ${#VAR[@]} tests
Michal Soltys [Sun, 20 Mar 2011 19:56:17 +0000 (20:56 +0100)] 
dracut: fix arithemtic ${#VAR[@]} tests

This patch fixes a handful of ${#VAR[@]} tests, which can't be evaluated
as text expressions - the results is always true in such case, because
"0" is non-empty string.

Signed-off-by: Michal Soltys <soltys@ziu.info>
13 years agos#/dev/.run#/run#g
Harald Hoyer [Fri, 18 Mar 2011 16:19:26 +0000 (17:19 +0100)] 
s#/dev/.run#/run#g

Move things where they really belong to.

13 years agodracut-logger: don't debug log "return 0" of dlog()
Harald Hoyer [Thu, 17 Mar 2011 11:16:33 +0000 (12:16 +0100)] 
dracut-logger: don't debug log "return 0" of dlog()

13 years agodracut-logger: turn off xtrace for log messages
Harald Hoyer [Thu, 17 Mar 2011 11:13:44 +0000 (12:13 +0100)] 
dracut-logger: turn off xtrace for log messages

Turn off xtrace for log messages and turn it back on, if $debug is set.

13 years agoMakefile: split syntax check from target "check" to "syncheck"
Harald Hoyer [Thu, 17 Mar 2011 11:12:48 +0000 (12:12 +0100)] 
Makefile: split syntax check from target "check" to "syncheck"

also add syntax check for the bash scripts

13 years agodracut: script adjusted to new logging facility; -v changed
Amadeusz Żołnowski [Wed, 16 Mar 2011 20:24:30 +0000 (21:24 +0100)] 
dracut: script adjusted to new logging facility; -v changed

-v meaning has changed. Now it increases verbosity level. -q option has
been added, which decreases verbosity level. Both options might be
specified multiple times.

13 years agodracut-logger: make $maxloglvl public
Amadeusz Żołnowski [Wed, 16 Mar 2011 20:24:29 +0000 (21:24 +0100)] 
dracut-logger: make $maxloglvl public

$maxloglvl might be useful to check, if expensive informational
operation is going to be logged at all, before executing it.

13 years agodracut: install ld.so.conf* with dracut_install instead of cp
Amadeusz Żołnowski [Wed, 16 Mar 2011 20:24:28 +0000 (21:24 +0100)] 
dracut: install ld.so.conf* with dracut_install instead of cp

13 years agobase/init: for udev > 166 we will create and use /dev/.run/udev/rules.d
Harald Hoyer [Wed, 16 Mar 2011 20:24:57 +0000 (21:24 +0100)] 
base/init: for udev > 166 we will create and use /dev/.run/udev/rules.d

See:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=e68b4c2857942257268134cf7028b80f5a6a8103;hp=98ab6a377285d5943563cfa397e8b350e43878ec

13 years agodracut: add "--check=crc32" to xz compression
Harald Hoyer [Wed, 16 Mar 2011 20:17:26 +0000 (21:17 +0100)] 
dracut: add "--check=crc32" to xz compression

As mentioned in kernel/Documentation/xz.txt:

...
Notes on compression options

  Since the XZ Embedded supports only streams with no integrity check
  or CRC32, make sure that you don't use some other integrity check
  type when encoding files that are supposed to be decoded by the
  kernel. With liblzma, you need to use either LZMA_CHECK_NONE or
  LZMA_CHECK_CRC32 when encoding. With the xz command line tool, use
  --check=none or --check=crc32.

  Using CRC32 is strongly recommended unless there is some other layer
  which will verify the integrity of the uncompressed data anyway.
...

13 years agoInstall dracut-logger and add it to the spec file
Harald Hoyer [Wed, 16 Mar 2011 12:56:20 +0000 (13:56 +0100)] 
Install dracut-logger and add it to the spec file

13 years agodracut-logger: convertion to kernel console log level for kmsg
Amadeusz Żołnowski [Tue, 15 Mar 2011 20:16:37 +0000 (21:16 +0100)] 
dracut-logger: convertion to kernel console log level for kmsg

13 years agodocs: "/conf/conf.d" should be "/etc/conf.d"
Will Woods [Tue, 15 Mar 2011 21:43:11 +0000 (17:43 -0400)] 
docs: "/conf/conf.d" should be "/etc/conf.d"

The code actually looks in /etc/conf.d; make the docs reflect that.

13 years agodracut-logger: wrap dlog to read stdin
Harald Hoyer [Tue, 15 Mar 2011 19:51:58 +0000 (20:51 +0100)] 
dracut-logger: wrap dlog to read stdin

Moved dlog() to _do_dlog() and created dlog() which reads from stdin if
no arguments (except the loglevel) are given.

This enables e.g.:

dwarn "This is a warning!"

echo "This is a warning!" | dwarn

13 years agodracut: initialize stdloglvl_l
Harald Hoyer [Tue, 15 Mar 2011 19:07:01 +0000 (20:07 +0100)] 
dracut: initialize stdloglvl_l

13 years agodracut-logger: export _maxloglvl to skip multiple dlog_init()
Harald Hoyer [Tue, 15 Mar 2011 19:03:17 +0000 (20:03 +0100)] 
dracut-logger: export _maxloglvl to skip multiple dlog_init()

13 years agodracut-logger: logging facility module for build- and boot-time
Amadeusz Żołnowski [Tue, 15 Mar 2011 18:37:45 +0000 (19:37 +0100)] 
dracut-logger: logging facility module for build- and boot-time

It's dash compatible to be used also at boot-time. For now it's included
by dracut-functions and replaces functions: dinfo(), dwarning() and
derror(). New options are introduced: -L|--stdlog, and -q|--quiet to
control stderr verbosity. Logging to file or syslog may be controlled by
options set in config file.

Note that code is not adjusted to the meaning of the new logging
functions, yet.

Doxygen formatted documentation (as a proposal, by the way) is included
in dracut-logger.

13 years agodracut: add --xz to compress with xz
Harald Hoyer [Tue, 15 Mar 2011 18:49:58 +0000 (19:49 +0100)] 
dracut: add --xz to compress with xz

13 years agolsinitrd: cope with xz and lzma compressed images
Harald Hoyer [Tue, 15 Mar 2011 18:49:13 +0000 (19:49 +0100)] 
lsinitrd: cope with xz and lzma compressed images

13 years agosyslog: fixed warn() and dwarning() calls
Harald Hoyer [Tue, 15 Mar 2011 14:41:04 +0000 (15:41 +0100)] 
syslog: fixed warn() and dwarning() calls

13 years agodmsquash-live: use 'rootfs.img' for rootfs image name
Will Woods [Fri, 11 Mar 2011 21:29:09 +0000 (16:29 -0500)] 
dmsquash-live: use 'rootfs.img' for rootfs image name

Every image gets handled the same way regardless of filesystem, so
let's use a filesystem-neutral name (rather than adding new
lines for every fstype anyone might want to use).

13 years agocryptoroot-ask: limit number of plymouth password requests
Andrey Borzenkov [Fri, 11 Mar 2011 10:44:02 +0000 (11:44 +0100)] 
cryptoroot-ask: limit number of plymouth password requests

Set number ot retries to 5 to align with non-plymouth case.

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
13 years agocryptroot-ask: check that plymouth is running before use
Andrey Borzenkov [Thu, 10 Mar 2011 22:54:04 +0000 (01:54 +0300)] 
cryptroot-ask: check that plymouth is running before use

Otherwise there is no way to skip pasword prompt. --has-active-vt
seems to correctly catch also the case when plymouthd is started
but splash is disabled.

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
13 years agodracut.conf.d/fedora.conf.example: turn off fips again
Harald Hoyer [Thu, 10 Mar 2011 20:34:06 +0000 (21:34 +0100)] 
dracut.conf.d/fedora.conf.example: turn off fips again

use dracut.conf.d/fips.conf.example and install it to
/etc/dracut.conf.d/40-fips.conf to turn it on

13 years agoTEST-50-MULTINIC: change /dev/.initramfs to /dev/.run/initramfs
Harald Hoyer [Thu, 10 Mar 2011 18:49:08 +0000 (19:49 +0100)] 
TEST-50-MULTINIC: change /dev/.initramfs to /dev/.run/initramfs

13 years agodracut.spec: inc release to 009 prerelease
Harald Hoyer [Thu, 10 Mar 2011 18:24:29 +0000 (19:24 +0100)] 
dracut.spec: inc release to 009 prerelease

13 years agodracut.spec: remove insmodpost module
Harald Hoyer [Thu, 10 Mar 2011 18:23:21 +0000 (19:23 +0100)] 
dracut.spec: remove insmodpost module

13 years agodracut.spec: add caps subpackage
Harald Hoyer [Thu, 10 Mar 2011 18:22:40 +0000 (19:22 +0100)] 
dracut.spec: add caps subpackage

13 years agoprepare for future udev rules.d location
Harald Hoyer [Thu, 10 Mar 2011 18:18:14 +0000 (19:18 +0100)] 
prepare for future udev rules.d location

future udev will have rules.d in /dev/.run/udev/rules.d

Also remove compat symlinks, because we want to get rid of these files
anyway.

13 years agorootfs-block/mount-root.sh: rename flag file for fsck
Harald Hoyer [Thu, 10 Mar 2011 18:17:23 +0000 (19:17 +0100)] 
rootfs-block/mount-root.sh: rename flag file for fsck

/dev/.run/initramfs/fsck -> /dev/.run/initramfs/root-fsck

13 years agobase/init: copy /init.log with rd.copystate=1
Harald Hoyer [Thu, 10 Mar 2011 18:16:29 +0000 (19:16 +0100)] 
base/init: copy /init.log with rd.copystate=1

13 years agodracut: let some parameters be specified multiple times
Harald Hoyer [Thu, 10 Mar 2011 16:01:10 +0000 (17:01 +0100)] 
dracut: let some parameters be specified multiple times

These parameters can now be specified multiple times:
-a|--add
--add-drivers
-m|--modules
-o|--omit
-d|--drivers
--filesystems
-I|--install
--fwdir
-i|--include

13 years agodracut-functions: add pop() and push()
Harald Hoyer [Thu, 10 Mar 2011 14:58:42 +0000 (15:58 +0100)] 
dracut-functions: add pop() and push()

13 years agodracut: make options position independent
Harald Hoyer [Thu, 10 Mar 2011 14:55:02 +0000 (15:55 +0100)] 
dracut: make options position independent

now this is possible:
$ dracut test.img -f
$ dracut test.img '' -f

13 years agodracut: make "-i, --include SOURCE TARGET" work for files, too
Harald Hoyer [Wed, 9 Mar 2011 20:50:04 +0000 (21:50 +0100)] 
dracut: make "-i, --include SOURCE TARGET" work for files, too

13 years agoadd caps module, to drop capabilities
Harald Hoyer [Wed, 9 Mar 2011 17:10:54 +0000 (18:10 +0100)] 
add caps module, to drop capabilities

This adds the following parameters:
rd.caps=1
turn the caps module on/off
rd.caps.initdrop=cap_sys_module,cap_sys_rawio
drop the specified comma seperated capabilities
rd.caps.disablemodules=1
turn off module loading
rd.caps.disablekexec=1
turn off the kexec functionality

If module loading is turned off, all modules have to be loaded in the
initramfs, which are used later on. This can be done with
"rd.driver.pre="
rd.driver.pre=autofs4,sunrpc,ipt_REJECT,nf_conntrack_ipv4,....

Because the kernel command line would get huge with all those drivers, I
recommend to make use of $initramfs/etc/cmdline.

So, all rd.caps.* and rd.driver.pre arguments are in caps.conf can be
copied to $initramfs/etc/cmdline with "-i caps.conf /etc/cmdline".

Also all modules have to be loaded in the initramfs via "--add-drivers".

The resulting initramfs creation would look like this:

  --add-drivers "autofs4 sunrpc ipt_REJECT nf_conntrack_ipv4 \
  nf_defrag_ipv4 iptable_filter ip_tables
  ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack
  ip6table_filter ip6_tables dm_mirror dm_region_hash dm_log uinput ppdev
  parport_pc parport ipv6 sg 8139too 8139cp mii i2c_piix4 i2c_core ext3
  jbd mbcache sd_mod crc_t10dif sr_mod cdrom ata_generic pata_acpi ata_piix
  dm_mod" \
  /boot/initramfs-caps.img

13 years agomkinitrd: fix incorrect basename in mkinitrd usage message
Vadim Kuznetsov [Thu, 10 Mar 2011 15:05:08 +0000 (16:05 +0100)] 
mkinitrd: fix incorrect basename in mkinitrd usage message

Steps to Reproduce:
1. run mkinitrd -h

Actual results:
$ mkinitrd
usage: /usr/sbin [--version] [--help] [-v] [-f] [--preload <module>]
       [--image-version] [--with=<module>]
        <initrd-image> <kernel-version>

Expected results:
$ mkinitrd
usage: mkinitrd [--version] [--help] [-v] [-f] [--preload <module>]
       [--image-version] [--with=<module>]
       <initrd-image> <kernel-version>

13 years agokernel-modules/module-setup.sh: fix instmods $filesystems
Harald Hoyer [Thu, 10 Mar 2011 15:45:07 +0000 (16:45 +0100)] 
kernel-modules/module-setup.sh: fix instmods $filesystems

especially in host_only mode, $filesystems was not honored

13 years agomove insmodpost and blacklisting to 90kernel-modules
Harald Hoyer [Thu, 10 Mar 2011 11:54:28 +0000 (12:54 +0100)] 
move insmodpost and blacklisting to 90kernel-modules

also correctly parse rd.driver.{blacklist,pre,post}

13 years agord.driver.*: accept comma separated list
Harald Hoyer [Wed, 9 Mar 2011 20:51:16 +0000 (21:51 +0100)] 
rd.driver.*: accept comma separated list

accept a comma seperated list of kernel drivers for
rd.driver.blacklist
rd.driver.pre
rd.driver.post