platform/upstream/dracut.git
13 years agolsinitrd: add "catinitrd" functionality
Harald Hoyer [Fri, 17 Sep 2010 13:21:27 +0000 (15:21 +0200)]
lsinitrd: add "catinitrd" functionality

lsinitrd <initramfs image> [<file to cat>]

13 years agobase/init: unset HOME and TERM for real init
Harald Hoyer [Wed, 15 Sep 2010 09:54:37 +0000 (11:54 +0200)]
base/init: unset HOME and TERM for real init

13 years agoBe sure and get the right architecture for rsylogd modules.
Peter Jones [Fri, 10 Sep 2010 15:30:28 +0000 (11:30 -0400)]
Be sure and get the right architecture for rsylogd modules.

I've tested this locally on 64-bit with:

dracut -a syslog -f -v foo.img `uname -r`

And I see this in the output:

I: *** Sourcing module syslog
I: Installing /sbin/rsyslogd
I: Installing /lib64/rsyslog/lmnet.so
I: Installing /lib64/rsyslog/imklog.so
I: Installing /lib64/rsyslog/imuxsock.so
I: Installing /usr/share/dracut/modules.d/98syslog/parse-syslog-opts.sh
I: Installing /usr/share/dracut/modules.d/98syslog/syslog-genrules.sh
I: Installing /usr/share/dracut/modules.d/98syslog/syslog-cleanup.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslogd-start.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslogd-stop.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslog.conf

13 years agonfs/install: fixed s/LIBDIR/libdir
Harald Hoyer [Fri, 10 Sep 2010 15:51:32 +0000 (17:51 +0200)]
nfs/install: fixed s/LIBDIR/libdir

13 years agoreformat source
Harald Hoyer [Fri, 10 Sep 2010 13:55:51 +0000 (15:55 +0200)]
reformat source

untabified

13 years agoreformat source code
Harald Hoyer [Fri, 10 Sep 2010 13:23:06 +0000 (15:23 +0200)]
reformat source code

removed tabs and set indention to 4 spaces
added emacs and vi format headers

13 years agoupdate rsyslog plugin paths
Glen Gray [Wed, 23 Jun 2010 11:28:00 +0000 (07:28 -0400)]
update rsyslog plugin paths

rsyslog's plugin paths moved, so correct for them.

13 years agoplymouth: do not create hvc0
Harald Hoyer [Wed, 25 Aug 2010 11:26:13 +0000 (13:26 +0200)]
plymouth: do not create hvc0

must have been a copy&paste error

13 years agomkinitrd-dracut.sh: fix stray "fi"
Andrey Borzenkov [Mon, 23 Aug 2010 17:56:24 +0000 (21:56 +0400)]
mkinitrd-dracut.sh: fix stray "fi"

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
13 years agodmraid: switch to rd_NO_MDIMSM, if no mdadm installed
Harald Hoyer [Mon, 23 Aug 2010 12:42:33 +0000 (14:42 +0200)]
dmraid: switch to rd_NO_MDIMSM, if no mdadm installed

13 years agobootchart module cleanup
Andrey Borzenkov [Wed, 11 Aug 2010 17:46:56 +0000 (21:46 +0400)]
bootchart module cleanup

- create /lib/bootchart in initramfs, not in live filesystem
- use proper dracut API to install files

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
13 years agofixed "use $libdir and $usrlibdir instead of ..."
Harald Hoyer [Mon, 23 Aug 2010 10:40:15 +0000 (12:40 +0200)]
fixed "use $libdir and $usrlibdir instead of ..."

13 years agomanpage corrections
Harald Hoyer [Mon, 23 Aug 2010 10:22:52 +0000 (12:22 +0200)]
manpage corrections

13 years agoNEWS: fixed typo
Harald Hoyer [Mon, 23 Aug 2010 10:22:03 +0000 (12:22 +0200)]
NEWS: fixed typo

13 years agomkinitrd: do not call dracut in host only mode
Harald Hoyer [Mon, 23 Aug 2010 08:36:46 +0000 (10:36 +0200)]
mkinitrd: do not call dracut in host only mode

13 years agodm: install all md/dm* kernel modules
Harald Hoyer [Mon, 23 Aug 2010 09:01:04 +0000 (11:01 +0200)]
dm: install all md/dm* kernel modules

13 years agodracut: fixed "Add support for bzip2 and xz"
Harald Hoyer [Mon, 23 Aug 2010 10:06:28 +0000 (12:06 +0200)]
dracut: fixed "Add support for bzip2 and xz"

s/xz/lzma/g and added manpage documentation

13 years agodracut: fixed "Clean up some conditional checking..."
Harald Hoyer [Mon, 23 Aug 2010 09:58:39 +0000 (11:58 +0200)]
dracut: fixed "Clean up some conditional checking..."

13 years agodracut: fixed "Shorten permission checking..."
Harald Hoyer [Mon, 23 Aug 2010 09:57:39 +0000 (11:57 +0200)]
dracut: fixed "Shorten permission checking..."

13 years agoMerged cryptroot-ask.sh from plymouth to crypt module.
Matt Smith [Sun, 22 Aug 2010 00:59:10 +0000 (18:59 -0600)]
Merged cryptroot-ask.sh from plymouth to crypt module.

First, it's duplicate code.

Second, it did not allow those who had plymouth installed to use other
methods, like the new usb key file. When building the initram,
it would install the plymouth cryptroot-ask script, and not
the crypt module one.

Added these new items to crypt module's cryptroot-ask.sh:
  - 'unset' for used variables
  - udevsettle

The non-plymouth cryptsetup prompt was using $1 instead of $device.
Changed prompt number from 1 to 5, as this is much nicer.
I believe plymouth already does infinite prompts.

Also added unset for usb key. Just saw it didn't unset its vars.

13 years agouse $libdir and $usrlibdir instead of individual detect with ldd
Amadeusz Żołnowski [Wed, 18 Aug 2010 18:11:29 +0000 (20:11 +0200)]
use $libdir and $usrlibdir instead of individual detect with ldd

13 years agodracut: lib and usr/lib dirs detection
Amadeusz Żołnowski [Wed, 18 Aug 2010 18:06:44 +0000 (20:06 +0200)]
dracut: lib and usr/lib dirs detection

First we check if $libdir and $usrlibdir vars are already set in config
file. If not we perform simple detect. Vars are exported - to be useful
in module/check scripts.

13 years ago60xen: use 'hash' instead of 'type'
Amadeusz Żołnowski [Wed, 18 Aug 2010 15:31:03 +0000 (17:31 +0200)]
60xen: use 'hash' instead of 'type'

13 years agouse 'type' built-in instead of external cmd 'which' in every Bash script
Amadeusz Żołnowski [Wed, 18 Aug 2010 15:29:44 +0000 (17:29 +0200)]
use 'type' built-in instead of external cmd 'which' in every Bash script

13 years agoAdd a PKGBUILD file to make building on Arch Linux from a git checkout easy.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Add a PKGBUILD file to make building on Arch Linux from a git checkout easy.

This might come in handy for anyone else trying out dracut on Arch.

13 years agoWe are precise about hostonly checking these days.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
We are precise about hostonly checking these days.

So get rid of the comment in 90crypt/check.
Also do a bit of trivial bashification.

13 years agoTrivial bashification of 00dash/install
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Trivial bashification of 00dash/install

13 years agoTrivial bashification and minor code rearrangement for initramfs compression.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Trivial bashification and minor code rearrangement for initramfs compression.

13 years agoPrettify the option setting loop in dracut.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Prettify the option setting loop in dracut.

THis just makes the args line up all nice and pretty.

13 years agoBashify mkinitrd-dracut.sh, introduce read_arg.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Bashify mkinitrd-dracut.sh, introduce read_arg.

Hack up argument processing in dracut and mkinitrd-dracut.sh to use
read_arg to flexibly process arguments.

13 years agoBashify error() and usage() in mkinitrd-dracut.sh
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Bashify error() and usage() in mkinitrd-dracut.sh

Some more trivial bashification.

13 years agoJust test the status of the cpio-and-compress pipe directly.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Just test the status of the cpio-and-compress pipe directly.

13 years agoAdd support for bzip2 and xz compressed initramfs images.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Add support for bzip2 and xz compressed initramfs images.

Current kernels know how to uncompress bzip2 and xz, so use them for compressing
the initramfs if asked.  The more compression the merrier.

Also add support for generating uncompressed images, although they
are usually not what you want.

13 years agoWe have $UID, use it instead of $(id -u)
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
We have $UID, use it instead of $(id -u)

No point in spawning a command and parsing its output when the UID
is already in the environment.

13 years agoFlatten our check to ensure that depmod works.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Flatten our check to ensure that depmod works.

No need for a nested if here.

13 years agoShorten permission checking to ensure we can actually write our initramfs.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Shorten permission checking to ensure we can actually write our initramfs.

These tests can be combined into an if... elif... elif... statement, and
that makes it clear they are all part of the same test.

13 years agoBashify the code that actually sources out config files.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Bashify the code that actually sources out config files.

Just some trivial bashification.

13 years agoClean up some conditional checking when trying to find our config files.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Clean up some conditional checking when trying to find our config files.

No point in checking the same condition twice when compound commands will do.

13 years agoGet rid of unneeded dirname calls.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Get rid of unneeded dirname calls.

Use parameter expansion instead.

13 years agoTrivial cleanups in dracut-functions
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Trivial cleanups in dracut-functions

This is a patch series I have been playing with for awhile.

It cleans up some of the dracut code and adds a PKGBUILD file to make
it easier to use in Arch Linux.

13 years agoplymouth: udev trigger with action=add
Harald Hoyer [Fri, 13 Aug 2010 09:26:34 +0000 (11:26 +0200)]
plymouth: udev trigger with action=add

13 years agoversion inc
Harald Hoyer [Mon, 9 Aug 2010 14:28:38 +0000 (16:28 +0200)]
version inc

13 years agoversion 007 007
Harald Hoyer [Mon, 9 Aug 2010 13:57:55 +0000 (15:57 +0200)]
version 007

13 years agoNEWS: update for 007
Harald Hoyer [Mon, 9 Aug 2010 13:56:47 +0000 (15:56 +0200)]
NEWS: update for 007

13 years agodracut.spec: add dracut.kernel man page
Harald Hoyer [Mon, 9 Aug 2010 14:12:23 +0000 (16:12 +0200)]
dracut.spec: add dracut.kernel man page

13 years agodracut.spec: build require docbook tools
Harald Hoyer [Mon, 9 Aug 2010 14:10:54 +0000 (16:10 +0200)]
dracut.spec: build require docbook tools

13 years agodracut.spec: remove gentoo specific modules
Harald Hoyer [Mon, 9 Aug 2010 14:06:02 +0000 (16:06 +0200)]
dracut.spec: remove gentoo specific modules

13 years agodracut.spec s/bootchartd/bootchart
Harald Hoyer [Mon, 9 Aug 2010 14:03:20 +0000 (16:03 +0200)]
dracut.spec s/bootchartd/bootchart

13 years agodracut.spec: install fedora.conf.example
Harald Hoyer [Mon, 9 Aug 2010 14:01:18 +0000 (16:01 +0200)]
dracut.spec: install fedora.conf.example

13 years agocrypt: depend on dm
Harald Hoyer [Mon, 9 Aug 2010 11:24:08 +0000 (13:24 +0200)]
crypt: depend on dm

13 years agoadd module gensplash
Amadeusz Żołnowski [Mon, 9 Aug 2010 10:44:05 +0000 (12:44 +0200)]
add module gensplash

13 years ago10i18n: --quiet for loadkeys
Amadeusz Żołnowski [Sun, 8 Aug 2010 18:07:00 +0000 (20:07 +0200)]
10i18n: --quiet for loadkeys

13 years agoplymouth: load dm_crypt module
Harald Hoyer [Mon, 9 Aug 2010 11:09:13 +0000 (13:09 +0200)]
plymouth: load dm_crypt module

13 years agoMakefile: install dracut.kernel.7
Harald Hoyer [Fri, 6 Aug 2010 16:15:51 +0000 (18:15 +0200)]
Makefile: install dracut.kernel.7

13 years agoAUTHORS update
Harald Hoyer [Fri, 6 Aug 2010 14:06:06 +0000 (16:06 +0200)]
AUTHORS update

13 years agomanpage update
Harald Hoyer [Fri, 6 Aug 2010 13:38:52 +0000 (15:38 +0200)]
manpage update

13 years agomanpage update
Harald Hoyer [Fri, 6 Aug 2010 13:32:08 +0000 (15:32 +0200)]
manpage update

13 years agodracut: add --fstab, to ignore /proc/self/mountinfo
Harald Hoyer [Fri, 6 Aug 2010 11:54:34 +0000 (13:54 +0200)]
dracut: add --fstab, to ignore /proc/self/mountinfo

13 years agomanpage xml: changed DTD to docbook 4.5
Harald Hoyer [Fri, 6 Aug 2010 11:53:24 +0000 (13:53 +0200)]
manpage xml: changed DTD to docbook 4.5

13 years agodracut.kernel.7.xml: updated I18N and LUKS sections
Amadeusz Żołnowski [Fri, 6 Aug 2010 11:14:18 +0000 (13:14 +0200)]
dracut.kernel.7.xml: updated I18N and LUKS sections

10i18n/README: typo corrected

13 years agoMakefile: use $(MAKE) and $(RM) instead of make and rm -f
Amadeusz Żołnowski [Fri, 6 Aug 2010 09:49:50 +0000 (11:49 +0200)]
Makefile: use $(MAKE) and $(RM) instead of make and rm -f

See: http://www.gnu.org/software/make/manual/make.html#MAKE-Variable

13 years agofedora.conf moved back to fedora.conf.example
Harald Hoyer [Fri, 6 Aug 2010 09:46:55 +0000 (11:46 +0200)]
fedora.conf moved back to fedora.conf.example

13 years agomanpages: changed to UTF-8
Harald Hoyer [Fri, 6 Aug 2010 09:46:39 +0000 (11:46 +0200)]
manpages: changed to UTF-8

13 years agomanpages: add note, that host-only mode does not work in chroot()
Harald Hoyer [Thu, 5 Aug 2010 17:13:16 +0000 (19:13 +0200)]
manpages: add note, that host-only mode does not work in chroot()

13 years agodracut-functions: use /proc/self/mountinfo, instead of /proc/mounts
Harald Hoyer [Thu, 5 Aug 2010 16:59:51 +0000 (18:59 +0200)]
dracut-functions: use /proc/self/mountinfo, instead of /proc/mounts

1. it's easier to get the major:minor
2. it's more failsafe in a chroot() (rescue CD case)

13 years agoFix ahci detection in kernel 2.6.35
Andrey Borzenkov [Thu, 5 Aug 2010 16:06:57 +0000 (20:06 +0400)]
Fix ahci detection in kernel 2.6.35

Kernel 2.6.35 (may be, earlier) split ahci into libahci.ko and ahci.ko
and added ahci_platform.ko. As a result, drivers ahci and ahci_platform
do not contain any symbol that are checked for storage modules (it is
libahci.ko that references ata_scsi_ioctl now). So add additional
symbol ahci_init_controller; it seems this is expected to be called by
every driver based on libahci.ko.

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
13 years agomanpage corrections
Harald Hoyer [Thu, 5 Aug 2010 16:12:38 +0000 (18:12 +0200)]
manpage corrections

13 years agodracut: let --fwdir be specified multiple times
Harald Hoyer [Thu, 5 Aug 2010 16:12:08 +0000 (18:12 +0200)]
dracut: let --fwdir be specified multiple times

13 years agodocumentation: moved to docbook man pages
Harald Hoyer [Thu, 5 Aug 2010 14:38:49 +0000 (16:38 +0200)]
documentation: moved to docbook man pages

13 years agofips: udev trigger with action=add
Harald Hoyer [Thu, 5 Aug 2010 06:47:17 +0000 (08:47 +0200)]
fips: udev trigger with action=add

13 years agoadd option --ignore-kernel-modules
Amadeusz Żołnowski [Wed, 4 Aug 2010 16:15:19 +0000 (18:15 +0200)]
add option --ignore-kernel-modules

Instead of adding modprobe and rmmod, create symlinks to /bin/true to
don't produce unnecessary errors.  Anyway it's a workaround for
following desired behaviour: modprobe tries to insert module only if
it's not built into kernel

13 years agoHarden check for used modules in hostonly mode
Andrey Borzenkov [Sun, 9 May 2010 18:23:58 +0000 (22:23 +0400)]
Harden check for used modules in hostonly mode

Make sure that we do not accept module name which is substring of
some other module name. This resulted in piix being mistakenly loaded
together with ata_piix. It completely broke DVD access here.

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
13 years ago10i18n: exit if console already initialized
Amadeusz Żołnowski [Mon, 26 Jul 2010 08:15:40 +0000 (10:15 +0200)]
10i18n: exit if console already initialized

13 years agorenamed 00bootchartd to 00bootchart
Harald Hoyer [Wed, 4 Aug 2010 16:27:48 +0000 (18:27 +0200)]
renamed 00bootchartd to 00bootchart

13 years agodracut-functions: fixed --omit
Harald Hoyer [Wed, 4 Aug 2010 15:46:54 +0000 (17:46 +0200)]
dracut-functions: fixed --omit

13 years agoinit: create /dev/.udev/rules.d with correct permissions
Harald Hoyer [Mon, 2 Aug 2010 13:58:48 +0000 (15:58 +0200)]
init: create /dev/.udev/rules.d with correct permissions

13 years agomkdir /dev/.udev/rules.d with mode 0755
Harald Hoyer [Mon, 2 Aug 2010 13:26:55 +0000 (15:26 +0200)]
mkdir /dev/.udev/rules.d with mode 0755

13 years agoNEWS: update for version 007
Harald Hoyer [Mon, 2 Aug 2010 12:54:09 +0000 (14:54 +0200)]
NEWS: update for version 007

13 years agomanpages: updated for /etc/dracut.conf.d
Harald Hoyer [Mon, 2 Aug 2010 12:53:47 +0000 (14:53 +0200)]
manpages: updated for /etc/dracut.conf.d

13 years agodracut-lib.sh: fixed getarg for nonexistent parameters
Harald Hoyer [Mon, 2 Aug 2010 12:16:10 +0000 (14:16 +0200)]
dracut-lib.sh: fixed getarg for nonexistent parameters

getarg returned an old "$val" for nonexistent parameters, because "val"
was not local

13 years agomdraid: try to start degraded arrays in various ways
Harald Hoyer [Mon, 2 Aug 2010 11:32:09 +0000 (13:32 +0200)]
mdraid: try to start degraded arrays in various ways

13 years agomdraid: remove mdadm.conf on rd_NO_MDADMCONF
Harald Hoyer [Mon, 2 Aug 2010 11:31:36 +0000 (13:31 +0200)]
mdraid: remove mdadm.conf on rd_NO_MDADMCONF

13 years agoTEST-12-RAID-DEG: do not execute rd_NO_MDADMCONF tests
Harald Hoyer [Mon, 2 Aug 2010 11:30:21 +0000 (13:30 +0200)]
TEST-12-RAID-DEG: do not execute rd_NO_MDADMCONF tests

13 years agoTEST-14-IMSM: fixed test
Harald Hoyer [Mon, 2 Aug 2010 09:58:48 +0000 (11:58 +0200)]
TEST-14-IMSM: fixed test

13 years agoTEST-13-ENC-RAID-LVM: prepend "luks-" to rd_LUKS_UUID argument
Harald Hoyer [Mon, 2 Aug 2010 09:36:05 +0000 (11:36 +0200)]
TEST-13-ENC-RAID-LVM: prepend "luks-" to rd_LUKS_UUID argument

13 years agomdraid: remove "local"
Harald Hoyer [Mon, 2 Aug 2010 09:35:25 +0000 (11:35 +0200)]
mdraid: remove "local"

13 years agoinit: set old umask before switch_root
Harald Hoyer [Mon, 2 Aug 2010 09:28:16 +0000 (11:28 +0200)]
init: set old umask before switch_root

13 years agocrypt: fix printf
Harald Hoyer [Mon, 2 Aug 2010 09:26:49 +0000 (11:26 +0200)]
crypt: fix printf

13 years agoTEST-12-RAID-DEG: double disk space
Harald Hoyer [Mon, 2 Aug 2010 09:13:06 +0000 (11:13 +0200)]
TEST-12-RAID-DEG: double disk space

13 years agoi18n: only source config files, if present
Harald Hoyer [Mon, 2 Aug 2010 09:12:42 +0000 (11:12 +0200)]
i18n: only source config files, if present

13 years agomdraid: --no-degraded not allowed with -I
Harald Hoyer [Mon, 2 Aug 2010 09:05:11 +0000 (11:05 +0200)]
mdraid: --no-degraded not allowed with -I

13 years agodracut-functions: fix check=255 logic and dependencies
Harald Hoyer [Mon, 2 Aug 2010 07:40:18 +0000 (09:40 +0200)]
dracut-functions: fix check=255 logic and dependencies

13 years agoTEST: omit network module for non-network tests
Harald Hoyer [Mon, 2 Aug 2010 08:01:59 +0000 (10:01 +0200)]
TEST: omit network module for non-network tests

13 years agodracut: let some arguments add up
Harald Hoyer [Mon, 2 Aug 2010 07:59:36 +0000 (09:59 +0200)]
dracut: let some arguments add up

Specifying multiple -a, -o, -m, -d, --add-drivers, --filesystems now
adds up.

13 years agocrypt: loop until all non-busy crypt devs closed
Harald Hoyer [Mon, 2 Aug 2010 07:40:55 +0000 (09:40 +0200)]
crypt: loop until all non-busy crypt devs closed

13 years agodebug: add fsck to debug module
Harald Hoyer [Mon, 2 Aug 2010 07:39:49 +0000 (09:39 +0200)]
debug: add fsck to debug module

13 years agodracut: use hardlink, if available to safe some space
Harald Hoyer [Mon, 2 Aug 2010 07:39:13 +0000 (09:39 +0200)]
dracut: use hardlink, if available to safe some space

13 years agoversion pre 7
Harald Hoyer [Mon, 2 Aug 2010 06:58:08 +0000 (08:58 +0200)]
version pre 7

13 years agodracut.spec: redhat-i18n -> i18n
Harald Hoyer [Mon, 2 Aug 2010 06:20:50 +0000 (08:20 +0200)]
dracut.spec: redhat-i18n -> i18n

13 years agodracut.spec: add bootchartd
Harald Hoyer [Mon, 2 Aug 2010 06:21:28 +0000 (08:21 +0200)]
dracut.spec: add bootchartd