Harald Hoyer
1fbe575888
base/init: removed scsi_wait_scan hack
15 years ago
Harald Hoyer
921f4b5b52
base/init: fixed " typo
15 years ago
Harald Hoyer
7853bbfa7d
base/init: do not clean RD_* environment variables
15 years ago
Harald Hoyer
c79517b4d9
base/init: fixed indention
15 years ago
Harald Hoyer
5e1898fa5a
base/init: only mknod /dev/null, if it does not exist yet
15 years ago
Harald Hoyer
11a2ab6228
base/init: merge mkdir calls
15 years ago
Harald Hoyer
9b79345001
base/init: rd.shell=1 per default
...
to securely lock a machine, the admin has to set rd.shell=0!
15 years ago
Harald Hoyer
577b1fc833
base/init: s/RDTIMESTAMP/RD_TIMESTAMP/g
...
systemd will clear all RD_* env for its children
15 years ago
Harald Hoyer
6ef8e5b4d3
mkdir /dev/.initramfs with "-p"
15 years ago
Harald Hoyer
9bfff3746f
base: send DRACUT_LOG_END to loginit at the end
15 years ago
Harald Hoyer
2c1f37d45c
base/init: fix for /sbin/init being an absolute softlink
15 years ago
Harald Hoyer
fa7ada31d0
new parameter option names with "rd.*" namespace
...
Renamed Options
Here is a list of options, which were used in dracut prior to
version 008, and their new replacement.
rdbreak
rd.break
rd_CCW
rd.ccw
rdcopystate
rd.copystate
rd_DASD_MOD
rd.dasd_mod.dasd
rd_DASD
rd.dasd
rdinitdebug rdnetdebug
rd.debug
rd_NO_DM
rd.dm=0
rd_DM_UUID
rd.dm.uuid
rdblacklist
rd.driver.blacklist
rdinsmodpost
rd.driver.post
rdloaddriver
rd.driver.pre
rd_NO_FSTAB
rd.fstab=0
rdinfo
rd.info
check
rd.live.check
rdlivedebug
rd.live.debug
live_dir
rd.live.dir
liveimg
rd.live.image
overlay
rd.live.overlay
readonly_overlay
rd.live.overlay.readonly
reset_overlay
rd.live.overlay.reset
live_ram
rd.live.ram
rd_NO_CRYPTTAB
rd.luks.crypttab=0
rd_LUKS_KEYDEV_UUID
rd.luks.keydev.uuid
rd_LUKS_KEYPATH
rd.luks.keypath
rd_NO_LUKS
rd.luks=0
rd_LUKS_UUID
rd.luks.uuid
rd_LUKS_UUID
rd.luks.uuid
rd_NO_LVMCONF
rd.lvm.conf
rd_LVM_LV
rd.lvm.lv
rd_NO_LVM
rd.lvm=0
rd_LVM_SNAPSHOT
rd.lvm.snapshot
rd_LVM_SNAPSIZE
rd.lvm.snapsize
rd_LVM_VG
rd.lvm.vg
rd_NO_MDADMCONF
rd.md.conf=0
rd_NO_MDIMSM
rd.md.imsm=0
rd_NO_MD
rd.md=0
rd_MD_UUID
rd.md.uuid
rd_NFS_DOMAIN
rd.nfs.domain
rd_NO_PLYMOUTH
rd.plymouth=0
rd_retry
rd.retry
rdshell
rd.shell
rd_NO_SPLASH
rd.splash
rdudevdebug
rd.udev.debug
rdudevinfo
rd.udev.info
rd_NO_ZFCPCONF
rd.zfcp.conf=0
rd_ZFCP
rd.zfcp
15 years ago
Harald Hoyer
bfd602f849
base: install switch_root to /sbin and call it with the full path
15 years ago
Amadeusz Żołnowski
9d1015b646
Revert "add option --ignore-kernel-modules"
...
This reverts commit 0ca3a5ee84
and removes later changes related to this commit.
Conflicts:
dracut
dracut.8
modules.d/99base/install
15 years ago
Harald Hoyer
2ca35ac7ee
init: symlink /dev/stdin /dev/stdout /dev/stderr
15 years ago
Amadeusz Żołnowski
4bacdf2811
99base/init: honor env. vars provided by kernel (PATH, HOME and TERM)
...
Let take a look at Linux sources, /usr/src/linux-2.6.35/init/main.c:
204: char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
857: run_init_process("/sbin/init");
817: static void run_init_process(char *init_filename)
818: {
819: argv_init[0] = init_filename;
820: kernel_execve(init_filename, argv_init, envp_init);
821: }
As we can see HOME=/ and TERM=linux are provided for init and this might be
expected on some systems (Gentoo comes to my mind, here ;-)). That's why we
should give to init the same set of env. vars as Linux kernel does.
15 years ago
Harald Hoyer
94388aaffa
init: removed bogus nop line
...
+ initargs="$initargs"
15 years ago
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)"
15 years ago
Harald Hoyer
3636d59e38
base/init: unset HOME and TERM for real init
15 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
15 years ago
Amadeusz Żołnowski
0ca3a5ee84
add option --ignore-kernel-modules
...
Instead of adding modprobe and rmmod, create symlinks to /bin/true to
don't produce unnecessary errors. Anyway it's a workaround for
following desired behaviour: modprobe tries to insert module only if
it's not built into kernel
15 years ago
Harald Hoyer
c492fe12c0
init: create /dev/.udev/rules.d with correct permissions
15 years ago
Harald Hoyer
3a4d0c9c14
dracut-lib.sh: fixed getarg for nonexistent parameters
...
getarg returned an old "$val" for nonexistent parameters, because "val"
was not local
15 years ago
Harald Hoyer
db3641a2ea
init: set old umask before switch_root
15 years ago
Harald Hoyer
e001359311
mknod with mode and set umask for the rest
15 years ago
Amadeusz Żołnowski
2926b5b35d
90crypt: keys on external devices support
...
99base/dracut-lib.sh: new fun.: getoptcomma, foreach_uuid_until
15 years ago
Harald Hoyer
adde3a7a27
dracut-lib.sh: getarg() returns the value of the last argument
...
a=0 a=1 a=2
$(getarg a) == "2"
15 years ago
Harald Hoyer
3a4989cae2
dracut-lib: export RDDEBUG
15 years ago
Harald Hoyer
bd987e3036
selinux: move selinux to a separate module
15 years ago
Harald Hoyer
a2929f90ff
selinux-loadpolicy.sh: exit for "selinux=0"
15 years ago
Harald Hoyer
b6a7c09070
chmod 0755 *.sh
15 years ago
Harald Hoyer
e54a84113e
get rid of rdnetdebug
...
set PS4 and output to /dev/initlog.pipe
15 years ago
Harald Hoyer
85fd75f91f
add rd_retry kernel command line parameter
...
rd_retry=<seconds to retry in the main loop>
speeds up internal test suite
15 years ago
Harald Hoyer
3409c2377f
loginit: turn off debugging
15 years ago
Harald Hoyer
4058d85cb6
init: do not redirect to -
15 years ago
Harald Hoyer
2937028c54
init: fix cdrom polling loop
15 years ago
Harald Hoyer
1d149cd039
dracut-lib: turn of shell debug mode in strstr and getarg(s)
15 years ago
Harald Hoyer
cd83e4c54d
init: trigger with --action=add
15 years ago
Harald Hoyer
0e0bf83057
init: add hacky cdrom polling mechanism
15 years ago
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>
15 years ago
Harald Hoyer
9232cab470
fix IFS restoring
15 years ago
Harald Hoyer
a15935c143
selinux: fix "selinux=0" handling
15 years ago
Harald Hoyer
7800cc247e
fix selinux disabled state
...
Execute load-policy when the config file contains SELINUX=disabled.
15 years ago
Harald Hoyer
c98bcec89c
add preliminary IPv6 support
15 years ago
Harald Hoyer
bab749e23e
init: dashified $[] -> $(())
15 years ago
Harald Hoyer
97c97ff6d5
base: fix selinux handling if .autorelabel is present
...
rhbz#557744
15 years ago
Harald Hoyer
5db587d7c1
init: fixed emergency_shell argument parsing
15 years ago
Harald Hoyer
4bb570c9a4
dracut-lib: do not leave debug mode in getarg and getargs
15 years ago
Harald Hoyer
2dfdcbf4e7
dracut-lib: read multiple lines from $init/etc/cmdline
15 years ago