Commit Graph

587 Commits

Author SHA1 Message Date
Harald Hoyer
61537c7de6 override commandline/conf options by root_path 2009-06-02 16:10:04 +02:00
Harald Hoyer
af17f82ed9 moved away Makefile for TEST-30-ISCSI
until iSCSI target VM is built by the testcase
2009-06-02 14:26:48 +02:00
Harald Hoyer
34cb684936 removed debug code 2009-06-02 13:32:11 +02:00
Harald Hoyer
ac4ded9128 add iSCSI module 2009-06-02 13:22:29 +02:00
Harald Hoyer
4332e5f71f install cat for network module 2009-06-02 13:21:16 +02:00
Harald Hoyer
cff3457e32 fixed fstype mount options 2009-06-02 09:25:24 +02:00
Warren Togami
d0c7d42b3e plymouth-0.7: details.so must be copied as well 2009-06-01 22:57:08 -04:00
David Dillow
ebd5615489 strip block: off root= when using the mount hooks
I'm not sure they are still used, but if so they need to
trim the prefix.
2009-06-01 21:43:07 -04:00
David Dillow
b4dc8ad346 Allow NFS and NBD to be built into the kernel
Probe for NFS and NBD capability before trying to load their modules
in case they are built into the kernel. Ugly use of flag files, but
avoids the need for grep to be on the image.
2009-06-01 19:59:22 -04:00
David Dillow
7132e6a346 Remove dependency on /bin/echo
Actually cut the last dependency on //bin/echo for resume.
2009-06-01 19:46:43 -04:00
David Dillow
92997caf35 cleanup shebangs in sourced scripts
All of the scripts are sourced, so there is no need to have
will pick up on the .sh extension.
2009-06-01 19:17:48 -04:00
Warren Togami
4f0e32751f nfs needs sunrpc 2009-06-01 18:38:53 -04:00
Warren Togami
9dcf9cef38 Include only wired ethernet drivers, explicitly exclude wireless.
(If you REALLY want wireless boot, you need to write your own module to configure it properly.)
2009-06-01 18:21:40 -04:00
Warren Togami
e902c65391 plymouth-0.7: fully install default theme and associated plugin 2009-06-01 16:09:24 -04:00
Warren Togami
e26cb36fca Merge branch 'master' of ../dracut-dillow 2009-06-01 14:54:59 -04:00
Victor Lowther
4eba843dde Revert --resolve-names=never in init
That flag is too new to work on most shipping distros, so fall back to
including /etc/group and the libnss_files.
2009-06-01 04:04:34 -05:00
David Dillow
2b117123ec Add NBD support
This adds basic support for root on a network block device to
the netroot framework.
2009-06-01 00:59:52 -04:00
David Dillow
5103130352 nfsroot: move to netroot framework
Parse and convert commandline options in the cmdline hook, and
fill in the missing pieces in the netroot hook. This also allows
root=dhcp to work as expected.
2009-06-01 00:56:01 -04:00
David Dillow
7d7efa4a3d netroot: add common handler for network root devices
/sbin/netroot is a jumping off point to allow various network
root devices to share infrastructure. It will loop over scriptlets
in the netroot handler, looking for a handler to run for this type
of netroot. Handlers can do choose to act based on command line
options to the kernel, or via DHCP options received on this interface.
They should massage root= into a form suitable for their handler.
2009-06-01 00:42:43 -04:00
David Dillow
ae5bc1fd8a dracut-lib: add source_all to library
The network root handler will need this.
2009-06-01 00:39:56 -04:00
David Dillow
9810ce7e38 resume: add support for labeled resume devices
I noticed when doing the block root= parser that resume
didn't support labeled resume devices. Fix that up and
get rid of a dependency on /bin/echo in the process.
2009-06-01 00:27:06 -04:00
David Dillow
d15c7a1ab7 cmdline: cleanup handling and block: handler
Now init checks that we understood the root= option, and can
act upon it, presenting and error if not. Also, clean up the
generation of udev rules such that we don't require /bin/echo.
2009-06-01 00:21:53 -04:00
David Dillow
e450281431 dracut: add cmdline hook
This hook is where each module should parse kernel command line
options and perform any legacy translation.
2009-06-01 00:07:26 -04:00
David Dillow
5c123162ed block root: split out resume parsing and udev rules
We have a resume module, and these rules should live in it. Modify
the sort order a bit to ensure the resume rules continue to execute
first.
2009-05-31 23:19:31 -04:00
David Dillow
145ca9e5b3 nfsroot: move to same sort order as block methods
There is no reason for this to be a 40nfsroot rather than 95nfs
once other network root handlers are added. Go ahead and move it.
2009-05-31 22:45:12 -04:00
Victor Lowther
1a0c05b849 Make root on local block device test completly automated.
We no longer require any user intervention when testing dracut on
a local block device in qemu, assuming everything passes.  If things fail,
we still might need to manually kill things.
2009-05-30 21:23:55 -05:00
Victor Lowther
e314863e67 Several updates to make dracut a bit more robust.
First, add a check script to 99base to ensure that it will load its
prerequisites.

Second, disable the udev magic dracut normally uses when generating
test images -- it was causing random failures when creating the test
root filesystem, presumably due to race conditions between the
rootfs creation scripts and udev.

Third, consolidate the rootfs creation scripts into one script.
2009-05-30 16:53:12 -05:00
Victor Lowther
71a19ef6e0 Excise excess logging verbosity when installing kernel modules. 2009-05-30 12:04:33 -05:00
Victor Lowther
5033486389 Have udevd never try to resolve user or group ownership of devices.
This gets rid of the need to have potentially security-sensitive files
like /etc/passwd and /etc/group in the initramfs, and makes the initramfs
a bit smaller.  We trust the final userspace to do The Right Thing when
assigning user/group ownership to devices.
2009-05-30 11:45:47 -05:00
Victor Lowther
ac9a118354 Fix bug in kernel module loading
We were not loading all the required kernel modules due to a bug in the
dependency checking code.  This was causing us to load only the first
dependent module and ignore the rest.
2009-05-30 10:52:12 -05:00
Victor Lowther
f3fb8d8074 Modify the check script so that 40network will only load as a
dependency on another module.
2009-05-29 23:07:56 -05:00
Victor Lowther
4cf262689e Modify kernel module installation routine to respect --hostonly.
If dracut was run with --hostonly, instmods will only load a module
into the initramfs if it is already loaded on the host machine.

This really trims the fat out of a --hostonly  generated initramfs, and
eliminates the need for the kernel-modules-loaded hook.

This patch also allows a module to flag that it should only load as
a dependency by exiting 255 instead of 0.  Currently, only the network module
uses this functionality.
2009-05-29 23:07:56 -05:00
Victor Lowther
3774d3cc15 Removed 90kernel-modules-loaded.
Sure, it will load all the modules that are currently installed into the
initramfs.  Why was this a good thing, again?
2009-05-29 23:07:56 -05:00
Victor Lowther
66ac3cd1f0 Update check scripts in modules to make them work again.
Also got rid of "dracutmodules=hostonly".  We have --hostonly, and it
does the same thing.
2009-05-29 23:07:15 -05:00
Warren Togami
2c54bc996a Victor pointed out --hostonly doesn't go into check. 2009-05-29 23:56:55 -04:00
Victor Lowther
5a93177819 Merge branch 'master' of ssh://vlowther@dracut.git.sourceforge.net/gitroot/dracut 2009-05-29 17:58:15 -05:00
Victor Lowther
333103217d Don't create fully generic initramfs'es in the test framework
There is no point loading every driver available when we are not testing
network functionality and qemu does not even support the stuff we were
loading.  It just wastes time and space.
2009-05-29 17:55:31 -05:00
Warren Togami
2d7d2fdbbb Properly detect -H and --hostonly mode 2009-05-29 18:38:49 -04:00
Warren Togami
adfe014640 Remove redundant modprobe.d copy 2009-05-29 13:20:33 -04:00
Victor Lowther
626902f67b Merge branch 'master' of ssh://vlowther@dracut.git.sourceforge.net/gitroot/dracut 2009-05-29 06:50:37 -05:00
Warren Togami
642e160c0e Install KMS drivers. It sucks to have a hard coded list, but there is no clean way of doing this distro-neutral at the moment. 2009-05-29 01:14:59 -04:00
Victor Lowther
1a918b40b6 Log dracut output.
If we are installed, log to /var/log/dracut.log.
If we are not installed, log to /tmp/dracut.log
2009-05-28 21:41:05 -05:00
Victor Lowther
c93d9f6265 Fix firmware installation.
Instead of calling firmware checking once per instmods invocation,
call only when we install an actual module on the initramfs.
2009-05-28 21:13:16 -05:00
Victor Lowther
06558b3ee4 Make nfsroot work with hostonly mode. 2009-05-28 21:02:14 -05:00
Warren Togami
c1143d3d6c Filesystem modules already included in =fs, no runtime detection allowed in default dracut 2009-05-28 16:29:22 -04:00
Warren Togami
ba126e82af $drivers specified from .conf or --drivers get copied once, instead of multiple times with other calls to instmods() 2009-05-28 15:55:44 -04:00
Warren Togami
e19d6bf603 Disambiguate modules and drivers. modules are dracutmodules. drivers are kernel modules. 2009-05-28 14:27:02 -04:00
David Dillow
aa43d0b0df More runtime files to /tmp 2009-05-27 22:54:03 -04:00
Warren Togami
3da5856981 Move all files generated during initrd runtime to /tmp 2009-05-27 22:41:18 -04:00
Warren Togami
6941b1b556 Make /sbin/nfsroot executable 2009-05-27 14:35:15 -04:00