View | Details | Raw Unified | Return to bug 630434
Collapse All | Expand All

(-)mkinitrd-2.4.1-0.14.1/etc/sysconfig/initrd (+117 lines)
Line 0 Link Here
1
## Path:	System/Kernel
2
## Description:	Define root device to use during creation of "initrd"
3
## Type:	string
4
## Default:	<variable NOT defined at all in this config file!>
5
## Command:     /sbin/mkinitrd
6
#
7
# This variable contains the name of the root device.  Defaults to the
8
# device from which the root_dir is mounted; Overwrites the "rootdev"
9
# environment variable, if set.
10
# Usually only set, if using some "exotic" like "/dev/disk/by-*/<root dev>",
11
# which cannot be correctly determined by "mkinitrd"!
12
#
13
# NEVER define this variable (not even as empty!), if it is not used!!
14
#
15
#rootdev="/dev/disk/by-label/root"
16
 
17
## Path:	System/Kernel
18
## Description:	External journal device to use for the root filesystem
19
## Type:	string
20
## Default:	<variable NOT defined at all in this config file!>
21
## Command:     /sbin/mkinitrd
22
#
23
# This variable contains the name of the external journal device for the
24
# root file system.
25
#
26
# NEVER define this variable (not even as empty!), if it is not used!!
27
#
28
#journaldev="/dev/disk/by-label/root-journal"
29
 
30
## Path:	System/Kernel
31
## Description:	Define root device to use in case "rootdev" is not available
32
## Type:	string
33
## Default:	<variable NOT defined at all in this config file!>
34
## Command:     /sbin/mkinitrd
35
#
36
# This variable contains the name of the root device to fall back to, in cases
37
# where it is not possible to find the "rootdev" during boot.  Defaults to the
38
# device set by "rootdev".
39
#
40
# NEVER define this variable (not even as empty!), if it is not used!!
41
#
42
#fallback_rootdev="/dev/root"
43
 
44
## Path:	System/Kernel
45
## Description:	Define which resume device to use
46
## Type:	string
47
## Default:	<variable NOT defined at all in this config file!>
48
## Command:     /sbin/mkinitrd
49
#
50
# This variable contains the name of the device used for suspend/resume of the
51
# system.
52
#
53
# NEVER define this variable (not even as empty!), if it is not used!!
54
#
55
#resumedev="/dev/xvda2"
56
#resumedev="/dev/disk/by-label/resume"
57
 
58
## Path:	System/Kernel
59
## Description:	Define which device to use of dumping of crashed kernels
60
## Type:	string
61
## Default:	<variable NOT defined at all in this config file!>
62
## Command:     /sbin/mkinitrd
63
#
64
# This variable contains the name of the device used for saving of crashed
65
# kernel images.
66
#
67
# NEVER define this variable (not even as empty!), if it is not used!!
68
#
69
#dumpdev="/dev/disk/by-label/dumps"
70
 
71
## Path:	System/Kernel
72
## Description:	Define which additional features "mkinitrd" should include
73
## Type:	string(iscsi, md, multipath, lvm2, ifup)
74
## Default:	<variable NOT defined at all in this config file!>
75
## Command:     /sbin/mkinitrd
76
#
77
# This variable contains the additional features that are needed in the
78
# created "initrd" image.
79
#
80
# NEVER define this variable (not even as empty!), if it is not used!!
81
#
82
#ADDITIONAL_FEATURES="lvm2 iscsi"
83
84
## Path:	System/Kernel
85
## Description:	Define whether "mkinitrd" should include iSCSI at boot up
86
## Type:	string(<not defined> or 1)
87
## Default:	<variable NOT defined at all in this config file!>
88
## Command:     /sbin/mkinitrd
89
#
90
# This variable defines whether the "initrd" image should contain the
91
# iSCSI boot startup scripts.
92
# This variable OVERWRITES the automagic settings done by "mkinitrd"
93
# in its discovery of whether the root device is on an iSCSI device.
94
#
95
# This variable overwriting can be used in cases, where iSCSI devices that
96
# have been configured for start up on "onboot", but where the root device
97
# is not on an iSCSI device.
98
#
99
# NEVER define this variable (not even as empty!), if it is not used!!
100
#
101
#root_iscsi=1
102
 
103
## Path:	System/Kernel
104
## Description:	Define which iSCSI target port to make use of
105
## Type:	integer
106
## Default:	<variable NOT defined at all in this config file!>
107
## Command:     /sbin/mkinitrd
108
#
109
# This variable defines which iSCSI target port to make use of, when attaching
110
# to an iSCSI server.
111
# The setting of this variable has only effect, when "root_iscsi" has been defined,
112
# either above or automagically by the "mkinitrd" setup scripts, in which case it
113
# will overwrite the default port number.
114
# This variable OVERWRITES the automagic settings done by "mkinitrd", when setting
115
# up the iSCSI stack.
116
#
117
#TargetPort=3260
(-)mkinitrd-2.4.1-0.14.1/sbin/mkinitrd (-1 / +1 lines)
Lines 434-440 Link Here
434
save_var() {
434
save_var() {
435
        # sysconfig options override dynamically generated options
435
        # sysconfig options override dynamically generated options
436
        if [ -e "/etc/sysconfig/initrd" ]; then
436
        if [ -e "/etc/sysconfig/initrd" ]; then
437
                local override="$(cat /etc/sysconfig/initrd | egrep \"^$1=\")"
437
                local override="$(cat /etc/sysconfig/initrd | egrep "^$1=")"
438
                if [ "$override" ]; then
438
                if [ "$override" ]; then
439
                        eval $override
439
                        eval $override
440
                fi
440
                fi

Return to bug 630434