Victor Lowther
71a19ef6e0
Excise excess logging verbosity when installing kernel modules.
16 years ago
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.
16 years ago
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.
16 years ago
Victor Lowther
f3fb8d8074
Modify the check script so that 40network will only load as a
...
dependency on another module.
16 years ago
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.
16 years ago
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?
16 years ago
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.
16 years ago
Warren Togami
2c54bc996a
Victor pointed out --hostonly doesn't go into check.
16 years ago
Victor Lowther
5a93177819
Merge branch 'master' of ssh://vlowther@dracut.git.sourceforge.net/gitroot/dracut
16 years ago
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.
16 years ago
Warren Togami
2d7d2fdbbb
Properly detect -H and --hostonly mode
16 years ago
Warren Togami
adfe014640
Remove redundant modprobe.d copy
16 years ago
Victor Lowther
626902f67b
Merge branch 'master' of ssh://vlowther@dracut.git.sourceforge.net/gitroot/dracut
16 years ago
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.
16 years ago
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
16 years ago
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.
16 years ago
Victor Lowther
06558b3ee4
Make nfsroot work with hostonly mode.
16 years ago
Warren Togami
c1143d3d6c
Filesystem modules already included in =fs, no runtime detection allowed in default dracut
16 years ago
Warren Togami
ba126e82af
$drivers specified from .conf or --drivers get copied once, instead of multiple times with other calls to instmods()
16 years ago
Warren Togami
e19d6bf603
Disambiguate modules and drivers. modules are dracutmodules. drivers are kernel modules.
16 years ago
David Dillow
aa43d0b0df
More runtime files to /tmp
16 years ago
Warren Togami
3da5856981
Move all files generated during initrd runtime to /tmp
16 years ago
Warren Togami
6941b1b556
Make /sbin/nfsroot executable
16 years ago
Harald Hoyer
4127130480
prefixed more internal command line options with "rd"
...
break -> rdbreak
netdebug -> rdnetdebug
16 years ago
Harald Hoyer
ee0deb9918
better handling of mount moving rpc_pipefs
16 years ago
Harald Hoyer
77f6725c4e
install umount for nfsroot
16 years ago
Andreas Thienemann
5fa499403f
cleanup environment before calling real init
16 years ago
Andreas Thienemann
e89bf85757
Prevent unnecessary installation of bash if bash. Same goes for dash.
16 years ago
Victor Lowther
08d924f6a8
Actaully make 95udev-rules.ub810/check work
16 years ago
Victor Lowther
b6405a630b
Fix potential bug that might cause us to load the wrong module in case
...
the module names are too similar.
16 years ago
Victor Lowther
cfc5b698e6
Add dependency info to the plymouth modules and the nfsroot module.
...
No point in making it easy for them to fail.
16 years ago
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.
16 years ago
Victor Lowther
fa9763f52a
Make check scripts for 90dmraid and 90dmsetup actually work.
16 years ago
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.
16 years ago
Harald Hoyer
16a775be26
Revert "root=dhcp"
...
This reverts commit 4c715d64b2
.
16 years ago
Harald Hoyer
c9f0e1f9a5
add "#!/bin/bash" to test.sh
16 years ago
Harald Hoyer
65f14ce19c
renamed internal command line options to rd* namespace
...
ramfsdebug -> rdinitdebug
udevinfo -> rdudevinfo
udevdebug -> rdudevdebug
16 years ago
Harald Hoyer
1faecdc1d3
exit 0 on end of dracut
16 years ago
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.
16 years ago
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.
16 years ago
Harald Hoyer
02b47109cf
add small test script to create a minimal root in /mnt/root
16 years ago
Harald Hoyer
443a72d0cf
chmod u+x modules.d/40nfsroot/install
16 years ago
Harald Hoyer
5a87522d49
use 40nfsroot
16 years ago
Harald Hoyer
e6db216f0b
move /var/lib/nfs/rpc_pipefs to NEWROOT only if directory exists
16 years ago
Harald Hoyer
4c715d64b2
root=dhcp
16 years ago
Harald Hoyer
28df9479e1
make root=dhcp work
16 years ago
Harald Hoyer
9faf9b0690
do not ignore old test files
16 years ago
Harald Hoyer
0e14fae0fe
use 40nfsroot instead of 95NFS
16 years ago
Harald Hoyer
9223814d59
do not trap if hostname is empty
16 years ago
Harald Hoyer
c00f04f57a
introduce modular test suite
16 years ago