Commit Graph

18 Commits

Author SHA1 Message Date
Harald Hoyer
9ec23437fa add /sbin to $PATH 2009-03-06 14:36:18 +01:00
Harald Hoyer
7cd15fe768 use $(( instead of $[ 2009-03-06 14:33:42 +01:00
Harald Hoyer
379dd5de55 use udev rules to autoassemble a md raid and added mdmon pre-pivot 2009-03-06 12:43:13 +01:00
Harald Hoyer
1e984a27d2 start udevd with --resolve-names=never 2009-03-06 10:57:16 +01:00
Harald Hoyer
63efe29bb3 use switch_root code from http://pjones.fedorapeople.org/mkstart/usr/lib/mkstart/switchroot.c 2009-03-06 10:57:12 +01:00
Harald Hoyer
6b5951b3d6 added mdraid autoassembling 2009-03-06 10:32:12 +01:00
Harald Hoyer
a890fe2922 redirect more to null 2009-03-05 17:17:32 +01:00
Harald Hoyer
0f46778162 added plymouth with crypt handling 2009-03-05 17:16:56 +01:00
Harald Hoyer
e548dabcef make crypt more failsafe 2009-03-05 14:47:00 +01:00
Harald Hoyer
879305557c kill udev before switch_root and bail out after 10 seconds of mount tries 2009-03-05 14:21:59 +01:00
Harald Hoyer
38f31d8e78 only react to "add" to prevent duplicate /cryptroot lines 2009-03-05 14:21:20 +01:00
Harald Hoyer
538a94d9e5 use dash instead of underscore for udev control commands 2009-03-05 14:20:48 +01:00
Harald Hoyer
ca75dc510b serialize lvm calls with a subshell 2009-03-05 14:20:27 +01:00
Harald Hoyer
7f5112e3d6 add dmraid 2009-03-05 14:19:41 +01:00
Harald Hoyer
32731fee48 install console udev rules and helper apps 2009-03-05 10:34:09 +01:00
Harald Hoyer
c4da240717 replace switch_root shell script with binary
The switch_root shell script did not work with bash-4.0-2, because
"exec" gets the real path of the executable which is then
"/sysroot/lib/ld-linux.so.2" instread of "./lib/ld-linux.so.2".

Also the required chroot binary might live in /usr/bin, which can
be mounted later.

Here is the switch_root code from nash, which can be stripped down
further, but which works.

>From f1b1e4f8694104f007e4483c36b0bf40a5760167 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Date: Wed, 4 Mar 2009 13:41:07 +0100
Subject: [PATCH] replace switch_root shell script with binary

The switch_root shell script did not work with bash-4.0-2, because
"exec" gets the real path of the executable which is then
"/sysroot/lib/ld-linux.so.2" instead of "./lib/ld-linux.so.2".
Also the required chroot binary might live in /usr/bin, which can
be mounted later.

Here is the switch_root code from nash, which can be stripped down
further, but which works.
2009-03-04 17:23:03 +01:00
Victor Lowther
09805e02b8 Get rid of some RedHat specific modules and udev rules
They are not needed to boot with dracut, so away they go.

Also rewrite inst_rules to automatically search likely rule locations when
installing udev rules.
2009-03-04 17:14:53 +01:00
Victor Lowther
20abd91484 Create a self-contained structure for dracut modules
All modules now live in a subdirectory /modules.d.  Each module is
self-contained -- it should contain everything that it will install
on the initrd.  All modules must include a script named install, which
will be sourced by dracut.  This script should do the actual file installation
using inst methods.  The moddir variable will point to the full path to the
module dracut is currently working on.

As usual, this patch series applies on top of my previous patch series,
and is available as normalize-modules from http://git.fnordovax.org/dracut.
2009-03-04 16:55:14 +01:00