Harald Hoyer [Fri, 24 Jul 2009 11:09:57 +0000 (13:09 +0200)]
dracut: usage(): break line for 80 chars
Warren Togami [Fri, 24 Jul 2009 19:26:33 +0000 (15:26 -0400)]
With NFS root, it is possible /tmp/net.ifaces might not exist during pre-pivot.
- udevadm settle will wait for it if necessary.
- Move write-ifcfg.sh later during pre-pivot to reduce likelihood of settling being necessary.
Harald Hoyer [Fri, 24 Jul 2009 10:06:12 +0000 (12:06 +0200)]
dracut.8: correct manpage entry for ip=
Harald Hoyer [Fri, 24 Jul 2009 09:52:15 +0000 (11:52 +0200)]
dracut.8: corrections of parameters and fixed typos
Harald Hoyer [Fri, 24 Jul 2009 08:42:39 +0000 (10:42 +0200)]
removed all direct references to /proc/cmdline
use getarg() and getargs() from /lib/dracut-lib.sh instead of
reinventing the wheel
Harald Hoyer [Fri, 24 Jul 2009 08:42:17 +0000 (10:42 +0200)]
dracut: print help for unknow options
Harald Hoyer [Thu, 23 Jul 2009 17:00:48 +0000 (19:00 +0200)]
40network/parse-bridge: add bridge to $initrdargs
David Dillow [Fri, 24 Jul 2009 03:16:31 +0000 (23:16 -0400)]
dash compatible substitution
Warren Togami [Thu, 23 Jul 2009 20:22:00 +0000 (16:22 -0400)]
Turns out this is really a misconfigured DHCP server, apply the same workaround as Debian and upstream dhclient-script.
Warren Togami [Thu, 23 Jul 2009 18:31:58 +0000 (14:31 -0400)]
Fix multiple search domains with proper quoting (thanks dcbw)
Otherwise \032 appears instead of spaces.
Harald Hoyer [Thu, 23 Jul 2009 16:57:20 +0000 (18:57 +0200)]
99base/init: fix argument stripping
Harald Hoyer [Thu, 23 Jul 2009 16:27:33 +0000 (18:27 +0200)]
nfsroot-cleanup: don't try to read from nonexistant /tmp/nfs.rpc_pipefs_path
Harald Hoyer [Thu, 23 Jul 2009 16:20:11 +0000 (18:20 +0200)]
40network/check: source dracut-functions over exported variable
Michael Ploujnikov [Mon, 8 Jun 2009 15:17:29 +0000 (11:17 -0400)]
use a variable to hold the regex
single quote regexps in variables to make it work with bash-3.1
Michael Ploujnikov [Wed, 3 Jun 2009 13:16:44 +0000 (09:16 -0400)]
fix spelling use the modules.d directory name
Marc Grimme [Thu, 23 Jul 2009 10:19:54 +0000 (12:19 +0200)]
nfsroot-cleanup: make /var/lib/nfs/rpc_pipefs path configurable
/tmp/nfs.rpc_pipefs_path can contain the path where
/var/lib/nfs/rpc_pipefs will be moved before switch_root.
This is useful if /var is a separate partition in the real root.
Marc Grimme [Thu, 23 Jul 2009 10:19:17 +0000 (12:19 +0200)]
95debug: optionally install the debug tools
Marc Grimme [Thu, 23 Jul 2009 10:17:57 +0000 (12:17 +0200)]
40network/check: output which binary is missing for the network module
Marc Grimme [Thu, 23 Jul 2009 10:15:54 +0000 (12:15 +0200)]
dracut_install: add "-o" option
Calling dracut_install will optionally install the file. This is useful
for the debug module.
Harald Hoyer [Thu, 23 Jul 2009 09:58:24 +0000 (11:58 +0200)]
dmraid/mdraid: only try to delete partition 1-1024
add "--nr 1-1024" to partx, otherwise partx will try to delete
partitions 1-INT_MAX, which takes a long time.
Harald Hoyer [Wed, 22 Jul 2009 14:34:12 +0000 (16:34 +0200)]
95s390: add support to boot from s390 dasds
command line parameter:
DASD
dasd=....
same syntax as the kernel module parameter (s390 only)
Harald Hoyer [Tue, 21 Jul 2009 15:38:41 +0000 (17:38 +0200)]
version 0.6
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