Harald Hoyer [Wed, 22 Jul 2009 10:43:26 +0000 (12:43 +0200)]
dracut: add --kernel-only and --no-kernel arguments
--kernel-only
only install kernel drivers and firmware files
--no-kernel
do not install kernel drivers and firmware files
All kernel module related install commands moved from "install"
to "installkernel".
For "--kernel-only" all installkernel scripts of the specified
modules are used, regardless of any checks, so that all modules
which might be needed by any dracut generic image are in.
The basic idea is to create two images. One image with the kernel
modules and one without. So if the kernel changes, you only have
to replace one image.
Grub and the kernel can handle multiple images, so grub entry can
look like this:
title Fedora (2.6.29.5-191.fc11.i586)
root (hd0,0)
kernel /vmlinuz-2.6.29.5-191.fc11.i586 ro rhgb quiet
initrd /initrd-
20090722.img
initrd /initrd-kernel-2.6.29.5-191.fc11.i586.img
initrd /initrd-config.img
initrd-
20090722.img
the image provided by the initrd rpm
one old backup version is kept like with the kernel
initrd-kernel-2.6.29.5-191.fc11.i586.img
the image provided by the kernel rpm
initrd-config.img
optional image with local configuration files
Harald Hoyer [Tue, 21 Jul 2009 16:26:12 +0000 (18:26 +0200)]
fix kernel modules dir handling
Harald Hoyer [Tue, 21 Jul 2009 16:10:34 +0000 (18:10 +0200)]
dracut.spec: generic requires bridge-utils for brctl
Harald Hoyer [Tue, 21 Jul 2009 15:49:17 +0000 (17:49 +0200)]
add --fwdir parameter to dracut
--fwdir [DIR]
specify additional directory, where to look for firmwares
Harald Hoyer [Tue, 21 Jul 2009 15:39:19 +0000 (17:39 +0200)]
do not BuildRequire kernel-firmware for dracut-generic
Harald Hoyer [Tue, 21 Jul 2009 15:37:41 +0000 (17:37 +0200)]
use kernel module directory specified on command line in modules also
Harald Hoyer [Tue, 21 Jul 2009 15:25:12 +0000 (17:25 +0200)]
dracut: add --kmoddir directory, where to look for kernel modules
-k, --kmoddir [DIR]
specify the directory, where to look for kernel modules
Harald Hoyer [Tue, 21 Jul 2009 15:23:26 +0000 (17:23 +0200)]
dracut-gencmdline: output root device and plymouth theme
Harald Hoyer [Tue, 21 Jul 2009 13:40:11 +0000 (15:40 +0200)]
mdraid: first remove the partitions, then add to the md raid
Harald Hoyer [Tue, 21 Jul 2009 13:01:41 +0000 (15:01 +0200)]
dmraid/mdraid: use ENV{DEVTYPE} instead of ATTR{partition}
Harald Hoyer [Tue, 21 Jul 2009 09:53:56 +0000 (11:53 +0200)]
redhat-i18n: export LANG
Harald Hoyer [Tue, 21 Jul 2009 09:31:15 +0000 (11:31 +0200)]
dmraid/mdraid: install "partx"
Harald Hoyer [Tue, 21 Jul 2009 09:30:40 +0000 (11:30 +0200)]
plymouth: also trigger dri subsystem
Harald Hoyer [Fri, 17 Jul 2009 14:04:13 +0000 (16:04 +0200)]
manpage: add docu for rd_NO_MDIMSM
Harald Hoyer [Fri, 17 Jul 2009 13:59:36 +0000 (15:59 +0200)]
Makefile: make clean before rpm
Harald Hoyer [Fri, 17 Jul 2009 13:40:08 +0000 (15:40 +0200)]
version 0.5
Harald Hoyer [Fri, 17 Jul 2009 13:38:25 +0000 (15:38 +0200)]
dracut-gencmdline - generate the kernel command line for the local host
Harald Hoyer [Fri, 17 Jul 2009 13:03:51 +0000 (15:03 +0200)]
nfs: do not install whole passwd, grep for rpc user
Harald Hoyer [Fri, 17 Jul 2009 13:03:30 +0000 (15:03 +0200)]
lvm: output info on rd_NO_LVM
Harald Hoyer [Fri, 17 Jul 2009 13:02:19 +0000 (15:02 +0200)]
lvm: install lvm.conf in hostonly mode
Harald Hoyer [Fri, 17 Jul 2009 13:01:08 +0000 (15:01 +0200)]
mdraid: do not handle isw_raid_member if rd_NO_MDIMSM is set in udev ENV
install md-noimsm.sh if mdadm does not support imsm.
Harald Hoyer [Fri, 17 Jul 2009 13:00:07 +0000 (15:00 +0200)]
mdraid: only install mdadm.conf in hostonly mode
Harald Hoyer [Fri, 17 Jul 2009 12:59:24 +0000 (14:59 +0200)]
mdraid: do not install passwd/group
Harald Hoyer [Fri, 17 Jul 2009 12:57:31 +0000 (14:57 +0200)]
dmraid: handle isw_raid_member if rd_NO_MDIMSM is set in udev ENV
Harald Hoyer [Fri, 17 Jul 2009 12:56:06 +0000 (14:56 +0200)]
dmraid: redirect error to vinfo
Harald Hoyer [Fri, 17 Jul 2009 12:55:37 +0000 (14:55 +0200)]
output info on rd_NO_DM
Harald Hoyer [Fri, 17 Jul 2009 12:54:25 +0000 (14:54 +0200)]
crypt: output info, on rd_NO_LUKS handling
Harald Hoyer [Fri, 17 Jul 2009 12:52:53 +0000 (14:52 +0200)]
plymouth: install all themes and make them selectable by command line
Bootsplash - plymouth
rd_plytheme=<theme name>
specify the plymouth bootsplash theme (fallback is text)
Harald Hoyer [Fri, 17 Jul 2009 12:47:49 +0000 (14:47 +0200)]
init: add "pre-trigger" and "initqueue" breakpoints
Harald Hoyer [Fri, 17 Jul 2009 08:17:28 +0000 (10:17 +0200)]
plymouth: removed console_init call
/lib/udev/console_init should be called from the udev rules already
Harald Hoyer [Fri, 17 Jul 2009 08:16:46 +0000 (10:16 +0200)]
dmraid.sh: activate all dmraids, if no rd_DM_UUID is specified
Harald Hoyer [Fri, 17 Jul 2009 08:16:16 +0000 (10:16 +0200)]
dmraid.rules: cleanup
Harald Hoyer [Fri, 17 Jul 2009 08:13:33 +0000 (10:13 +0200)]
lvm_scan: do not overwrite a preexisting /etc/lvm/lvm.conf
Harald Hoyer [Fri, 17 Jul 2009 08:13:01 +0000 (10:13 +0200)]
dracut-lib: fixed quiet argument parsing
Harald Hoyer [Fri, 17 Jul 2009 08:11:57 +0000 (10:11 +0200)]
dracut-lib: output warn() and die() to stderr
Warren Togami [Thu, 16 Jul 2009 20:58:19 +0000 (16:58 -0400)]
Bridged network boot
* SYNTAX
bridge=<bridgename>:<ethname>
If bridge without parameters, assume bridge=br0:eth0
* When <ethname> would be configured by network scripts, instead create a bridge named <bridgename> then add <ethname> to that bridge.
* Then $netif becomes <bridgename> instead of <ethname> and all existing scripts process netroot mount via this new $netif instead of <ethname>.
* Include a few test cases in NFS and NBD
Warren Togami [Thu, 16 Jul 2009 13:34:07 +0000 (09:34 -0400)]
Remove 63-luks.rules, it is no longer used
Warren Togami [Thu, 16 Jul 2009 01:10:16 +0000 (21:10 -0400)]
More informative failure messages or rdbreak.
Warren Togami [Wed, 15 Jul 2009 20:42:34 +0000 (16:42 -0400)]
Standardize boot failed language.
Harald Hoyer [Wed, 15 Jul 2009 16:40:56 +0000 (18:40 +0200)]
dracut-lib: if "quiet" is specified, do not print info() to console
Harald Hoyer [Wed, 15 Jul 2009 07:09:26 +0000 (09:09 +0200)]
install all /lib/kbd to initramfs, if not host only
KEYBOARDTYPE=sun|pc
will be written to /etc/sysconfig/keyboard in the initramfs
KEYTABLE=<keytable file>
will be written to /etc/sysconfig/keyboard in the initramfs
SYSFONT= Console font
will be written to /etc/sysconfig/i18n in the initramfs
SYSFONTACM= Console map.
will be written to /etc/sysconfig/i18n in the initramfs
UNIMAP= Unicode font map.
will be written to /etc/sysconfig/i18n in the initramfs
LANG=<locale>
will be written to /etc/sysconfig/i18n in the initramfs
LANG= set locale for all categories, can be any two letter ISO
language code
Harald Hoyer [Wed, 15 Jul 2009 16:24:53 +0000 (18:24 +0200)]
Makefile: add debug module to the testimage target
Harald Hoyer [Wed, 15 Jul 2009 16:23:17 +0000 (18:23 +0200)]
extend TEST-12-RAID-DEG to check for UUID command line parameters
Harald Hoyer [Wed, 15 Jul 2009 16:21:10 +0000 (18:21 +0200)]
add command line parameters to specify exact actions for root assembly
LVM
rd_NO_LVM
disable LVM detection
rd_LVM_VG=<volume group name>
only activate the volume groups with the given name
crypto LUKS
rd_NO_LUKS
disable crypto LUKS detection
rd_LUKS_UUID=<luks uuid>
only activate the LUKS partitions with the given UUID
MD
rd_NO_MD
disable MD RAID detection
rd_MD_UUID=<md uuid>
only activate the raid sets with the given UUID
DMRAID
rd_NO_DM
disable DM RAID detection
rd_DM_UUID=<dmraid uuid>
only activate the raid sets with the given UUID
Hans de Goede [Tue, 14 Jul 2009 20:24:41 +0000 (22:24 +0200)]
Fix lvm on top of dmraid
The lvm rules were failing to identify PV's on mdraid because
blkid/vol_id has not been run on md raidsets by previous rules.
Harald Hoyer [Wed, 15 Jul 2009 07:56:37 +0000 (09:56 +0200)]
add info() and vinfo() to dracut-lib
- corrected the loglevel for warn()
- prepended with "dracut: " for kmesg to seperate from kernel messages
you can pipe to vinfo() for informational messages
Harald Hoyer [Wed, 15 Jul 2009 07:42:28 +0000 (09:42 +0200)]
remove partitions from raid devices before they are used for something
else
Harald Hoyer [Wed, 15 Jul 2009 07:33:44 +0000 (09:33 +0200)]
limit the devices for which lvm vgscan will scan
Build the filter list and create /etc/lvm/lvm.conf for all LVM_member
devices found by udev.
Harald Hoyer [Wed, 15 Jul 2009 07:06:13 +0000 (09:06 +0200)]
change the way init arguments are stripped from the command line
$initrdargs now holds all command line options we want to strip from the
command line. Command line parsers can extend this space separated list.
Harald Hoyer [Wed, 15 Jul 2009 07:03:46 +0000 (09:03 +0200)]
dmraid.rules changed comment in header
Hans de Goede [Tue, 14 Jul 2009 20:24:42 +0000 (22:24 +0200)]
Make Intel BIOS raid use mdraid instead of dmraid when mdadm 3.0 is available
Intel BIOS raid is being shifted from dmraid to mdraid because mdraid offers
more features. So if an imsm metadata capable mdadm is present use mdraid
instead of dmraid for isw_raid_member's
This patch also adds code to mdraid_start.sh so that the raidsets
inside the imsm containers get started once udev is done probing
(doing this earlier leads to potentially degraded use of the sets and
an unwanted resync).
Hans de Goede [Tue, 14 Jul 2009 12:42:50 +0000 (14:42 +0200)]
10redhat-i18n: Fix handling of kbd maps which are a symlink
Some keyboard maps are symlinks to others, we were not handling this
properly, this patch fixes this.
Harald Hoyer [Wed, 15 Jul 2009 16:24:01 +0000 (18:24 +0200)]
dracut-lib add getargs()
getargs returns a space seperated list with all values found for a key
on the kernel command line
Daniel Drake [Sun, 12 Jul 2009 11:02:43 +0000 (12:02 +0100)]
switch_root: add subroot support
The current switch_root can only switch to a new root that is the root
of a mount point.
This patch adds support for "subroots", where the new root is somewhere
below a mount point. It does this by adding in a few extra steps to
chroot into the subroot after the enclosing partition has been moved
and entered.
This will be used by OLPC, who sort-of have 2 copies of Fedora stored
on a single partition under different directory trees, where the
initramfs decides which one to boot into.
Harald Hoyer [Tue, 14 Jul 2009 11:44:38 +0000 (13:44 +0200)]
add testsuite for degraded RAID-5 array
Harald Hoyer [Tue, 14 Jul 2009 11:44:07 +0000 (13:44 +0200)]
modified test description for TEST-10-RAID
Harald Hoyer [Tue, 14 Jul 2009 11:20:34 +0000 (13:20 +0200)]
run /bin/sh with the full path from the udev rules
Harald Hoyer [Tue, 14 Jul 2009 11:17:07 +0000 (13:17 +0200)]
add the final mdraid_start to the "blkid" rules also
Harald Hoyer [Mon, 13 Jul 2009 15:43:13 +0000 (17:43 +0200)]
run a final "mdadm -IRs" after udev has settled
Harald Hoyer [Mon, 13 Jul 2009 15:16:55 +0000 (17:16 +0200)]
prevent LVM scan loops
lvm vgscan causes "change" events for all devices, to prevent a loop,
remember the devices, which trigger the scan of the devices.
Harald Hoyer [Mon, 13 Jul 2009 14:41:05 +0000 (16:41 +0200)]
add test for simple root on LVM
Harald Hoyer [Mon, 13 Jul 2009 14:21:32 +0000 (16:21 +0200)]
install "ln" per default
Harald Hoyer [Mon, 13 Jul 2009 13:54:51 +0000 (15:54 +0200)]
let softlink to dmraid initqueue scan end with ".sh"
Harald Hoyer [Mon, 13 Jul 2009 13:54:02 +0000 (15:54 +0200)]
delay lvm scan, until udev has settled
Harald Hoyer [Mon, 13 Jul 2009 13:53:13 +0000 (15:53 +0200)]
do not pass rdshell option to real init
Harald Hoyer [Mon, 13 Jul 2009 12:50:49 +0000 (14:50 +0200)]
do not force to run the mdraid array for the incremental add
Harald Hoyer [Mon, 13 Jul 2009 13:00:14 +0000 (15:00 +0200)]
only install mount script, if nbd-client succeeded
Harald Hoyer [Mon, 13 Jul 2009 11:48:09 +0000 (13:48 +0200)]
install mount script if iscsistart succeeded and add iscsi udev rule
Harald Hoyer [Mon, 13 Jul 2009 12:23:49 +0000 (14:23 +0200)]
removed warning "No ip= argument(s) for netroot provided..."
Harald Hoyer [Mon, 13 Jul 2009 11:51:33 +0000 (13:51 +0200)]
add environment variables for different udev versions
Harald Hoyer [Mon, 13 Jul 2009 11:54:44 +0000 (13:54 +0200)]
check for root after udevadm settle returns
Harald Hoyer [Mon, 13 Jul 2009 11:50:02 +0000 (13:50 +0200)]
add kernel-modules module to iscsi server
Harald Hoyer [Mon, 13 Jul 2009 10:26:14 +0000 (12:26 +0200)]
add documentation of the init hooks
Harald Hoyer [Mon, 13 Jul 2009 10:15:41 +0000 (12:15 +0200)]
fixed LVM udev rules to run not only for dm-* devices
Harald Hoyer [Mon, 13 Jul 2009 12:50:11 +0000 (14:50 +0200)]
fixed typo in mdadm udev rule
Harald Hoyer [Mon, 13 Jul 2009 10:06:51 +0000 (12:06 +0200)]
only install one dmraid scan job once in the initqueue
Harald Hoyer [Mon, 13 Jul 2009 09:56:04 +0000 (11:56 +0200)]
test for empty udev queue with timeout=1 instead of 0
older udev versions do not support timeout=0
Harald Hoyer [Mon, 13 Jul 2009 09:55:47 +0000 (11:55 +0200)]
removed bash check from md incremental rules
Warren Togami [Thu, 9 Jul 2009 18:33:33 +0000 (14:33 -0400)]
NFSv4 rpcbind should need only the rpcbind user, not the entire /etc/passwd.
TODO: /etc/passwd and /etc/group are not removed yet due to 90mdraid.
dledford said he'll go in and clean this up since he has the hardware
to actually test the mdmon stuff.
Warren Togami [Wed, 8 Jul 2009 17:51:43 +0000 (13:51 -0400)]
rdbreak should imply rdshell. If sleeping forever say so, so the user doesn't wonder.
Harald Hoyer [Sat, 4 Jul 2009 08:05:38 +0000 (10:05 +0200)]
version 0.4
Harald Hoyer [Sat, 4 Jul 2009 07:54:39 +0000 (09:54 +0200)]
remove redirection of output to /dev/kmesg
until we have a way to mark our messages to come from dracut.
Harald Hoyer [Fri, 3 Jul 2009 15:45:55 +0000 (17:45 +0200)]
rdshell
Harald Hoyer [Fri, 3 Jul 2009 15:44:10 +0000 (17:44 +0200)]
initqueue now loops until /dev/root exists or root is mounted
init now has the following points to inject scripts:
/cmdline/*.sh
scripts for command line parsing
/pre-udev/*.sh
scripts to run before udev is started
/pre-trigger/*.sh
scripts to run before the main udev trigger is pulled
/initqueue/*.sh
runs in parallel to the udev trigger
Udev events can add scripts here with /sbin/initqueue.
If /sbin/initqueue is called with the "--onetime" option, the script
will be removed after it was run.
If /initqueue/work is created and udev >= 143 then this loop can
process the jobs in parallel to the udevtrigger.
If the udev queue is empty and no root device is found or no root
filesystem was mounted, the user will be dropped to a shell after
a timeout.
Scripts can remove themselves from the initqueue by "rm $job".
/pre-mount/*.sh
scripts to run before the root filesystem is mounted
NFS is an exception, because it has no device node to be created
and mounts in the udev events
/mount/*.sh
scripts to mount the root filesystem
NFS is an exception, because it has no device node to be created
and mounts in the udev events
If the udev queue is empty and no root device is found or no root
filesystem was mounted, the user will be dropped to a shell after
a timeout.
/pre-pivot/*.sh
scripts to run before the real init is executed and the initramfs
disappears
All processes started before should be killed here.
The behaviour of the dmraid module demonstrates how to use the new
mechanism. If it detects a device which is part of a raidmember from a
udev rule, it installs a job to scan for dmraid devices, if the udev
queue is empty. After a scan, it removes itsself from the queue.
Harald Hoyer [Fri, 3 Jul 2009 12:56:20 +0000 (14:56 +0200)]
put back the nfs mount in the udev event
it solves the following case:
root=/dev/nfs nfsroot=server:/path
- the server could be reachable on any interface
- any interface can get an IP by dhcp
- only one IP is allowed to mount the root
Harald Hoyer [Fri, 3 Jul 2009 12:47:49 +0000 (14:47 +0200)]
fail iscsiroot, if iscsistart fails
Harald Hoyer [Fri, 3 Jul 2009 11:27:26 +0000 (13:27 +0200)]
add rm to be installed for initqueue
Harald Hoyer [Fri, 3 Jul 2009 11:17:08 +0000 (13:17 +0200)]
add firmware packages to be required by the dracut-generic package
Harald Hoyer [Fri, 3 Jul 2009 10:44:45 +0000 (12:44 +0200)]
remove 50plymouth-pre0.7 module
Harald Hoyer [Fri, 3 Jul 2009 10:24:54 +0000 (12:24 +0200)]
Defer mount to the real mount loop
Udev rules set a /dev/root symlink to the real root and add
a mount script to /mount/. This enables the proper use of pre-mount
scripts and prevents mount being killed by a udev timeout.
Harald Hoyer [Fri, 3 Jul 2009 09:09:33 +0000 (11:09 +0200)]
output everything to /dev/kmesg and add dmesg for the emergency_shell
Harald Hoyer [Fri, 3 Jul 2009 09:08:58 +0000 (11:08 +0200)]
add binutiles requirement to specfile (because of nm)
Harald Hoyer [Fri, 3 Jul 2009 09:07:16 +0000 (11:07 +0200)]
add kernel-modules module to testsuite images
Daniel Drake [Thu, 2 Jul 2009 09:06:15 +0000 (10:06 +0100)]
Remove modules dependency
This makes it possible to build a dracut initramfs without modules,
where all needed kernel drivers are built into the kernel image.
Daniel Drake [Thu, 2 Jul 2009 14:15:47 +0000 (15:15 +0100)]
Add firmware loading support
Seewer Philippe [Thu, 2 Jul 2009 14:03:39 +0000 (16:03 +0200)]
Don't use absolute paths for utilities
Harald Hoyer [Thu, 2 Jul 2009 12:50:46 +0000 (14:50 +0200)]
do not add debug module by default
Harald Hoyer [Thu, 2 Jul 2009 12:50:22 +0000 (14:50 +0200)]
fixed adding modules via -a
Harald Hoyer [Thu, 2 Jul 2009 11:14:57 +0000 (13:14 +0200)]
add "--add" option to the manpage
Harald Hoyer [Thu, 2 Jul 2009 09:59:46 +0000 (11:59 +0200)]
beautified devtmpfs mount