platform/upstream/dracut.git
14 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.

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

14 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

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

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

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

14 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

14 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.

14 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

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

14 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

14 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

14 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

14 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

14 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

14 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

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

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

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

14 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

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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

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

14 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

14 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

14 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

14 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

14 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

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

14 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.

14 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

14 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

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

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

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

14 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

14 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

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

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

14 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>

14 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

14 years agodracut.spec: require plymouth-scripts
Harald Hoyer [Wed, 9 Sep 2009 19:16:01 +0000 (21:16 +0200)]
dracut.spec: require plymouth-scripts

14 years agoselinux-loadpolicy: set initial ret=0
Harald Hoyer [Wed, 9 Sep 2009 17:50:44 +0000 (19:50 +0200)]
selinux-loadpolicy: set initial ret=0

14 years agoplymouth: use /usr/libexec/plymouth/plymouth-populate-initrd if possible
Harald Hoyer [Wed, 9 Sep 2009 16:01:42 +0000 (18:01 +0200)]
plymouth: use /usr/libexec/plymouth/plymouth-populate-initrd if possible

14 years agodracut-functions: make inst() mkinitrd compatible
Harald Hoyer [Wed, 9 Sep 2009 16:01:14 +0000 (18:01 +0200)]
dracut-functions: make inst() mkinitrd compatible

14 years agodracut.spec: do not require policycoreutils
Harald Hoyer [Wed, 9 Sep 2009 15:14:01 +0000 (17:14 +0200)]
dracut.spec: do not require policycoreutils

since might do load_policy with chroot, we don't need to require it

14 years ago99base/init: output more info()
Harald Hoyer [Wed, 9 Sep 2009 15:13:02 +0000 (17:13 +0200)]
99base/init: output more info()

14 years agoselinux-loadpolicy: do not mount /proc and /selinux
Harald Hoyer [Wed, 9 Sep 2009 15:06:21 +0000 (17:06 +0200)]
selinux-loadpolicy: do not mount /proc and /selinux

load_policy already does these things for us

14 years agoadd parameter to specify additional kernel modules to include
Harald Hoyer [Wed, 9 Sep 2009 15:02:37 +0000 (17:02 +0200)]
add parameter to specify additional kernel modules to include

--add-drivers for dracut
add_drivers for dracut.conf

14 years agoselinux-loadpolicy: do not mount /proc and /selinux
Harald Hoyer [Wed, 9 Sep 2009 12:41:40 +0000 (14:41 +0200)]
selinux-loadpolicy: do not mount /proc and /selinux

load_policy mounts it for us

14 years agobase/init: add scsi_wait_scan to wait for host adapter scans
Harald Hoyer [Wed, 9 Sep 2009 09:02:41 +0000 (11:02 +0200)]
base/init: add scsi_wait_scan to wait for host adapter scans

14 years agoselinux-loadpolicy.sh: mount /proc and /selinux before loading the
Harald Hoyer [Tue, 8 Sep 2009 14:26:37 +0000 (16:26 +0200)]
selinux-loadpolicy.sh: mount /proc and /selinux before loading the
policies

also check for /sbin/load_policy

14 years ago65-md-incremental-imsm.rules: refine rules
Harald Hoyer [Tue, 8 Sep 2009 13:32:32 +0000 (15:32 +0200)]
65-md-incremental-imsm.rules: refine rules

14 years agoinitqueue: add --name parameter to give a name for --unique
Harald Hoyer [Tue, 8 Sep 2009 13:31:48 +0000 (15:31 +0200)]
initqueue: add --name parameter to give a name for --unique

14 years agoTEST-14-IMSM: create raid5 inside isw raid container
Harald Hoyer [Tue, 8 Sep 2009 13:31:27 +0000 (15:31 +0200)]
TEST-14-IMSM: create raid5 inside isw raid container

14 years agoTEST-14-IMSM: more test cases
Harald Hoyer [Tue, 8 Sep 2009 13:31:00 +0000 (15:31 +0200)]
TEST-14-IMSM: more test cases

14 years agomdraid: stop udev queue until mdraid assembled
Harald Hoyer [Tue, 8 Sep 2009 13:30:17 +0000 (15:30 +0200)]
mdraid: stop udev queue until mdraid assembled

14 years agodmraid: only install 64-md-raid.rules if no vol_id present
Harald Hoyer [Tue, 8 Sep 2009 13:29:30 +0000 (15:29 +0200)]
dmraid: only install 64-md-raid.rules if no vol_id present

14 years agoTEST-14-IMSM: no test for a isw raid array
Harald Hoyer [Tue, 8 Sep 2009 11:43:21 +0000 (13:43 +0200)]
TEST-14-IMSM: no test for a isw raid array

14 years ago65-md-incremental-imsm: add additional check for md-non-containers
Harald Hoyer [Tue, 8 Sep 2009 11:42:31 +0000 (13:42 +0200)]
65-md-incremental-imsm: add additional check for md-non-containers

14 years agoadded initqueue-settled and refactored code
Harald Hoyer [Mon, 7 Sep 2009 15:40:04 +0000 (17:40 +0200)]
added initqueue-settled and refactored code

14 years agomdraid-cleanup: do not stop mdraid container
Harald Hoyer [Mon, 7 Sep 2009 15:53:37 +0000 (17:53 +0200)]
mdraid-cleanup: do not stop mdraid container

14 years agoadd scp to debug module
Harald Hoyer [Mon, 7 Sep 2009 15:10:19 +0000 (17:10 +0200)]
add scp to debug module

14 years agomdraid_start.sh: fixed raid activation
Harald Hoyer [Mon, 7 Sep 2009 12:11:18 +0000 (14:11 +0200)]
mdraid_start.sh: fixed raid activation

14 years agoTEST-12-RAID-DEG: check with root=LABEL=root
Harald Hoyer [Mon, 7 Sep 2009 09:41:38 +0000 (11:41 +0200)]
TEST-12-RAID-DEG: check with root=LABEL=root

14 years ago95udev-rules: fixed c&p bug which did not install 61-persistent-storage.rules
Harald Hoyer [Mon, 7 Sep 2009 09:40:20 +0000 (11:40 +0200)]
95udev-rules: fixed c&p bug which did not install 61-persistent-storage.rules

14 years ago{crypt,dmraid,lvm,mdraid}: cleanup with pre-pivot 30 and 31
Harald Hoyer [Thu, 3 Sep 2009 15:11:57 +0000 (17:11 +0200)]
{crypt,dmraid,lvm,mdraid}: cleanup with pre-pivot 30 and 31

14 years agomdraid: add grep for convenience
Harald Hoyer [Thu, 3 Sep 2009 15:11:03 +0000 (17:11 +0200)]
mdraid: add grep for convenience

14 years agoversion 001
Harald Hoyer [Wed, 2 Sep 2009 13:42:16 +0000 (15:42 +0200)]
version 001

14 years agoreordered blkid/vol_id rules
Harald Hoyer [Wed, 2 Sep 2009 13:26:02 +0000 (15:26 +0200)]
reordered blkid/vol_id rules

14 years agoLVM/DM rules in dracut
Peter Rajnoha [Wed, 2 Sep 2009 11:35:17 +0000 (13:35 +0200)]
LVM/DM rules in dracut

I've looked at the LVM rules used in dracut just recently
and it needs fixing - we should react to change events only
for DM devices, so we have to skip vol_id/blkid call on ADD:

KERNEL=="dm-[0-9]*", ACTION=="add", GOTO="lvm_end"

Also, MD devices have their own rules, where vol_id/blkid
is called and where the symlinks are created (when looking
into raw initrd, this is in  64-md-raid.rules).

Also, if those rules are meant to be for DM devices only,
maybe we should skip symlink creation for the other devices
there, to keep the rules clean and straightforward. I think
we shouldn't create/recreate symlinks for non-dm devices in
LVM/DM rules (..should be in appropriate rules for that type
of device):

KERNEL!="dm-[0-9]*", GOTO="lvm_end"

14 years agoMerge commit 'origin/master'
Victor Lowther [Wed, 2 Sep 2009 12:40:28 +0000 (07:40 -0500)]
Merge commit 'origin/master'

14 years agoMade hostonly checking for fcoe fail for now.
Victor Lowther [Wed, 2 Sep 2009 12:37:33 +0000 (07:37 -0500)]
Made hostonly checking for fcoe fail for now.

Having it unconditionally pass pulls in all the networking cruft even
for systems that do not need it, and that sorta defeats the purpose of
hostonly mode.

14 years ago90*/*cleanup.sh: fixed redirection to /dev/null
Harald Hoyer [Tue, 1 Sep 2009 13:59:31 +0000 (15:59 +0200)]
90*/*cleanup.sh: fixed redirection to /dev/null

14 years agodracut-lib: try to set UDEVVERSION, if not set
Harald Hoyer [Tue, 1 Sep 2009 13:41:08 +0000 (15:41 +0200)]
dracut-lib: try to set UDEVVERSION, if not set

14 years agoplymouth: in the generic case, only install text and details themes
Harald Hoyer [Mon, 31 Aug 2009 14:38:22 +0000 (16:38 +0200)]
plymouth: in the generic case, only install text and details themes

14 years agorelease any raid/crypt/lvm device assembled, but not in use
Harald Hoyer [Mon, 31 Aug 2009 14:24:50 +0000 (16:24 +0200)]
release any raid/crypt/lvm device assembled, but not in use

14 years agoselinux-loadpolicy.sh: redirect output of selinux load_policy
Harald Hoyer [Mon, 31 Aug 2009 14:17:27 +0000 (16:17 +0200)]
selinux-loadpolicy.sh: redirect output of selinux load_policy

14 years agodracut-functions: do not try to clear logfile, if not writable
Harald Hoyer [Mon, 31 Aug 2009 12:54:13 +0000 (14:54 +0200)]
dracut-functions: do not try to clear logfile, if not writable

14 years agodracut-function: add check for volume group members
Harald Hoyer [Mon, 31 Aug 2009 12:58:44 +0000 (14:58 +0200)]
dracut-function: add check for volume group members

see https://bugzilla.redhat.com/show_bug.cgi?id=506189

not all members of a linear volume group are listed in /sys slaves

14 years agosplit dracut in network / non-network
Harald Hoyer [Mon, 31 Aug 2009 10:30:59 +0000 (12:30 +0200)]
split dracut in network / non-network

14 years agodracut.spec: removed s390 conditionals
Harald Hoyer [Mon, 31 Aug 2009 10:05:58 +0000 (12:05 +0200)]
dracut.spec: removed s390 conditionals

14 years agodracut.spec: fixed gittag
Harald Hoyer [Mon, 31 Aug 2009 09:59:45 +0000 (11:59 +0200)]
dracut.spec: fixed gittag

14 years agofixed gitrpm
Harald Hoyer [Mon, 31 Aug 2009 09:59:04 +0000 (11:59 +0200)]
fixed gitrpm

14 years agonew test/TEST-13-ENC-RAID-LVM
Harald Hoyer [Mon, 31 Aug 2009 09:44:26 +0000 (11:44 +0200)]
new test/TEST-13-ENC-RAID-LVM

14 years agoTEST-12-RAID-DEG/test.sh: add rdinfo
Harald Hoyer [Mon, 31 Aug 2009 09:44:01 +0000 (11:44 +0200)]
TEST-12-RAID-DEG/test.sh: add rdinfo

14 years ago65-md-incremental-imsm.rules: also check on "change"
Harald Hoyer [Mon, 31 Aug 2009 09:43:41 +0000 (11:43 +0200)]
65-md-incremental-imsm.rules: also check on "change"

14 years agolvm.rules: blkid for cciss devices
Harald Hoyer [Mon, 31 Aug 2009 09:43:04 +0000 (11:43 +0200)]
lvm.rules: blkid for cciss devices

14 years agoadd udevsettle function and settle after raid/lvm/crypto activities
Harald Hoyer [Mon, 31 Aug 2009 09:41:36 +0000 (11:41 +0200)]
add udevsettle function and settle after raid/lvm/crypto activities

14 years agomdraid_start: check if raid is already active before trying to run it
Harald Hoyer [Mon, 31 Aug 2009 09:40:05 +0000 (11:40 +0200)]
mdraid_start: check if raid is already active before trying to run it

14 years agodracut.spec: require policycoreutils
Harald Hoyer [Mon, 31 Aug 2009 09:39:39 +0000 (11:39 +0200)]
dracut.spec: require policycoreutils