line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of Config-Model |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is Copyright (c) 2005-2022 by Dominique Dumont. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software, licensed under: |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# The GNU Lesser General Public License, Version 2.1, February 1999 |
9
|
|
|
|
|
|
|
# |
10
|
1
|
|
|
1
|
|
486
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
38
|
|
11
|
1
|
|
|
1
|
|
8
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
267
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
return [ |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
'accept' => [ |
16
|
|
|
|
|
|
|
'\\w+', |
17
|
|
|
|
|
|
|
{ |
18
|
|
|
|
|
|
|
'type' => 'leaf', |
19
|
|
|
|
|
|
|
'value_type' => 'uniline', |
20
|
|
|
|
|
|
|
'warn' => 'Handling unknown parameter as uniline value.' |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
], |
23
|
|
|
|
|
|
|
'class_description' => 'Class for multistrap configuration files. Note that multistrap is based on INI where section and keys are case insensitive. Hence all sections and keys are converted to lower case and written back as lower case. Most values (but not all) are also case-insensitive. These values will also be written back as lowercase.', |
24
|
|
|
|
|
|
|
'element' => [ |
25
|
|
|
|
|
|
|
'include', |
26
|
|
|
|
|
|
|
{ |
27
|
|
|
|
|
|
|
'class' => 'Config::Model::Value::LayeredInclude', |
28
|
|
|
|
|
|
|
'convert' => 'lc', |
29
|
|
|
|
|
|
|
'description' => 'To support multiple variants of a basic (common) configuration, "multistrap" allows configuration files to include other (more general) configuration files. i.e. the most detailed / specific configuration file is specified on the command line and that file includes another file which is shared by other configurations.', |
30
|
|
|
|
|
|
|
'summary' => 'Include file for cascaded configuration', |
31
|
|
|
|
|
|
|
'type' => 'leaf', |
32
|
|
|
|
|
|
|
'value_type' => 'uniline' |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
'arch', |
35
|
|
|
|
|
|
|
{ |
36
|
|
|
|
|
|
|
'choice' => [ |
37
|
|
|
|
|
|
|
'alpha', |
38
|
|
|
|
|
|
|
'arm', |
39
|
|
|
|
|
|
|
'armel', |
40
|
|
|
|
|
|
|
'powerpc' |
41
|
|
|
|
|
|
|
], |
42
|
|
|
|
|
|
|
'type' => 'leaf', |
43
|
|
|
|
|
|
|
'value_type' => 'enum' |
44
|
|
|
|
|
|
|
}, |
45
|
|
|
|
|
|
|
'directory', |
46
|
|
|
|
|
|
|
{ |
47
|
|
|
|
|
|
|
'description' => 'top level directory where the bootstrap will be created', |
48
|
|
|
|
|
|
|
'summary' => 'target directory', |
49
|
|
|
|
|
|
|
'type' => 'leaf', |
50
|
|
|
|
|
|
|
'value_type' => 'uniline' |
51
|
|
|
|
|
|
|
}, |
52
|
|
|
|
|
|
|
'aptsources', |
53
|
|
|
|
|
|
|
{ |
54
|
|
|
|
|
|
|
'cargo' => { |
55
|
|
|
|
|
|
|
'convert' => 'lc', |
56
|
|
|
|
|
|
|
'refer_to' => '- sections', |
57
|
|
|
|
|
|
|
'type' => 'leaf', |
58
|
|
|
|
|
|
|
'value_type' => 'reference' |
59
|
|
|
|
|
|
|
}, |
60
|
|
|
|
|
|
|
'description' => 'aptsources is a list of sections to be used in the /etc/apt/sources.list.d/multistrap.sources.list of the target. Order is not important.', |
61
|
|
|
|
|
|
|
'duplicates' => 'forbid', |
62
|
|
|
|
|
|
|
'type' => 'list' |
63
|
|
|
|
|
|
|
}, |
64
|
|
|
|
|
|
|
'bootstrap', |
65
|
|
|
|
|
|
|
{ |
66
|
|
|
|
|
|
|
'cargo' => { |
67
|
|
|
|
|
|
|
'convert' => 'lc', |
68
|
|
|
|
|
|
|
'refer_to' => '- sections', |
69
|
|
|
|
|
|
|
'type' => 'leaf', |
70
|
|
|
|
|
|
|
'value_type' => 'reference' |
71
|
|
|
|
|
|
|
}, |
72
|
|
|
|
|
|
|
'description' => 'the bootstrap option determines which repository is used to calculate the list of Priority: required packages and which packages go into the rootfs. The order of sections is not important.', |
73
|
|
|
|
|
|
|
'duplicates' => 'forbid', |
74
|
|
|
|
|
|
|
'type' => 'list' |
75
|
|
|
|
|
|
|
}, |
76
|
|
|
|
|
|
|
'debootstrap', |
77
|
|
|
|
|
|
|
{ |
78
|
|
|
|
|
|
|
'cargo' => { |
79
|
|
|
|
|
|
|
'convert' => 'lc', |
80
|
|
|
|
|
|
|
'refer_to' => '- sections', |
81
|
|
|
|
|
|
|
'type' => 'leaf', |
82
|
|
|
|
|
|
|
'value_type' => 'reference' |
83
|
|
|
|
|
|
|
}, |
84
|
|
|
|
|
|
|
'description' => 'Replaced by bootstrap parameter', |
85
|
|
|
|
|
|
|
'duplicates' => 'forbid', |
86
|
|
|
|
|
|
|
'status' => 'deprecated', |
87
|
|
|
|
|
|
|
'type' => 'list' |
88
|
|
|
|
|
|
|
}, |
89
|
|
|
|
|
|
|
'omitrequired', |
90
|
|
|
|
|
|
|
{ |
91
|
|
|
|
|
|
|
'type' => 'leaf', |
92
|
|
|
|
|
|
|
'value_type' => 'boolean' |
93
|
|
|
|
|
|
|
}, |
94
|
|
|
|
|
|
|
'addimportant', |
95
|
|
|
|
|
|
|
{ |
96
|
|
|
|
|
|
|
'type' => 'leaf', |
97
|
|
|
|
|
|
|
'value_type' => 'boolean' |
98
|
|
|
|
|
|
|
}, |
99
|
|
|
|
|
|
|
'configscript', |
100
|
|
|
|
|
|
|
{ |
101
|
|
|
|
|
|
|
'convert' => 'lc', |
102
|
|
|
|
|
|
|
'type' => 'leaf', |
103
|
|
|
|
|
|
|
'value_type' => 'uniline' |
104
|
|
|
|
|
|
|
}, |
105
|
|
|
|
|
|
|
'setupscript', |
106
|
|
|
|
|
|
|
{ |
107
|
|
|
|
|
|
|
'convert' => 'lc', |
108
|
|
|
|
|
|
|
'type' => 'leaf', |
109
|
|
|
|
|
|
|
'value_type' => 'uniline' |
110
|
|
|
|
|
|
|
}, |
111
|
|
|
|
|
|
|
'cleanup', |
112
|
|
|
|
|
|
|
{ |
113
|
|
|
|
|
|
|
'description' => 'remove apt cache data, downloaded Packages files and the apt package cache.', |
114
|
|
|
|
|
|
|
'type' => 'leaf', |
115
|
|
|
|
|
|
|
'value_type' => 'boolean' |
116
|
|
|
|
|
|
|
}, |
117
|
|
|
|
|
|
|
'noauth', |
118
|
|
|
|
|
|
|
{ |
119
|
|
|
|
|
|
|
'description' => 'allow the use of unauthenticated repositories', |
120
|
|
|
|
|
|
|
'type' => 'leaf', |
121
|
|
|
|
|
|
|
'value_type' => 'boolean' |
122
|
|
|
|
|
|
|
}, |
123
|
|
|
|
|
|
|
'explicitsuite', |
124
|
|
|
|
|
|
|
{ |
125
|
|
|
|
|
|
|
'description' => 'whether to add the /suite to be explicit about where apt needs to look for packages.', |
126
|
|
|
|
|
|
|
'type' => 'leaf', |
127
|
|
|
|
|
|
|
'upstream_default' => '0', |
128
|
|
|
|
|
|
|
'value_type' => 'boolean' |
129
|
|
|
|
|
|
|
}, |
130
|
|
|
|
|
|
|
'unpack', |
131
|
|
|
|
|
|
|
{ |
132
|
|
|
|
|
|
|
'convert' => 'lc', |
133
|
|
|
|
|
|
|
'migrate_from' => { |
134
|
|
|
|
|
|
|
'formula' => '$old', |
135
|
|
|
|
|
|
|
'variables' => { |
136
|
|
|
|
|
|
|
'old' => '- forceunpack' |
137
|
|
|
|
|
|
|
} |
138
|
|
|
|
|
|
|
}, |
139
|
|
|
|
|
|
|
'summary' => 'extract all downloaded archives', |
140
|
|
|
|
|
|
|
'type' => 'leaf', |
141
|
|
|
|
|
|
|
'upstream_default' => '1', |
142
|
|
|
|
|
|
|
'value_type' => 'boolean' |
143
|
|
|
|
|
|
|
}, |
144
|
|
|
|
|
|
|
'sections', |
145
|
|
|
|
|
|
|
{ |
146
|
|
|
|
|
|
|
'cargo' => { |
147
|
|
|
|
|
|
|
'config_class_name' => 'Multistrap::Section', |
148
|
|
|
|
|
|
|
'type' => 'node' |
149
|
|
|
|
|
|
|
}, |
150
|
|
|
|
|
|
|
'convert' => 'lc', |
151
|
|
|
|
|
|
|
'index_type' => 'string', |
152
|
|
|
|
|
|
|
'type' => 'hash' |
153
|
|
|
|
|
|
|
}, |
154
|
|
|
|
|
|
|
'forceunpack', |
155
|
|
|
|
|
|
|
{ |
156
|
|
|
|
|
|
|
'convert' => 'lc', |
157
|
|
|
|
|
|
|
'description' => 'deprecated. Replaced by unpack', |
158
|
|
|
|
|
|
|
'status' => 'deprecated', |
159
|
|
|
|
|
|
|
'summary' => 'extract all downloaded archives', |
160
|
|
|
|
|
|
|
'type' => 'leaf', |
161
|
|
|
|
|
|
|
'upstream_default' => '1', |
162
|
|
|
|
|
|
|
'value_type' => 'boolean' |
163
|
|
|
|
|
|
|
} |
164
|
|
|
|
|
|
|
], |
165
|
|
|
|
|
|
|
'name' => 'Multistrap', |
166
|
|
|
|
|
|
|
'rw_config' => { |
167
|
|
|
|
|
|
|
'auto_create' => '1', |
168
|
|
|
|
|
|
|
'backend' => 'IniFile', |
169
|
|
|
|
|
|
|
'force_lc_key' => '1', |
170
|
|
|
|
|
|
|
'force_lc_section' => '1', |
171
|
|
|
|
|
|
|
'join_list_value' => ' ', |
172
|
|
|
|
|
|
|
'section_map' => { |
173
|
|
|
|
|
|
|
'general' => '!' |
174
|
|
|
|
|
|
|
}, |
175
|
|
|
|
|
|
|
'split_list_value' => '\\s+', |
176
|
|
|
|
|
|
|
'store_class_in_hash' => 'sections', |
177
|
|
|
|
|
|
|
'write_boolean_as' => [ |
178
|
|
|
|
|
|
|
'false', |
179
|
|
|
|
|
|
|
'true' |
180
|
|
|
|
|
|
|
] |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
} |
183
|
|
|
|
|
|
|
] |
184
|
|
|
|
|
|
|
; |
185
|
|
|
|
|
|
|
|