Harald Hoyer
647bef8ca6
base/init: set RDTIMESTAMP
...
set $RDTIMESTAMP for init, if rd.timestamp is specified on the
kernel command line, so that systemd can print out:
"systemd: Boot finished after 15s = 3s (kernel) + 2s (initrd) + 10s
(userspace)"
2010-09-20 14:58:25 +02:00
Harald Hoyer
3636d59e38
base/init: unset HOME and TERM for real init
2010-09-20 14:53:45 +02:00
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
2010-09-10 15:34:36 +02:00
Harald Hoyer
c492fe12c0
init: create /dev/.udev/rules.d with correct permissions
2010-08-02 15:58:48 +02:00
Harald Hoyer
db3641a2ea
init: set old umask before switch_root
2010-08-02 14:17:59 +02:00
Harald Hoyer
e001359311
mknod with mode and set umask for the rest
2010-07-23 11:30:45 +02:00
Harald Hoyer
85fd75f91f
add rd_retry kernel command line parameter
...
rd_retry=<seconds to retry in the main loop>
speeds up internal test suite
2010-04-16 17:59:50 +02:00
Harald Hoyer
4058d85cb6
init: do not redirect to -
2010-04-16 17:59:49 +02:00
Harald Hoyer
2937028c54
init: fix cdrom polling loop
2010-04-16 17:59:49 +02:00
Harald Hoyer
cd83e4c54d
init: trigger with --action=add
2010-04-14 16:36:30 +02:00
Harald Hoyer
0e0bf83057
init: add hacky cdrom polling mechanism
2010-04-13 13:51:49 +02:00
Andrey Borzenkov
b63fd4d905
Pass init argument(s) to real init
...
Common wisdom to enter single user on Linux is to edit command
line and add "single". This was not possible because switch_root
was always called with empty init arguments. Collect them from
command line and pass to real init when switching root.
Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
2010-03-04 14:06:48 +01:00
Harald Hoyer
bab749e23e
init: dashified $[] -> $(())
2010-02-02 15:21:51 +01:00
Harald Hoyer
5db587d7c1
init: fixed emergency_shell argument parsing
2010-01-20 16:04:55 +01:00
Luca Berra
b5664d5d02
base: improve emergency shell
...
for some unknown reason the emergency shell
starts with stderr closed, at first I even tought it was not working at
all, then I came up with this hack, which seems to work properly. I also
change the prompt to remind which step are we breaking to.
2010-01-13 16:01:36 +01:00
Harald Hoyer
57c6b805ce
rootfs-block/mount-root: remount root with /etc/fstab filesystem options
2009-11-26 19:12:10 +01:00
Harald Hoyer
f2a716d47c
base/init: make link /dev/fd, mount devpts,tmpfs with correct dev parm
2009-10-08 14:21:31 +02:00
Harald Hoyer
ac36d5db7e
base/init: kill loginit after one second of waiting
2009-10-07 16:09:20 +02:00
Harald Hoyer
8d0a55cfac
do not use init= arg as first argument
2009-10-07 12:48:47 +02:00
Philippe Seewer
7a6e646c83
Move write-ifcfg to its own module
...
ifcfg config style is redhat specific, this should be in its own
module.
2009-10-06 15:23:52 +02:00
Philippe Seewer
a71f1b4917
Add multinic test suite
...
This is a start a test suite for the multinic support of dracut
2009-10-06 15:17:39 +02:00
Harald Hoyer
4592b6983a
base: add logger for rdinitdebug
...
initlog logs to /init.log /dev/kmsg and /dev/console
2009-10-01 18:11:24 +02:00
Harald Hoyer
de439e24d7
base/init: stop udev exec queue before killing it
2009-10-01 15:17:59 +02:00
Harald Hoyer
52aeb3f312
base/dracut-lib: add setdebug
...
do not clutter rdinitdebug output with getarg and getargs debug
2009-10-01 14:46:16 +02:00
Harald Hoyer
0e0031dc61
init: start udevd with --resolve-names=never
2009-09-30 15:04:50 +02:00
Harald Hoyer
2168327bfa
init: mount /dev/shm
2009-09-30 15:04:36 +02:00
Harald Hoyer
8238850caa
init: add initqueue-finished
...
/initqueue-finished/*.sh are scripts, which return != 0, if the main
loop still has pending jobs to do.
2009-09-15 08:47:47 +02:00
Harald Hoyer
247c9f70bf
init: fixed command line handling for /sbin/init and init=<custom init>
2009-09-10 16:48:36 +02:00
Harald Hoyer
0b2de1f895
99base/init: output more info()
2009-09-09 18:04:55 +02:00
Harald Hoyer
71094bee63
base/init: add scsi_wait_scan to wait for host adapter scans
2009-09-09 11:09:04 +02:00
Harald Hoyer
273b197d75
added initqueue-settled and refactored code
2009-09-07 19:12:01 +02:00
Harald Hoyer
5c6a593f2e
add udevsettle function and settle after raid/lvm/crypto activities
2009-09-01 15:42:27 +02:00
Warren Togami
a89fb6daa5
Write netboot config for passing to OS as requested in https://bugzilla.redhat.com/show_bug.cgi?id=515771#c18
2009-08-31 19:34:27 -04:00
Warren Togami
148284ced6
Remove ugly hack
2009-08-06 11:07:43 -04:00
Warren Togami
13d5225fc8
Temporary hack to provide ifcfg files to OS in a way that might work with existing initscripts.
...
I am not happy about this. It shouldn't be the job of dracut to do this. The initscripts should
deal with the plain /dev/.initramfs/ifcfg/ directory accordingly. Doing this for now because
notting insists upon it. We need to clean this up after we network option passing working.
2009-08-04 17:15:39 -04:00
Warren Togami
984a819b92
There is only one resolv.conf.
2009-07-30 09:27:09 -04:00
Warren Togami
645bde35d3
Use standard ifcfg filenames, put them into an ifcfg directory.
2009-07-27 15:54:21 -04:00
Harald Hoyer
0375106c78
add source_conf for static configuration variables
...
source_conf sources all *.conf files of a directory
init will now source all /etc/conf.d/*.conf files
2009-07-25 11:09:34 +02:00
Harald Hoyer
4809126378
99base/init: fix argument stripping
2009-07-23 18:57:20 +02:00
Harald Hoyer
53e1c5b996
init: add "pre-trigger" and "initqueue" breakpoints
2009-07-17 14:47:49 +02:00
Warren Togami
81f83dab0a
More informative failure messages or rdbreak.
2009-07-15 21:10:16 -04:00
Warren Togami
c3cd4c76d7
Standardize boot failed language.
2009-07-15 16:42:34 -04:00
Harald Hoyer
52c3715fd4
change the way init arguments are stripped from the command line
...
$initrdargs now holds all command line options we want to strip from the
command line. Command line parsers can extend this space separated list.
2009-07-15 18:27:20 +02:00
Harald Hoyer
aceddbe8a4
do not pass rdshell option to real init
2009-07-13 16:24:41 +02:00
Harald Hoyer
2a652c0b95
add environment variables for different udev versions
2009-07-13 15:03:11 +02:00
Harald Hoyer
89056045f5
check for root after udevadm settle returns
2009-07-13 15:03:11 +02:00
Harald Hoyer
d72eec354a
test for empty udev queue with timeout=1 instead of 0
...
older udev versions do not support timeout=0
2009-07-13 12:10:47 +02:00
Warren Togami
dacba77805
rdbreak should imply rdshell. If sleeping forever say so, so the user doesn't wonder.
2009-07-08 13:51:43 -04:00
Harald Hoyer
a75c29be45
remove redirection of output to /dev/kmesg
...
until we have a way to mark our messages to come from dracut.
2009-07-04 09:57:10 +02:00
Harald Hoyer
a3a3448d8c
rdshell
2009-07-03 18:28:09 +02:00