summaryrefslogtreecommitdiff
path: root/test/TEST-40-NBD/test.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-07-03 17:44:10 +0200
committerHarald Hoyer <harald@redhat.com>2009-07-03 18:11:38 +0200
commit58dbb43eac70293444dfaba1ca86fc65a44db4cc (patch)
tree0dbc2d45cbd3abe68a795221beae773bbd4d1e6b /test/TEST-40-NBD/test.sh
parent5b2db7d1777c46c36683a122f0efaf502ba50ab3 (diff)
downloaddracut-58dbb43eac70293444dfaba1ca86fc65a44db4cc.tar.gz
dracut-58dbb43eac70293444dfaba1ca86fc65a44db4cc.tar.bz2
dracut-58dbb43eac70293444dfaba1ca86fc65a44db4cc.zip
initqueue now loops until /dev/root exists or root is mounted
init now has the following points to inject scripts: /cmdline/*.sh scripts for command line parsing /pre-udev/*.sh scripts to run before udev is started /pre-trigger/*.sh scripts to run before the main udev trigger is pulled /initqueue/*.sh runs in parallel to the udev trigger Udev events can add scripts here with /sbin/initqueue. If /sbin/initqueue is called with the "--onetime" option, the script will be removed after it was run. If /initqueue/work is created and udev >= 143 then this loop can process the jobs in parallel to the udevtrigger. If the udev queue is empty and no root device is found or no root filesystem was mounted, the user will be dropped to a shell after a timeout. Scripts can remove themselves from the initqueue by "rm $job". /pre-mount/*.sh scripts to run before the root filesystem is mounted NFS is an exception, because it has no device node to be created and mounts in the udev events /mount/*.sh scripts to mount the root filesystem NFS is an exception, because it has no device node to be created and mounts in the udev events If the udev queue is empty and no root device is found or no root filesystem was mounted, the user will be dropped to a shell after a timeout. /pre-pivot/*.sh scripts to run before the real init is executed and the initramfs disappears All processes started before should be killed here. The behaviour of the dmraid module demonstrates how to use the new mechanism. If it detects a device which is part of a raidmember from a udev rule, it installs a job to scan for dmraid devices, if the udev queue is empty. After a scan, it removes itsself from the queue.
Diffstat (limited to 'test/TEST-40-NBD/test.sh')
-rwxr-xr-xtest/TEST-40-NBD/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TEST-40-NBD/test.sh b/test/TEST-40-NBD/test.sh
index 2f545111..07de7fed 100755
--- a/test/TEST-40-NBD/test.sh
+++ b/test/TEST-40-NBD/test.sh
@@ -184,7 +184,7 @@ make_encrypted_root() {
initdir=overlay
. $basedir/dracut-functions
dracut_install mke2fs poweroff cp umount
- inst_simple ./create-root.sh /pre-mount/01create-root.sh
+ inst_simple ./create-root.sh /initqueue/01create-root.sh
)
# create an initramfs that will create the target root filesystem.