Commit Graph

458 Commits

Author SHA1 Message Date
Victor Lowther
c36ce33479 Make debugging much more useful.
Since we are explicitly using bash, we can have nice, useful value for PS4
2009-06-04 22:01:34 -05:00
Harald Hoyer
68ea18cfa1 specfile update 2009-06-04 17:49:28 +02:00
Harald Hoyer
56d8568c96 add dracutbasedir as configurable variable in dracut.conf 2009-06-04 17:44:26 +02:00
Harald Hoyer
2e7f65d96e try to install switch_root from system 2009-06-04 17:44:26 +02:00
Harald Hoyer
59615e06a4 make paths configurable 2009-06-04 17:44:26 +02:00
Harald Hoyer
53759538cb fix udevtriggeropts 2009-06-04 17:44:21 +02:00
Harald Hoyer
c1d71b7ea3 fix dracut logging 2009-06-04 13:17:57 +02:00
Harald Hoyer
c4d25b18f5 prepare for release 2009-06-04 13:08:39 +02:00
Harald Hoyer
11cbb35847 add sample dracut.conf file 2009-06-04 13:07:59 +02:00
Harald Hoyer
91b1157500 add support to specify additional udev trigger options 2009-06-04 13:07:01 +02:00
Warren Togami
2c02c8318c Ensure KMS drivers are loaded before plymouth. 2009-06-03 14:25:50 -04:00
Warren Togami
dff7ea6864 No longer needed, already ran in pre-trigger 2009-06-03 13:10:57 -04:00
Harald Hoyer
27a101f47c simplify plymouth startup 2009-06-03 17:31:48 +02:00
Harald Hoyer
071bd6e1a0 don't run plymouth --show-splash from udev rule
we have to run it no matter what, so don't rely on a rule
2009-06-03 17:12:07 +02:00
Harald Hoyer
1eeddd31af run udevadm trigger for graphics for plymouth in pre-trigger hook 2009-06-03 17:07:23 +02:00
Harald Hoyer
345fbc8699 corrected paths 2009-06-03 17:07:23 +02:00
Harald Hoyer
8afc472432 don't be verbose on testimage target 2009-06-03 17:04:43 +02:00
Warren Togami
0a56724cd6 plymouth0.7: Launch plymouth --show-splash from udev event, and once before switch_root in case it didn't start 2009-06-02 20:20:44 -04:00
Warren Togami
e9b1426eb7 Detect KMS capable drm drivers instead of hard coded list. 2009-06-02 16:51:49 -04:00
Harald Hoyer
87ce134e08 preserve the original root= variable 2009-06-02 18:01:52 +02:00
Harald Hoyer
92bfa4c6e3 use iscsi-iname to generate the initiator name, if not specified 2009-06-02 16:10:36 +02:00
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