Commit Graph

5739 Commits (052)

Author SHA1 Message Date
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
Harald Hoyer 4c715d64b2 root=dhcp 2009-05-25 16:48:19 +02:00
Harald Hoyer 28df9479e1 make root=dhcp work 2009-05-25 16:48:01 +02:00
Harald Hoyer 9faf9b0690 do not ignore old test files 2009-05-25 15:33:19 +02:00
Harald Hoyer 0e14fae0fe use 40nfsroot instead of 95NFS 2009-05-25 15:32:30 +02:00
Harald Hoyer 9223814d59 do not trap if hostname is empty 2009-05-25 15:32:30 +02:00
Harald Hoyer c00f04f57a introduce modular test suite 2009-05-25 15:32:26 +02:00
Harald Hoyer 2f692e8ff8 silently run qemu 2009-05-25 14:11:24 +02:00
Harald Hoyer 2d75d55330 add dinfo which module is handled currently 2009-05-25 14:10:45 +02:00
Harald Hoyer 22fd162777 for "-l" search dracut-functions relative to dracut path 2009-05-25 14:09:57 +02:00
Harald Hoyer b649f1c21b let find_rule find absolute path rules 2009-05-25 14:08:39 +02:00
David Dillow f6f74096f6 nfsroot: mount NFS root from udev rules
Work-in-progress to mount NFS root from udev, using the DHCP options and
allowing an override from the kernel command line. Supports NFSv4 w/locking
and NFSv2/v3 with nolock.

This is just an RFC patch, you'll note all the XXX markings where I've been
thinking about how to best do things. In addition, we really want to retry
DHCP and NFS mounting in a loop, in case the servers are down or overloaded
like when booting a full diskless cluster.
2009-05-25 12:19:38 +02:00
David Dillow 7e9919b927 network: prepare network configuration engine for udev-based nfsroot
This changes the network config to run dhclient from within udev, and
allows multiple dhclients to run at once. It also sets the hostname and
adds a kernel command line option 'netdebug' to help debug network issues.
2009-05-25 12:19:25 +02:00
David Dillow df44688f3e lib: create a library for useful shell functions
There are several snippits of shell code that are useful to multiple
scripts. Start by moving getarg() into the library.

Signed-off-by: David Dillow <dave@thedillows.org>
2009-05-25 12:13:54 +02:00
Harald Hoyer ce743a71cc create test/initramfs.testing from Makefile target 2009-05-25 12:11:27 +02:00
Victor Lowther 2e7b8713b4 Add a README.modules that describes how dracut modules work. 2009-05-25 12:03:39 +02:00
Victor Lowther 06896cd851 Point README at README.modules for more detail on writing modules 2009-05-25 12:03:39 +02:00
Victor Lowther cdad82fd14 Changed multiline conditional lists to if statements in dracut-functions
It seems that some people object to multiline conditional lists.
Oh, well, no accounting for taste.
2009-05-25 12:03:39 +02:00
Victor Lowther f1336ac775 Style cleanups in main dracut script.
This patch series applies on top of my previous patch series, and
is mainly concerned with coding style updates and better documentation.

Apparently [[ ]] && { ; } type flow control is scary, so translate
most instances of them into standard if-then and case constructs.
2009-05-25 12:03:31 +02:00
David Dillow 6722a717ea dracut: fix fallback to default configuration file
Need to do the fallback in a list rather than a subshell, or we never
actually set $conffile.

Signed-off-by: David Dillow <dave@thedillows.org>
2009-05-25 11:51:57 +02:00
David Dillow 5686cd41d6 dracut-funtions: fix 'instmods =modname'
Move srcmods definition into the function, as $kernel isn't defined yet when
dracut-functions is sourced from dracut.

Signed-off-by: David Dillow <dave@thedillows.org>
2009-05-25 11:51:36 +02:00
Andreas Thienemann 3512925ae2 Make generation of testroot images succeed
sorry, patch was reversed.

correct patch below:
2009-05-25 11:50:20 +02:00
Harald Hoyer 008bb4f22c /dev/kvm is a char device 2009-05-25 11:44:52 +02:00
Harald Hoyer 2281815799 set u+x for run-qemu 2009-05-25 11:36:32 +02:00
Andreas Thienemann 8a4b60d9b2 Support different virtualization technologies for run-qemu.
If the host supports kvm, use is. If this is not the case but the kqemu
module is loaded, run qemu with kqemu optimization. Otherwise fall-back to
pure usermode qemu.
2009-05-25 11:36:32 +02:00
Victor Lowther 4957ab92f2 Create test image on an md array and improve cryptroot handling
If we purport to test booting to an md raid, we may as well test it.

We do not need the plymouth module and the normal crypt module to include
duplicate functionality.
2009-05-25 11:36:32 +02:00
Victor Lowther 7f6643f9d9 Add comments to make-test-root to explain why it is written the way it is. 2009-05-25 11:36:32 +02:00
Victor Lowther c92e789ff4 Remove generated test initramfs'es when cleaning up 2009-05-25 11:36:32 +02:00