platform/upstream/dracut.git
15 years agoupdated NEWS
Harald Hoyer [Thu, 1 Oct 2009 17:59:43 +0000 (19:59 +0200)]
updated NEWS

15 years agodracut-gencmdline: fixed rd_NO_LUKS case
Harald Hoyer [Thu, 1 Oct 2009 17:52:48 +0000 (19:52 +0200)]
dracut-gencmdline: fixed rd_NO_LUKS case

15 years agofixed UUID= and LABEL= handling
Harald Hoyer [Thu, 1 Oct 2009 17:28:55 +0000 (19:28 +0200)]
fixed UUID= and LABEL= handling

15 years agoupdated NEWS
Harald Hoyer [Thu, 1 Oct 2009 16:57:23 +0000 (18:57 +0200)]
updated NEWS

15 years agodmsquash: use info() and die() rather than echo
Harald Hoyer [Thu, 1 Oct 2009 16:43:35 +0000 (18:43 +0200)]
dmsquash: use info() and die() rather than echo

15 years agodracut: strip kernel modules which have no x bit set
Harald Hoyer [Thu, 1 Oct 2009 16:41:04 +0000 (18:41 +0200)]
dracut: strip kernel modules which have no x bit set

15 years agobase: add logger for rdinitdebug
Harald Hoyer [Thu, 1 Oct 2009 16:11:24 +0000 (18:11 +0200)]
base: add logger for rdinitdebug

initlog logs to /init.log /dev/kmsg and /dev/console

15 years agoiscsi/iscsiroot: remove redirection on rdnetdebug
Harald Hoyer [Thu, 1 Oct 2009 13:21:32 +0000 (15:21 +0200)]
iscsi/iscsiroot: remove redirection on rdnetdebug

iscsiroot is now executed in the initqueue

15 years agobase/init: stop udev exec queue before killing it
Harald Hoyer [Thu, 1 Oct 2009 13:17:59 +0000 (15:17 +0200)]
base/init: stop udev exec queue before killing it

15 years agosyslog: use initqueue to start syslog
Harald Hoyer [Thu, 1 Oct 2009 12:41:05 +0000 (14:41 +0200)]
syslog: use initqueue to start syslog

15 years agonfs/nfsroot: do not redirect output on rdnetdebug
Harald Hoyer [Thu, 1 Oct 2009 12:35:38 +0000 (14:35 +0200)]
nfs/nfsroot: do not redirect output on rdnetdebug

nfsroot is now in the initqueue

15 years agobase/dracut-lib: add setdebug
Harald Hoyer [Thu, 1 Oct 2009 12:32:52 +0000 (14:32 +0200)]
base/dracut-lib: add setdebug

do not clutter rdinitdebug output with getarg and getargs debug

15 years agonbd/nbdroot: add better check if nbd0 is ready to be mounted
Harald Hoyer [Thu, 1 Oct 2009 12:32:01 +0000 (14:32 +0200)]
nbd/nbdroot: add better check if nbd0 is ready to be mounted

15 years agonetwork/netroot: remove flock
Harald Hoyer [Thu, 1 Oct 2009 12:01:14 +0000 (14:01 +0200)]
network/netroot: remove flock

netroot is now in the initqueue

15 years agonetwork/netroot: do not redirect output on rdnetdebug
Harald Hoyer [Thu, 1 Oct 2009 11:59:34 +0000 (13:59 +0200)]
network/netroot: do not redirect output on rdnetdebug

netroot is now in the initqueue

15 years agonbd/nbdroot: do not redirect debug output on rdnetdebug
Harald Hoyer [Thu, 1 Oct 2009 11:51:16 +0000 (13:51 +0200)]
nbd/nbdroot: do not redirect debug output on rdnetdebug

nbdroot is now in the initqueue and rdinitdebug should cover that

15 years agonbd/nbdroot: use udevsettle to wait for /dev/nbd0
Harald Hoyer [Thu, 1 Oct 2009 11:48:41 +0000 (13:48 +0200)]
nbd/nbdroot: use udevsettle to wait for /dev/nbd0

nbdroot is now in the initqueue, so we can use udevsettle

15 years agomdraid: do not cleanup on auto assembly with mdadm.conf
Harald Hoyer [Thu, 1 Oct 2009 09:45:54 +0000 (11:45 +0200)]
mdraid: do not cleanup on auto assembly with mdadm.conf

15 years agonbd: finish on /dev/root rather than on nbd0
Harald Hoyer [Wed, 30 Sep 2009 19:47:45 +0000 (21:47 +0200)]
nbd: finish on /dev/root rather than on nbd0

15 years agonfs: specify nfs version 3 explicitly and retry with nfs version 2
Harald Hoyer [Wed, 30 Sep 2009 15:38:43 +0000 (17:38 +0200)]
nfs: specify nfs version 3 explicitly and retry with nfs version 2

15 years agonetwork: move netroot to initqueue
Harald Hoyer [Wed, 30 Sep 2009 15:24:52 +0000 (17:24 +0200)]
network: move netroot to initqueue

Schedule netroot for the initqueue inside ifup and dhclient.

15 years agodracut-functions: let inst*() honor and handle symlinks correctly
Harald Hoyer [Wed, 30 Sep 2009 13:35:33 +0000 (15:35 +0200)]
dracut-functions: let inst*() honor and handle symlinks correctly

15 years agodracut-functions: inst_simple() with cp -p to preserver timestamps, etc.
Harald Hoyer [Wed, 30 Sep 2009 13:34:12 +0000 (15:34 +0200)]
dracut-functions: inst_simple() with cp -p to preserver timestamps, etc.

15 years agoinit: start udevd with --resolve-names=never
Harald Hoyer [Wed, 30 Sep 2009 13:04:50 +0000 (15:04 +0200)]
init: start udevd with --resolve-names=never

15 years agoinit: mount /dev/shm
Harald Hoyer [Wed, 30 Sep 2009 13:04:36 +0000 (15:04 +0200)]
init: mount /dev/shm

15 years agoMakefile: reorder targets
Harald Hoyer [Wed, 30 Sep 2009 08:18:25 +0000 (10:18 +0200)]
Makefile: reorder targets

15 years agodracut-gencmdline: check for keyboard & i18n files
Lance Albertson [Tue, 29 Sep 2009 03:30:17 +0000 (20:30 -0700)]
dracut-gencmdline: check for keyboard & i18n files

15 years agodir symlinks
Lance Albertson [Sun, 27 Sep 2009 04:33:41 +0000 (21:33 -0700)]
dir symlinks

On amd64 multilib Gentoo, /lib is a symlink to /lib64, and dracut creates
duplicate files in /lib and /lib64 in a resulting cpio image. Other files are
missing in /lib64 but exists in /lib in that image. So /usr/sbin/lvm fails to
run from initrd due to missing libraries.  A possible solution is to create in
the initrd the same /lib symlink as in host system, if /lib is a symlink.

http://bugs.gentoo.org/show_bug.cgi?id=278442#c10

15 years agocustom paths
Lance Albertson [Sun, 27 Sep 2009 04:26:43 +0000 (21:26 -0700)]
custom paths

Fix Makefile so that it allows us to install the root in a sane location (which
is needed in Gentoo).

15 years agodm/lvm: make usage of new udev event rules optionally
Harald Hoyer [Tue, 29 Sep 2009 16:29:34 +0000 (18:29 +0200)]
dm/lvm: make usage of new udev event rules optionally

15 years ago95dasd: add dasd_diag_mod module
Harald Hoyer [Tue, 29 Sep 2009 16:20:48 +0000 (18:20 +0200)]
95dasd: add dasd_diag_mod module

15 years agodracut.8: fixed ifname position
Harald Hoyer [Tue, 29 Sep 2009 15:12:03 +0000 (17:12 +0200)]
dracut.8: fixed ifname position

15 years ago95dasd: use 'uname -m' instead of 'arch'
Harald Hoyer [Tue, 29 Sep 2009 12:48:56 +0000 (14:48 +0200)]
95dasd: use 'uname -m' instead of 'arch'

15 years ago95dasd: fixed typo in modules.conf generation
Harald Hoyer [Tue, 29 Sep 2009 12:50:49 +0000 (14:50 +0200)]
95dasd: fixed typo in modules.conf generation

15 years ago95dasd: do not install zfcp kernel module
Harald Hoyer [Tue, 29 Sep 2009 12:48:06 +0000 (14:48 +0200)]
95dasd: do not install zfcp kernel module

15 years agorename 95s390 to 95dasd
Harald Hoyer [Tue, 29 Sep 2009 12:47:29 +0000 (14:47 +0200)]
rename 95s390 to 95dasd

15 years agodmraid: add missing dso
Harald Hoyer [Thu, 24 Sep 2009 00:16:31 +0000 (17:16 -0700)]
dmraid: add missing dso

15 years agodevicemapper: add dmeventd and new rules for device mapper
Harald Hoyer [Wed, 23 Sep 2009 23:44:57 +0000 (16:44 -0700)]
devicemapper: add dmeventd and new rules for device mapper

15 years agoRemoving umount appears to be a mistake, it seems to have been OK prior.
Warren Togami [Wed, 23 Sep 2009 19:16:59 +0000 (15:16 -0400)]
Removing umount appears to be a mistake, it seems to have been OK prior.

15 years agoFix LiveCD boot regression caused by bf55e2c5d3d0c12ad9d5363fb51c29eabc9f0008
Warren Togami [Mon, 21 Sep 2009 22:14:27 +0000 (18:14 -0400)]
Fix LiveCD boot regression caused by bf55e2c5d3d0c12ad9d5363fb51c29eabc9f0008
FIXME: There is still something wrong with this boot where it wants to use umount, but doing so breaks live boot.

15 years agoselinux: bail out if policy could not be loaded and selinux=0 not
Harald Hoyer [Mon, 21 Sep 2009 15:44:14 +0000 (17:44 +0200)]
selinux: bail out if policy could not be loaded and selinux=0 not
specified

15 years agodmsquash-live: add initqueue-finished
Harald Hoyer [Sat, 19 Sep 2009 08:51:34 +0000 (10:51 +0200)]
dmsquash-live: add initqueue-finished

15 years agolvm: add rd_NO_LVMCONF
Harald Hoyer [Fri, 18 Sep 2009 10:28:36 +0000 (12:28 +0200)]
lvm: add rd_NO_LVMCONF

15 years agomd/dm/lvm: install pre-pivot cleanup hooks only if actually needed
Harald Hoyer [Fri, 18 Sep 2009 09:40:12 +0000 (11:40 +0200)]
md/dm/lvm: install pre-pivot cleanup hooks only if actually needed

- removed dmraid cleanup
- only call lvm cleanup, if no lvm.conf provided
- copy over lvm.conf by default
- add --nolvmconf --lvmconf parameters

15 years agokernel-modules: force install of scsi_wait_scan in hostonly mode
Harald Hoyer [Fri, 18 Sep 2009 10:19:17 +0000 (12:19 +0200)]
kernel-modules: force install of scsi_wait_scan in hostonly mode

15 years agodracut-gencmdline: add missing functions
Harald Hoyer [Fri, 18 Sep 2009 07:08:23 +0000 (09:08 +0200)]
dracut-gencmdline: add missing functions

15 years agoRecognize nodmraid and noiswmd kernel cmdline options
Hans de Goede [Fri, 18 Sep 2009 07:01:09 +0000 (09:01 +0200)]
Recognize nodmraid and noiswmd kernel cmdline options

Recognize nodmraid and noiswmd kernel cmdline options, for anaconda /
rc.sysinit / mkinitrd compatibility.

15 years agoDo not stop / start udev exec-queue around "mdadm -As --run"
Hans de Goede [Thu, 17 Sep 2009 20:52:53 +0000 (22:52 +0200)]
Do not stop / start udev exec-queue around "mdadm -As --run"

When assembling containers + embedded arrays from mdadm.conf,
mdadm needs the /dev/md# node for the container to assemble the
arrays within the container. Stopping the udev exec queue, results in
this node not getting created and mdadm failing to online the
arrays within the container.

Not having stop / start udev exec-queue around "mdadm -As --run" should
be safe as the exact same command is run from rc.sysinit without
any queue locking.

15 years agoversion 002 002
Harald Hoyer [Thu, 17 Sep 2009 15:52:00 +0000 (17:52 +0200)]
version 002

15 years agodracut : remove extraneous output to screen during execution
Quentin Armitage [Thu, 17 Sep 2009 15:48:02 +0000 (17:48 +0200)]
dracut : remove extraneous output to screen during execution

15 years agodracut: use and export PATH=/sbin:/bin:/usr/sbin:/usr/bin
Harald Hoyer [Thu, 17 Sep 2009 14:27:12 +0000 (16:27 +0200)]
dracut: use and export PATH=/sbin:/bin:/usr/sbin:/usr/bin

There's no need for /usr/local to be in our paths at all, nor to
include a :$PATH at the end. The path should be exported though,
so modules don't have to worry about finding things.

15 years agodracut.spec: inc release
Harald Hoyer [Thu, 17 Sep 2009 14:28:02 +0000 (16:28 +0200)]
dracut.spec: inc release

15 years agomdraid: save state dir for mdmon/mdadm for the real root
Harald Hoyer [Thu, 17 Sep 2009 10:13:54 +0000 (12:13 +0200)]
mdraid: save state dir for mdmon/mdadm for the real root

15 years agocreate /var/run in 99base
Harald Hoyer [Thu, 17 Sep 2009 10:10:48 +0000 (12:10 +0200)]
create /var/run in 99base

15 years agodracut.spec: removed gittags
Harald Hoyer [Wed, 16 Sep 2009 14:25:47 +0000 (16:25 +0200)]
dracut.spec: removed gittags

15 years agodracut.spec: update changelog
Harald Hoyer [Wed, 16 Sep 2009 14:24:54 +0000 (16:24 +0200)]
dracut.spec: update changelog

15 years ago65-md-incremental-imsm.rules: check if md raid is already running
Harald Hoyer [Wed, 16 Sep 2009 14:10:09 +0000 (16:10 +0200)]
65-md-incremental-imsm.rules: check if md raid is already running

15 years agolvm/dm/md: switch from lockfiles to $sys/$devpath/holders/*
Harald Hoyer [Wed, 16 Sep 2009 13:34:13 +0000 (15:34 +0200)]
lvm/dm/md: switch from lockfiles to $sys/$devpath/holders/*

This is a more sane solution, than ignoring subsequent "change" events.

The only danger is that we could loop, if a lvm scan triggers a broken
md partition, which triggers a broken PV and so on.

Better fix the scanning tools, not to emit change events for devices,
if no action was taken.

15 years agoTEST-14-IMSM: rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF succeeds now
Harald Hoyer [Wed, 16 Sep 2009 13:32:55 +0000 (15:32 +0200)]
TEST-14-IMSM: rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF succeeds now

This test succeeds, because the mirror parts are found without
assembling the mirror itsself, which is what we want

client_run rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF || return 1

15 years agoTEST-11-LVM: add rdinfo
Harald Hoyer [Wed, 16 Sep 2009 13:32:29 +0000 (15:32 +0200)]
TEST-11-LVM: add rdinfo

15 years agoAdd ifname= argument for persistent netdev names
Hans de Goede [Wed, 16 Sep 2009 13:01:08 +0000 (15:01 +0200)]
Add ifname= argument for persistent netdev names

ifname=<interface>:<MAC>
Assign network device name <interface> (ie eth0) to the NIC
with MAC <MAC>.
Note that if you use this option you *must* specify an ifname=
argument for all interfaces used in ip= or fcoe= arguments

15 years agodmraid: use and install kpartx for dmraids
Harald Hoyer [Wed, 16 Sep 2009 09:21:24 +0000 (11:21 +0200)]
dmraid: use and install kpartx for dmraids

15 years ago90dmraid: use kpartx to scan for partitions
Hans de Goede [Wed, 16 Sep 2009 09:20:57 +0000 (11:20 +0200)]
90dmraid: use kpartx to scan for partitions

15 years ago10rpmversion/install: fix non-rpm install
Harald Hoyer [Wed, 16 Sep 2009 09:18:22 +0000 (11:18 +0200)]
10rpmversion/install: fix non-rpm install

15 years ago10rpmversion,dracut.spec: generate version file and install it
Harald Hoyer [Wed, 16 Sep 2009 07:44:59 +0000 (09:44 +0200)]
10rpmversion,dracut.spec: generate version file and install it

15 years agoadd udevproperty() to dracut-lib and use it
Harald Hoyer [Wed, 16 Sep 2009 07:21:28 +0000 (09:21 +0200)]
add udevproperty() to dracut-lib and use it

newer versions of udev use --property instead of --env

15 years agodmsquash-live-root requires umount
Warren Togami [Tue, 15 Sep 2009 21:17:57 +0000 (17:17 -0400)]
dmsquash-live-root requires umount

15 years agochangelog/NEWS update
Harald Hoyer [Tue, 15 Sep 2009 13:54:14 +0000 (15:54 +0200)]
changelog/NEWS update

15 years agonetwork: break udevsettle early
Harald Hoyer [Tue, 15 Sep 2009 13:38:53 +0000 (15:38 +0200)]
network: break udevsettle early

15 years agoDocument that MAC addresses must be lowercase
Hans de Goede [Mon, 14 Sep 2009 09:42:54 +0000 (11:42 +0200)]
Document that MAC addresses must be lowercase

15 years agoDocument netroot=fcoe:....
Hans de Goede [Mon, 14 Sep 2009 09:42:53 +0000 (11:42 +0200)]
Document netroot=fcoe:....

15 years agoAdd ifname= argument for persistent netdev names
Hans de Goede [Mon, 14 Sep 2009 09:42:52 +0000 (11:42 +0200)]
Add ifname= argument for persistent netdev names

ifname=<interface>:<MAC>
Assign network device name <interface> (ie eth0) to the NIC with MAC <MAC>.
Note that if you use this option you *must* specify an ifname= argument
for all interfaces used in ip= or fcoe= arguments

15 years ago90mdraid/65-md-incremental-imsm.rules: first set initqueue-finished,
Harald Hoyer [Tue, 15 Sep 2009 09:13:47 +0000 (11:13 +0200)]
90mdraid/65-md-incremental-imsm.rules: first set initqueue-finished,
then initqueue-settled

also introduce md_finished.sh to check for all md activity to be settled

15 years agodracut-lib.sh: change -f to -e to allow symlinks
Harald Hoyer [Tue, 15 Sep 2009 11:18:22 +0000 (13:18 +0200)]
dracut-lib.sh: change -f to -e to allow symlinks

15 years ago10rpmversion: try to get the correct dracut rpm version during %post
Harald Hoyer [Tue, 15 Sep 2009 11:12:52 +0000 (13:12 +0200)]
10rpmversion: try to get the correct dracut rpm version during %post

15 years agoTEST-14-IMSM: "rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF" fails
Harald Hoyer [Tue, 15 Sep 2009 09:14:49 +0000 (11:14 +0200)]
TEST-14-IMSM: "rd_NO_DM rd_NO_MDIMSM rd_NO_MDADMCONF" fails

15 years ago90crypt/70-luks.rules: set unique name for initqueue job
Harald Hoyer [Tue, 15 Sep 2009 09:13:01 +0000 (11:13 +0200)]
90crypt/70-luks.rules: set unique name for initqueue job

15 years ago95rootfs-block/block-genrules.sh: beautify code
Harald Hoyer [Tue, 15 Sep 2009 09:12:13 +0000 (11:12 +0200)]
95rootfs-block/block-genrules.sh: beautify code

15 years agoinitqueue-finished: fail also on empty queue
Harald Hoyer [Tue, 15 Sep 2009 09:11:18 +0000 (11:11 +0200)]
initqueue-finished: fail also on empty queue

15 years agoinitqueue: first remove the job, then execute it
Harald Hoyer [Tue, 15 Sep 2009 09:10:36 +0000 (11:10 +0200)]
initqueue: first remove the job, then execute it

15 years ago90mdraid: only switch mdmon to new root, if an instance is running
Harald Hoyer [Tue, 15 Sep 2009 07:27:02 +0000 (09:27 +0200)]
90mdraid: only switch mdmon to new root, if an instance is running

15 years agoplymouth: add rd_NO_PLYMOUTH
Harald Hoyer [Tue, 15 Sep 2009 07:09:53 +0000 (09:09 +0200)]
plymouth: add rd_NO_PLYMOUTH

15 years agomdraid: add rd_NO_MDADMCONF --mdadmconf --nomdadmconf
Harald Hoyer [Tue, 15 Sep 2009 07:00:13 +0000 (09:00 +0200)]
mdraid: add rd_NO_MDADMCONF --mdadmconf --nomdadmconf

Copy /etc/mdadm.conf to initramfs (even for non-hostonly) if
mdadmconf="yes" is set in dracut.conf or --mdadmconf is specified on the
dracut command line.

This was done, because there seems _no_ sane way to autoassemble md raid
arrays.

also moved rd_NO_MD to an udev ENV

15 years ago95resume/install: give resume higher prio than mount
Harald Hoyer [Tue, 15 Sep 2009 06:57:53 +0000 (08:57 +0200)]
95resume/install: give resume higher prio than mount

15 years ago95rootfs-block/mount-root.sh: ignore /.resume
Harald Hoyer [Tue, 15 Sep 2009 06:57:24 +0000 (08:57 +0200)]
95rootfs-block/mount-root.sh: ignore /.resume

15 years ago95resume: simplyfy rules and also recognize blkid typo
Harald Hoyer [Tue, 15 Sep 2009 06:56:30 +0000 (08:56 +0200)]
95resume: simplyfy rules and also recognize blkid typo

15 years ago90dmraid: switch rd_NO_DM to udev ENV
Harald Hoyer [Tue, 15 Sep 2009 06:55:55 +0000 (08:55 +0200)]
90dmraid: switch rd_NO_DM to udev ENV

15 years agoswitch modules to initqueue-finished
Harald Hoyer [Tue, 15 Sep 2009 06:54:25 +0000 (08:54 +0200)]
switch modules to initqueue-finished

15 years agoinit: add initqueue-finished
Harald Hoyer [Tue, 15 Sep 2009 06:47:47 +0000 (08:47 +0200)]
init: add initqueue-finished

/initqueue-finished/*.sh are scripts, which return != 0, if the main
loop still has pending jobs to do.

15 years agodracut: determine path to dracut-functions
Harald Hoyer [Mon, 14 Sep 2009 17:35:18 +0000 (19:35 +0200)]
dracut: determine path to dracut-functions

15 years agoplymouth: grep for PLYMOUTH_POPULATE_SOURCE_FUNCTIONS
Harald Hoyer [Mon, 14 Sep 2009 17:34:30 +0000 (19:34 +0200)]
plymouth: grep for PLYMOUTH_POPULATE_SOURCE_FUNCTIONS

15 years agofix backwards inst() compat
Harald Hoyer [Mon, 14 Sep 2009 17:33:54 +0000 (19:33 +0200)]
fix backwards inst() compat

15 years agoadd pcmcia adapter
Harald Hoyer [Mon, 14 Sep 2009 17:18:15 +0000 (19:18 +0200)]
add pcmcia adapter

15 years ago90dmraid: install parse-dm.sh
Harald Hoyer [Mon, 14 Sep 2009 14:47:30 +0000 (16:47 +0200)]
90dmraid: install parse-dm.sh

15 years agodracut-functions: fixed inst() for mkinitrd compat
Harald Hoyer [Mon, 14 Sep 2009 13:53:55 +0000 (15:53 +0200)]
dracut-functions: fixed inst() for mkinitrd compat

15 years agoselinux-loadpolicy: do not check for selinux config files
Harald Hoyer [Fri, 11 Sep 2009 14:30:10 +0000 (16:30 +0200)]
selinux-loadpolicy: do not check for selinux config files

leave it up to load_policy

15 years agoplymouth: removed rd_plytheme
Harald Hoyer [Fri, 11 Sep 2009 14:29:40 +0000 (16:29 +0200)]
plymouth: removed rd_plytheme

15 years agoremoved initrdargs from parse-*.sh
Harald Hoyer [Thu, 10 Sep 2009 15:34:15 +0000 (17:34 +0200)]
removed initrdargs from parse-*.sh

15 years agoinit: fixed command line handling for /sbin/init and init=<custom init>
Harald Hoyer [Thu, 10 Sep 2009 14:46:08 +0000 (16:46 +0200)]
init: fixed command line handling for /sbin/init and init=<custom init>

15 years agoselinux-loadpolicy.sh: also check for /etc/selinux/config
Harald Hoyer [Thu, 10 Sep 2009 13:49:03 +0000 (15:49 +0200)]
selinux-loadpolicy.sh: also check for /etc/selinux/config