platform/upstream/dracut.git
15 years agoadd nfs testcase
Harald Hoyer [Mon, 18 May 2009 17:32:22 +0000 (19:32 +0200)]
add nfs testcase

15 years agoonly create udev rules for root=/dev/...
Harald Hoyer [Mon, 18 May 2009 17:32:01 +0000 (19:32 +0200)]
only create udev rules for root=/dev/...

15 years agobasic support for "nfs://" dhcp root_path
Harald Hoyer [Mon, 18 May 2009 17:31:08 +0000 (19:31 +0200)]
basic support for "nfs://" dhcp root_path

15 years agoreenable manual block mount for e.g. lvm devices
Harald Hoyer [Mon, 18 May 2009 16:17:56 +0000 (18:17 +0200)]
reenable manual block mount for e.g. lvm devices

15 years agoremoved debug code
Harald Hoyer [Mon, 18 May 2009 14:38:32 +0000 (16:38 +0200)]
removed debug code

15 years agobetter use bash for initramfs debugging
Harald Hoyer [Mon, 18 May 2009 14:09:16 +0000 (16:09 +0200)]
better use bash for initramfs debugging

15 years agofixed dhclient dhcp options saving
Harald Hoyer [Mon, 18 May 2009 14:08:58 +0000 (16:08 +0200)]
fixed dhclient dhcp options saving

15 years agoadd minimal dnsmasq dhcp/dns server
Harald Hoyer [Mon, 18 May 2009 13:33:37 +0000 (15:33 +0200)]
add minimal dnsmasq dhcp/dns server

15 years agouse multicast net for qemu
Harald Hoyer [Mon, 18 May 2009 13:32:09 +0000 (15:32 +0200)]
use multicast net for qemu

15 years agofixed wildcard test of run-dhclient.sh
Harald Hoyer [Mon, 18 May 2009 13:31:07 +0000 (15:31 +0200)]
fixed wildcard test of run-dhclient.sh

15 years agofixed 40network module
Harald Hoyer [Mon, 18 May 2009 13:22:33 +0000 (15:22 +0200)]
fixed 40network module

15 years agoadd "rm" to debug module
Harald Hoyer [Mon, 18 May 2009 13:22:03 +0000 (15:22 +0200)]
add "rm" to debug module

15 years agoadd dhclient to test root image
Harald Hoyer [Mon, 18 May 2009 12:09:21 +0000 (14:09 +0200)]
add dhclient to test root image

15 years agomkdir /var/run for dhclient
Harald Hoyer [Mon, 18 May 2009 12:08:02 +0000 (14:08 +0200)]
mkdir /var/run for dhclient

15 years agokill dhclient if pid was found
Harald Hoyer [Mon, 18 May 2009 12:07:34 +0000 (14:07 +0200)]
kill dhclient if pid was found

15 years agoadd debug to test image
Harald Hoyer [Mon, 18 May 2009 12:06:47 +0000 (14:06 +0200)]
add debug to test image

15 years agomerge 95rootfs-block-udev and 95rootfs-block
Harald Hoyer [Mon, 18 May 2009 12:05:36 +0000 (14:05 +0200)]
merge 95rootfs-block-udev and 95rootfs-block

15 years agosetsid() and set controlling terminal for real /sbin/init
Harald Hoyer [Mon, 18 May 2009 11:57:51 +0000 (13:57 +0200)]
setsid() and set controlling terminal for real /sbin/init

enables job control in the test images

15 years agomerge 95rootfs-block-udev and 95rootfs-block
Harald Hoyer [Fri, 15 May 2009 13:42:28 +0000 (15:42 +0200)]
merge 95rootfs-block-udev and 95rootfs-block

15 years agoremoved kernel variable from test/test-initramfs
Harald Hoyer [Fri, 15 May 2009 12:09:55 +0000 (14:09 +0200)]
removed kernel variable from test/test-initramfs

15 years agocleanup make-test-root
Harald Hoyer [Fri, 15 May 2009 11:24:08 +0000 (13:24 +0200)]
cleanup make-test-root

15 years agoadd APPEND and DRACUTOPTS to make target "test"
Harald Hoyer [Fri, 15 May 2009 11:16:15 +0000 (13:16 +0200)]
add APPEND and DRACUTOPTS to make target "test"

call test with additional dracut options and kernel command line
parameter:

$ make APPEND="udevinfo quiet" DRACUTOPTS="-verbose" test

15 years agofall back to filesystem type "auto"
Harald Hoyer [Fri, 15 May 2009 11:15:11 +0000 (13:15 +0200)]
fall back to filesystem type "auto"

15 years agodash echo does not support -e option
Harald Hoyer [Fri, 15 May 2009 10:49:25 +0000 (12:49 +0200)]
dash echo does not support -e option

use /bin/echo, instead of dash builtin echo
do not use "sh -c"

15 years agochange file descriptor for flock locking
Harald Hoyer [Fri, 15 May 2009 10:48:11 +0000 (12:48 +0200)]
change file descriptor for flock locking

dash does not like filedescriptors > 9

15 years agoadd debug and changed verbose parameter
Harald Hoyer [Fri, 15 May 2009 10:45:58 +0000 (12:45 +0200)]
add debug and changed verbose parameter

previous -verbose is now -debug (set -x)
-verbose adds some information about the resulting initrd size

15 years agoadd derror(), dinfo() and dwarning()
Harald Hoyer [Fri, 15 May 2009 10:45:21 +0000 (12:45 +0200)]
add derror(), dinfo() and dwarning()

15 years agoadd target "check"
Harald Hoyer [Fri, 15 May 2009 10:44:36 +0000 (12:44 +0200)]
add target "check"

add dash syntax checking

15 years agofixed plymouth installation for plymouth-0.7.0-0.2009.05.08.1.fc11
Harald Hoyer [Fri, 15 May 2009 10:43:46 +0000 (12:43 +0200)]
fixed plymouth installation for plymouth-0.7.0-0.2009.05.08.1.fc11

15 years agodo not run dhclient, if no net device found
Harald Hoyer [Fri, 15 May 2009 10:43:03 +0000 (12:43 +0200)]
do not run dhclient, if no net device found

15 years agoupdated README and TODO
Harald Hoyer [Tue, 12 May 2009 13:48:03 +0000 (15:48 +0200)]
updated README and TODO

15 years agoinstall all network modules
Harald Hoyer [Tue, 12 May 2009 13:47:01 +0000 (15:47 +0200)]
install all network modules

15 years agono additional modules specified for test/dracut.conf.test
Harald Hoyer [Tue, 12 May 2009 13:46:20 +0000 (15:46 +0200)]
no additional modules specified for test/dracut.conf.test

15 years agoinstall more binaries and directories in the test root
Harald Hoyer [Tue, 12 May 2009 13:35:57 +0000 (15:35 +0200)]
install more binaries and directories in the test root

15 years agoboot with network
Harald Hoyer [Tue, 12 May 2009 13:35:22 +0000 (15:35 +0200)]
boot with network

15 years agoMerge branch 'test' into merge
Harald Hoyer [Tue, 24 Mar 2009 10:44:50 +0000 (11:44 +0100)]
Merge branch 'test' into merge

15 years agoignore generated test images
Harald Hoyer [Tue, 24 Mar 2009 10:37:56 +0000 (11:37 +0100)]
ignore generated test images

test/initramfs.testing
test/root.ext2

15 years agoadd module for rootfs mounting via udev rules
Harald Hoyer [Tue, 24 Mar 2009 10:36:56 +0000 (11:36 +0100)]
add module for rootfs mounting via udev rules

15 years agosleep 0.5 seconds instead of 1
Harald Hoyer [Tue, 24 Mar 2009 10:35:52 +0000 (11:35 +0100)]
sleep 0.5 seconds instead of 1

15 years agoadd udevdebug and udevinfo command line arguments
Harald Hoyer [Tue, 24 Mar 2009 10:34:45 +0000 (11:34 +0100)]
add udevdebug and udevinfo command line arguments

15 years agomove root command line argument parsing to modules
Harald Hoyer [Tue, 24 Mar 2009 10:33:58 +0000 (11:33 +0100)]
move root command line argument parsing to modules

15 years agorename "debug" to "ramfsdebug" to differ from the kernel "debug" argument
Harald Hoyer [Tue, 24 Mar 2009 10:32:54 +0000 (11:32 +0100)]
rename "debug" to "ramfsdebug" to differ from the kernel "debug" argument

15 years agofixed the root kernel command argument
Harald Hoyer [Tue, 24 Mar 2009 10:31:07 +0000 (11:31 +0100)]
fixed the root kernel command argument

15 years agofixed the creation of the root filesystem
Harald Hoyer [Tue, 24 Mar 2009 10:30:30 +0000 (11:30 +0100)]
fixed the creation of the root filesystem

15 years agoadd udev mount rule module to the test image
Harald Hoyer [Tue, 24 Mar 2009 10:29:53 +0000 (11:29 +0100)]
add udev mount rule module to the test image

15 years agoonly create the /bin/sh symlink to bash, if it does not exist yet
Harald Hoyer [Tue, 24 Mar 2009 10:29:03 +0000 (11:29 +0100)]
only create the /bin/sh symlink to bash, if it does not exist yet

15 years agoadd filesystem modules to the initrd
Harald Hoyer [Tue, 24 Mar 2009 10:28:25 +0000 (11:28 +0100)]
add filesystem modules to the initrd

15 years agoonly install the dash symlink to /bin/sh, if dash is installed
Harald Hoyer [Tue, 24 Mar 2009 10:27:35 +0000 (11:27 +0100)]
only install the dash symlink to /bin/sh, if dash is installed

15 years agoMerge branch 'enhanced-test-framework' of git://fnordovax.org/dracut into test
Harald Hoyer [Mon, 23 Mar 2009 14:28:14 +0000 (15:28 +0100)]
Merge branch 'enhanced-test-framework' of git://fnordovax.org/dracut into test

Conflicts:
modules.d/50plymouth/63-luks.rules
modules.d/50plymouth/cryptroot.sh
modules.d/50plymouth/install
modules.d/90crypt/63-luks.rules
modules.d/90crypt/cryptroot.sh
modules.d/90crypt/install

15 years agodo not use grep to test if sysroot is mounted
Victor Lowther [Thu, 12 Mar 2009 11:30:14 +0000 (06:30 -0500)]
do not use grep to test if sysroot is mounted

15 years agomodule 90kernel-modules-loaded
Victor Lowther [Thu, 12 Mar 2009 11:30:14 +0000 (06:30 -0500)]
module 90kernel-modules-loaded

On Mon, 2009-03-09 at 16:00 +0100, Harald Hoyer wrote:
> Victor Lowther wrote:
> > How does it handle nfsroot?
>
> not yet.. thus the old hooks are still called. :-/

Hmmm... your udev based resume and root mounting do not work at all for
me.  If I do not install the shell-based mount hooks, the root
filesystem never gets mounted -- I have to mount it manually.

Also,

15 years agoUpdated test-init to only create fstab symlink as needed.
Victor Lowther [Fri, 20 Mar 2009 08:51:05 +0000 (03:51 -0500)]
Updated test-init to only create fstab symlink as needed.

15 years agoDon't regenerate the test image when anything changes
Victor Lowther [Fri, 20 Mar 2009 08:40:02 +0000 (03:40 -0500)]
Don't regenerate the test image when anything changes

Only regenerate it if we changed test-init or make-test-root

15 years agoMove loading crypt kernel modules to the crypt module
Victor Lowther [Fri, 20 Mar 2009 08:36:21 +0000 (03:36 -0500)]
Move loading crypt kernel modules to the crypt module

15 years agoMinor updates to the testing framework
Victor Lowther [Fri, 20 Mar 2009 08:34:30 +0000 (03:34 -0500)]
Minor updates to the testing framework

15 years agoJust pass args the kernel passed to us, not /proc/cmdline args.
Victor Lowther [Fri, 20 Mar 2009 07:58:58 +0000 (02:58 -0500)]
Just pass args the kernel passed to us, not /proc/cmdline args.

15 years agoSilence in the initramfs is golden.
Victor Lowther [Fri, 20 Mar 2009 07:25:13 +0000 (02:25 -0500)]
Silence in the initramfs is golden.

Get rid of gratuitous text -- we should only talk if asking a question or
if something screwed up.

15 years agoChange default install target for udev rules.
Victor Lowther [Fri, 20 Mar 2009 07:19:33 +0000 (02:19 -0500)]
Change default install target for udev rules.

Also make sure that udev does not complain about a missing rules.d directory.

15 years agoLoad all our usual dracut modules
Victor Lowther [Thu, 19 Mar 2009 17:20:26 +0000 (12:20 -0500)]
Load all our usual dracut modules

15 years agoMove finding and mounting root on block devices into its own hook.
Victor Lowther [Thu, 19 Mar 2009 17:15:02 +0000 (12:15 -0500)]
Move finding and mounting root on block devices into its own hook.

15 years agoSplit out resume handling into its own hook.
Victor Lowther [Thu, 19 Mar 2009 17:07:31 +0000 (12:07 -0500)]
Split out resume handling into its own hook.

15 years agoMove parsing rootfs options to a pre-udev hook.
Victor Lowther [Thu, 19 Mar 2009 15:41:03 +0000 (10:41 -0500)]
Move parsing rootfs options to a pre-udev hook.

15 years agoUpdate plymouth to work with running cryptsetup from a udev rule.
Victor Lowther [Thu, 19 Mar 2009 15:38:22 +0000 (10:38 -0500)]
Update plymouth to work with running cryptsetup from a udev rule.

15 years agoUnlock our encrypted root in a udev rule.
Victor Lowther [Thu, 19 Mar 2009 14:59:06 +0000 (09:59 -0500)]
Unlock our encrypted root in a udev rule.

15 years agoMove processing root options into a pre-udev hook.
Victor Lowther [Thu, 19 Mar 2009 14:31:28 +0000 (09:31 -0500)]
Move processing root options into a pre-udev hook.

Also make changes that will make it easier to udevify resuming
from hibernate and mounting root.

15 years agoUpdate test framework to create and use LVM on cryptroot
Victor Lowther [Mon, 16 Mar 2009 09:42:02 +0000 (04:42 -0500)]
Update test framework to create and use LVM on cryptroot

15 years agochanged mode of modules.d/90dmsetup/check to 0755
Harald Hoyer [Mon, 9 Mar 2009 12:18:06 +0000 (13:18 +0100)]
changed mode of modules.d/90dmsetup/check to 0755

15 years agoremoved exit 1 from debug
Harald Hoyer [Mon, 9 Mar 2009 12:11:38 +0000 (13:11 +0100)]
removed exit 1 from debug

15 years agotrigger root mount via udev rules
Harald Hoyer [Mon, 9 Mar 2009 11:55:02 +0000 (12:55 +0100)]
trigger root mount via udev rules

15 years agoremoved trailing \
Harald Hoyer [Mon, 9 Mar 2009 11:54:01 +0000 (12:54 +0100)]
removed trailing \

15 years agoget crypt password with rules
Harald Hoyer [Mon, 9 Mar 2009 11:53:19 +0000 (12:53 +0100)]
get crypt password with rules

15 years agoRevert "Make plymouth play nice with the current crypt code, part 1"
Harald Hoyer [Mon, 9 Mar 2009 08:23:24 +0000 (09:23 +0100)]
Revert "Make plymouth play nice with the current crypt code, part 1"

This reverts commit 79ec17c74d74e3b23706542ec548874d36be2de3.

15 years agoadd full patch to /sbin/ip and check for dhclient $pid before kill
Harald Hoyer [Mon, 9 Mar 2009 11:49:17 +0000 (12:49 +0100)]
add full patch to /sbin/ip and check for dhclient $pid before kill

15 years agoignore testimages
Harald Hoyer [Mon, 9 Mar 2009 11:55:38 +0000 (12:55 +0100)]
ignore testimages

15 years agodo not display "file not found" for /etc/lsb-release
Harald Hoyer [Mon, 9 Mar 2009 08:18:25 +0000 (09:18 +0100)]
do not display "file not found" for /etc/lsb-release

15 years agofixed bash error in inst_binary()
Harald Hoyer [Mon, 9 Mar 2009 08:17:41 +0000 (09:17 +0100)]
fixed bash error in inst_binary()

./dracut-functions: line 108: syntax error near unexpected token `<'
./dracut-functions: line 108: `    done < <(ldd $bin 2>/dev/null)'

15 years agoModify Makefile to use new test harness
Victor Lowther [Sun, 8 Mar 2009 15:49:44 +0000 (10:49 -0500)]
Modify Makefile to use new test harness

15 years agoAdd a very simple test harness
Victor Lowther [Sun, 8 Mar 2009 14:23:11 +0000 (09:23 -0500)]
Add a very simple test harness

This creates a basic root filesystem, creates an initramfs, and tries
to boot to the basic filesystem.

The init code on the test filesystem prints how much memory is used vs. free
and then drops to a shell.  Exiting the shell will power off the VM.

15 years agoMake udevd shut up
Victor Lowther [Sun, 8 Mar 2009 15:38:25 +0000 (10:38 -0500)]
Make udevd shut up

Do this by loading /etc/group and /lib*/libnss_files.so.* onto the initramfs

15 years agoFixup 90kernel-modules-loaded
Victor Lowther [Sun, 8 Mar 2009 14:21:06 +0000 (09:21 -0500)]
Fixup 90kernel-modules-loaded

The inst functions do not know how to handle directories directly.
Just find the files, and they will create the directories as needed.

15 years agoMake dracutmodules default to "auto"
Victor Lowther [Sun, 8 Mar 2009 14:18:12 +0000 (09:18 -0500)]
Make dracutmodules default to "auto"
We have OS-specific modules, and it is vital that we skip then on
OSes that they do not apply to.

15 years agoRemove all files on the initramfs before switching root
Victor Lowther [Sun, 8 Mar 2009 14:15:18 +0000 (09:15 -0500)]
Remove all files on the initramfs before switching root

The code from pjones's tree did not include the recursive remove code,
so I readded it from the nash source code.

15 years agoSome versions of udevd do not look for rules in /lib/udev/rules.d
Victor Lowther [Sat, 7 Mar 2009 14:32:02 +0000 (08:32 -0600)]
Some versions of udevd do not look for rules in /lib/udev/rules.d

For those versions, install rules to /etc/udev/rules.d instead.

15 years agoClean up logic for auto vs. hostonly
Victor Lowther [Sat, 7 Mar 2009 14:25:22 +0000 (08:25 -0600)]
Clean up logic for auto vs. hostonly

The mass of conditional checking and multiple variables was a little
hard to read, split some of it into its own function.

15 years agoMove root option processing into a pre-mount hook.
Victor Lowther [Sat, 7 Mar 2009 14:02:03 +0000 (08:02 -0600)]
Move root option processing into a pre-mount hook.

This will make it easier to add support for root on nfs, root on iscsi,
root on multipath, and other such oddities.

15 years agoadd hostonly check procedure
Harald Hoyer [Sat, 7 Mar 2009 13:01:32 +0000 (14:01 +0100)]
add hostonly check procedure

15 years agofixed Makefile and removed dracut.conf obsoleted by skip-missing
Harald Hoyer [Sat, 7 Mar 2009 12:14:59 +0000 (13:14 +0100)]
fixed Makefile and removed dracut.conf obsoleted by skip-missing

15 years agocombine --skip-missing to /check infrastructure
Seewer Philippe [Sat, 7 Mar 2009 11:59:13 +0000 (12:59 +0100)]
combine --skip-missing to /check infrastructure

This patch introduces --skip-missing to skip modules failing /check,
allowing to use the check infrastructure not only for
dracutmodules="auto".

Result: dracutmodules="auto" becomes obsolete, automatically setting
dracutmodules="all" and skipmissing="yes"

Patch is built on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)

15 years agoadd /check for dmraim module
Seewer Philippe [Sat, 7 Mar 2009 11:24:07 +0000 (12:24 +0100)]
add /check for dmraim module

With the /check infrastucture in place, dmraid is missing a check file.

Patch is built on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)

15 years agodo not autoinstall 90kernel-modules-loaded 95udev-rules.ub810
Harald Hoyer [Sat, 7 Mar 2009 11:19:55 +0000 (12:19 +0100)]
do not autoinstall 90kernel-modules-loaded  95udev-rules.ub810

15 years agoset dracutmodules to "auto"
Harald Hoyer [Sat, 7 Mar 2009 11:18:44 +0000 (12:18 +0100)]
set dracutmodules to "auto"

15 years agofixed conffile and dracutmodules handling
Harald Hoyer [Sat, 7 Mar 2009 11:18:09 +0000 (12:18 +0100)]
fixed conffile and dracutmodules handling

15 years agofixed -c parameter handling and Makefile
Harald Hoyer [Sat, 7 Mar 2009 11:06:17 +0000 (12:06 +0100)]
fixed -c parameter handling and Makefile

15 years agopriorize -m over dracut.conf, add --modules and get rid of automatic use of ./dracut...
Seewer Philippe [Sat, 7 Mar 2009 10:53:40 +0000 (11:53 +0100)]
priorize -m over dracut.conf, add --modules and get rid of automatic use of ./dracut.conf

Victor Lowther introduced -c to freely set dracut.conf. Means we can get
rid of automatic use of ./dracut.conf if -l is used, use -c instead.

Second this patch prefers options before config files and adds an option
-d|--drivers to set the modules= option.

Patch is built on top of Harald Hoyers merge tree
(git://git.surfsite.org/pub/git/dracut.git)

15 years agoSimplify switch_root.c a bit
Victor Lowther [Sat, 7 Mar 2009 04:32:37 +0000 (22:32 -0600)]
Simplify switch_root.c a bit

Shift some required functionality from switch_root.c to init.

String manipulation and filtering, and testing for the existence of init
is easier in the init script than in C.

15 years agoAdded a comment for instmods.
Victor Lowther [Sat, 7 Mar 2009 03:45:34 +0000 (21:45 -0600)]
Added a comment for instmods.

15 years agoFix broken -c handling and give instmods a little optimization.
Victor Lowther [Sat, 7 Mar 2009 03:41:31 +0000 (21:41 -0600)]
Fix broken -c handling and give instmods a little optimization.

15 years agoAdded -c switch to dracut to use a custom dracut.conf
Victor Lowther [Sat, 7 Mar 2009 03:16:41 +0000 (21:16 -0600)]
Added -c switch to dracut to use a custom dracut.conf

Also some doc updates.

15 years agoMinor changes to network scripts to bring inline with my current patch series
Victor Lowther [Fri, 6 Mar 2009 23:04:05 +0000 (17:04 -0600)]
Minor changes to network scripts to bring inline with my current patch series

15 years agoTighten up the ubuntu 8.10 udev rules installation script.
Victor Lowther [Fri, 6 Mar 2009 22:53:29 +0000 (16:53 -0600)]
Tighten up the ubuntu 8.10 udev rules installation script.

We need to add a check file here, but I ahve no idea how to do that for ubuntu.