Commit Graph

6116 Commits (055)

Author SHA1 Message Date
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
Harald Hoyer 4127130480 prefixed more internal command line options with "rd"
break -> rdbreak
netdebug -> rdnetdebug
2009-05-27 14:56:20 +02:00
Harald Hoyer ee0deb9918 better handling of mount moving rpc_pipefs 2009-05-27 14:21:52 +02:00
Harald Hoyer 77f6725c4e install umount for nfsroot 2009-05-26 18:08:56 +02:00
Andreas Thienemann 5fa499403f cleanup environment before calling real init 2009-05-26 18:08:19 +02:00
Andreas Thienemann e89bf85757 Prevent unnecessary installation of bash if bash. Same goes for dash. 2009-05-26 18:06:56 +02:00
Victor Lowther 08d924f6a8 Actaully make 95udev-rules.ub810/check work 2009-05-25 17:08:04 -05:00
Victor Lowther b6405a630b Fix potential bug that might cause us to load the wrong module in case
the module names are too similar.
2009-05-25 17:01:21 -05:00
Victor Lowther cfc5b698e6 Add dependency info to the plymouth modules and the nfsroot module.
No point in making it easy for them to fail.
2009-05-25 16:59:17 -05:00
Victor Lowther 1e19548857 Add check files for network and nfsroot
This way dracut will not try to install them if the system does not have
the needed prerequisites.
2009-05-25 16:35:57 -05:00
Victor Lowther fa9763f52a Make check scripts for 90dmraid and 90dmsetup actually work. 2009-05-25 11:52:17 -05:00
Victor Lowther a0c2cee947 Get rid of dependency on e2mkdir
If we install copy-root as a mount hook, it will be run after the root fs
is mounted and it will make hte proc directory, allowing root filesystem
creation to finish without error.
2009-05-25 11:44:42 -05:00
Harald Hoyer 16a775be26 Revert "root=dhcp"
This reverts commit 4c715d64b2.
2009-05-25 18:24:13 +02:00
Harald Hoyer c9f0e1f9a5 add "#!/bin/bash" to test.sh 2009-05-25 18:14:26 +02:00
Harald Hoyer 65f14ce19c renamed internal command line options to rd* namespace
ramfsdebug -> rdinitdebug
udevinfo -> rdudevinfo
udevdebug -> rdudevdebug
2009-05-25 17:59:21 +02:00
Harald Hoyer 1faecdc1d3 exit 0 on end of dracut 2009-05-25 17:50:10 +02:00
Victor Lowther fe9143d9ca Move content of 00test module into the test subdir
The last changes made the 00test module really awkward anyways, so just
hack the test module into the initramfs in a slight more brutal fashion.
2009-05-25 17:49:56 +02:00
Victor Lowther 0c2e3d1221 Add infrastructure for dracut module dependency checking.
This also eliminates --skip-missing.  Check scripts should now check
to ensure that any files and settings they will copy from the host
system actually exist when called without arguments.

The check scripts are also updated to not try to source dracut-functions
which(1) is a perfectly good way of checking if a command is on the path.
2009-05-25 17:49:39 +02:00
Harald Hoyer 02b47109cf add small test script to create a minimal root in /mnt/root 2009-05-25 16:51:10 +02:00
Harald Hoyer 443a72d0cf chmod u+x modules.d/40nfsroot/install 2009-05-25 16:49:26 +02:00
Harald Hoyer 5a87522d49 use 40nfsroot 2009-05-25 16:49:10 +02:00
Harald Hoyer e6db216f0b move /var/lib/nfs/rpc_pipefs to NEWROOT only if directory exists 2009-05-25 16:48:36 +02:00