Harald Hoyer [Fri, 17 Sep 2010 13:21:27 +0000 (15:21 +0200)]
lsinitrd: add "catinitrd" functionality
lsinitrd <initramfs image> [<file to cat>]
Harald Hoyer [Wed, 15 Sep 2010 09:54:37 +0000 (11:54 +0200)]
base/init: unset HOME and TERM for real init
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
Harald Hoyer [Fri, 10 Sep 2010 15:51:32 +0000 (17:51 +0200)]
nfs/install: fixed s/LIBDIR/libdir
Harald Hoyer [Fri, 10 Sep 2010 13:55:51 +0000 (15:55 +0200)]
reformat source
untabified
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
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.
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
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>
Harald Hoyer [Mon, 23 Aug 2010 12:42:33 +0000 (14:42 +0200)]
dmraid: switch to rd_NO_MDIMSM, if no mdadm installed
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>
Harald Hoyer [Mon, 23 Aug 2010 10:40:15 +0000 (12:40 +0200)]
fixed "use $libdir and $usrlibdir instead of ..."
Harald Hoyer [Mon, 23 Aug 2010 10:22:52 +0000 (12:22 +0200)]
manpage corrections
Harald Hoyer [Mon, 23 Aug 2010 10:22:03 +0000 (12:22 +0200)]
NEWS: fixed typo
Harald Hoyer [Mon, 23 Aug 2010 08:36:46 +0000 (10:36 +0200)]
mkinitrd: do not call dracut in host only mode
Harald Hoyer [Mon, 23 Aug 2010 09:01:04 +0000 (11:01 +0200)]
dm: install all md/dm* kernel modules
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
Harald Hoyer [Mon, 23 Aug 2010 09:58:39 +0000 (11:58 +0200)]
dracut: fixed "Clean up some conditional checking..."
Harald Hoyer [Mon, 23 Aug 2010 09:57:39 +0000 (11:57 +0200)]
dracut: fixed "Shorten permission checking..."
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.
Amadeusz Żołnowski [Wed, 18 Aug 2010 18:11:29 +0000 (20:11 +0200)]
use $libdir and $usrlibdir instead of individual detect with ldd
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.
Amadeusz Żołnowski [Wed, 18 Aug 2010 15:31:03 +0000 (17:31 +0200)]
60xen: use 'hash' instead of 'type'
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
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.
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.
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Trivial bashification of 00dash/install
Victor Lowther [Sat, 14 Aug 2010 19:23:26 +0000 (14:23 -0500)]
Trivial bashification and minor code rearrangement for initramfs compression.
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.
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.
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.
Victor Lowther [Sat, 14 Aug 2010 19:23:25 +0000 (14:23 -0500)]
Just test the status of the cpio-and-compress pipe directly.
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.
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.
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.
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.
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.
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.
Victor Lowther [Sat, 14 Aug 2010 19:23:24 +0000 (14:23 -0500)]
Get rid of unneeded dirname calls.
Use parameter expansion instead.
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.
Harald Hoyer [Fri, 13 Aug 2010 09:26:34 +0000 (11:26 +0200)]
plymouth: udev trigger with action=add
Harald Hoyer [Mon, 9 Aug 2010 14:28:38 +0000 (16:28 +0200)]
version inc
Harald Hoyer [Mon, 9 Aug 2010 13:57:55 +0000 (15:57 +0200)]
version 007
Harald Hoyer [Mon, 9 Aug 2010 13:56:47 +0000 (15:56 +0200)]
NEWS: update for 007
Harald Hoyer [Mon, 9 Aug 2010 14:12:23 +0000 (16:12 +0200)]
dracut.spec: add dracut.kernel man page
Harald Hoyer [Mon, 9 Aug 2010 14:10:54 +0000 (16:10 +0200)]
dracut.spec: build require docbook tools
Harald Hoyer [Mon, 9 Aug 2010 14:06:02 +0000 (16:06 +0200)]
dracut.spec: remove gentoo specific modules
Harald Hoyer [Mon, 9 Aug 2010 14:03:20 +0000 (16:03 +0200)]
dracut.spec s/bootchartd/bootchart
Harald Hoyer [Mon, 9 Aug 2010 14:01:18 +0000 (16:01 +0200)]
dracut.spec: install fedora.conf.example
Harald Hoyer [Mon, 9 Aug 2010 11:24:08 +0000 (13:24 +0200)]
crypt: depend on dm
Amadeusz Żołnowski [Mon, 9 Aug 2010 10:44:05 +0000 (12:44 +0200)]
add module gensplash
Amadeusz Żołnowski [Sun, 8 Aug 2010 18:07:00 +0000 (20:07 +0200)]
10i18n: --quiet for loadkeys
Harald Hoyer [Mon, 9 Aug 2010 11:09:13 +0000 (13:09 +0200)]
plymouth: load dm_crypt module
Harald Hoyer [Fri, 6 Aug 2010 16:15:51 +0000 (18:15 +0200)]
Makefile: install dracut.kernel.7
Harald Hoyer [Fri, 6 Aug 2010 14:06:06 +0000 (16:06 +0200)]
AUTHORS update
Harald Hoyer [Fri, 6 Aug 2010 13:38:52 +0000 (15:38 +0200)]
manpage update
Harald Hoyer [Fri, 6 Aug 2010 13:32:08 +0000 (15:32 +0200)]
manpage update
Harald Hoyer [Fri, 6 Aug 2010 11:54:34 +0000 (13:54 +0200)]
dracut: add --fstab, to ignore /proc/self/mountinfo
Harald Hoyer [Fri, 6 Aug 2010 11:53:24 +0000 (13:53 +0200)]
manpage xml: changed DTD to docbook 4.5
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
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
Harald Hoyer [Fri, 6 Aug 2010 09:46:55 +0000 (11:46 +0200)]
fedora.conf moved back to fedora.conf.example
Harald Hoyer [Fri, 6 Aug 2010 09:46:39 +0000 (11:46 +0200)]
manpages: changed to UTF-8
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()
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)
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>
Harald Hoyer [Thu, 5 Aug 2010 16:12:38 +0000 (18:12 +0200)]
manpage corrections
Harald Hoyer [Thu, 5 Aug 2010 16:12:08 +0000 (18:12 +0200)]
dracut: let --fwdir be specified multiple times
Harald Hoyer [Thu, 5 Aug 2010 14:38:49 +0000 (16:38 +0200)]
documentation: moved to docbook man pages
Harald Hoyer [Thu, 5 Aug 2010 06:47:17 +0000 (08:47 +0200)]
fips: udev trigger with action=add
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
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>
Amadeusz Żołnowski [Mon, 26 Jul 2010 08:15:40 +0000 (10:15 +0200)]
10i18n: exit if console already initialized
Harald Hoyer [Wed, 4 Aug 2010 16:27:48 +0000 (18:27 +0200)]
renamed 00bootchartd to 00bootchart
Harald Hoyer [Wed, 4 Aug 2010 15:46:54 +0000 (17:46 +0200)]
dracut-functions: fixed --omit
Harald Hoyer [Mon, 2 Aug 2010 13:58:48 +0000 (15:58 +0200)]
init: create /dev/.udev/rules.d with correct permissions
Harald Hoyer [Mon, 2 Aug 2010 13:26:55 +0000 (15:26 +0200)]
mkdir /dev/.udev/rules.d with mode 0755
Harald Hoyer [Mon, 2 Aug 2010 12:54:09 +0000 (14:54 +0200)]
NEWS: update for version 007
Harald Hoyer [Mon, 2 Aug 2010 12:53:47 +0000 (14:53 +0200)]
manpages: updated for /etc/dracut.conf.d
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
Harald Hoyer [Mon, 2 Aug 2010 11:32:09 +0000 (13:32 +0200)]
mdraid: try to start degraded arrays in various ways
Harald Hoyer [Mon, 2 Aug 2010 11:31:36 +0000 (13:31 +0200)]
mdraid: remove mdadm.conf on rd_NO_MDADMCONF
Harald Hoyer [Mon, 2 Aug 2010 11:30:21 +0000 (13:30 +0200)]
TEST-12-RAID-DEG: do not execute rd_NO_MDADMCONF tests
Harald Hoyer [Mon, 2 Aug 2010 09:58:48 +0000 (11:58 +0200)]
TEST-14-IMSM: fixed test
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
Harald Hoyer [Mon, 2 Aug 2010 09:35:25 +0000 (11:35 +0200)]
mdraid: remove "local"
Harald Hoyer [Mon, 2 Aug 2010 09:28:16 +0000 (11:28 +0200)]
init: set old umask before switch_root
Harald Hoyer [Mon, 2 Aug 2010 09:26:49 +0000 (11:26 +0200)]
crypt: fix printf
Harald Hoyer [Mon, 2 Aug 2010 09:13:06 +0000 (11:13 +0200)]
TEST-12-RAID-DEG: double disk space
Harald Hoyer [Mon, 2 Aug 2010 09:12:42 +0000 (11:12 +0200)]
i18n: only source config files, if present
Harald Hoyer [Mon, 2 Aug 2010 09:05:11 +0000 (11:05 +0200)]
mdraid: --no-degraded not allowed with -I
Harald Hoyer [Mon, 2 Aug 2010 07:40:18 +0000 (09:40 +0200)]
dracut-functions: fix check=255 logic and dependencies
Harald Hoyer [Mon, 2 Aug 2010 08:01:59 +0000 (10:01 +0200)]
TEST: omit network module for non-network tests
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.
Harald Hoyer [Mon, 2 Aug 2010 07:40:55 +0000 (09:40 +0200)]
crypt: loop until all non-busy crypt devs closed
Harald Hoyer [Mon, 2 Aug 2010 07:39:49 +0000 (09:39 +0200)]
debug: add fsck to debug module
Harald Hoyer [Mon, 2 Aug 2010 07:39:13 +0000 (09:39 +0200)]
dracut: use hardlink, if available to safe some space
Harald Hoyer [Mon, 2 Aug 2010 06:58:08 +0000 (08:58 +0200)]
version pre 7
Harald Hoyer [Mon, 2 Aug 2010 06:20:50 +0000 (08:20 +0200)]
dracut.spec: redhat-i18n -> i18n
Harald Hoyer [Mon, 2 Aug 2010 06:21:28 +0000 (08:21 +0200)]
dracut.spec: add bootchartd