OSDN Git Service

[update] : Use an array as an argument to squashfs
[alterlinux/alterlinux.git] / default.conf
1 #!/usr/bin/env bash
2 #
3 # Yamada Hayao
4 # Twitter: @Hayao0819
5 # Email  : hayao@fascode.net
6 #
7 # (c) 2019-2021 Fascode Network.
8 #
9 # default.conf
10 #
11 # The script first reads this file
12 # You can change the default settings here
13 #
14 # Some values described here will be overridden by the arguments.
15 # If you want to prohibit overwriting with arguments, use the config of each channel.
16 # Create the configuration file (config) for each channel based on this file.
17 #
18 # This configuration file follows the bash syntax.
19 # Do not write any code other than the variable definitions specified in this script.
20 #
21
22 #-- simple options --#
23 # Force the argument to be passed to build.sh.
24 # It is possible to set all or more with the following variables without using this part,
25 # but it is also possible to easily force using this variable.
26 # !! WARNING !!
27 # This variable can only be used in default.conf.
28 # It does not apply even if it is used in the config of each channel.
29 DEFAULT_ARGUMENT=""
30
31 #-- archiso --#
32 # Architecture to build
33 # AlterISO currently supports x86_64 or i686
34 # Please note that the channels and kernels that can be used differ depending on the architecture.
35 # Change the default behavior of "-a" and "--arch".
36 arch=$(uname -m)
37
38 # OS name used for startup screen, etc.
39 # This setting cannot be changed by an argument.
40 os_name="Alter Linux"
41
42 # OS name used for the name of the image file.
43 # This setting cannot be changed by an argument.
44 iso_name=alterlinux
45
46 # Image file label
47 # This setting cannot be changed by an argument.
48 iso_label="ALTER_$(date +%Y%m%d)"
49
50 # Image file creator information
51 iso_publisher='Fascode Network <https://fascode.net>'
52
53 # Image name (not file name)
54 # This setting cannot be changed by an argument.
55 iso_application="${os_name} Live/Rescue CD"
56
57 # Image file version
58 # If gitversion (--gitversion) is enabled, Git's revision will be added to the end of this value.
59 # This setting cannot be changed by an argument.
60 iso_version=$(date +%Y.%m.%d)
61
62 # Directory name used for installation
63 # This setting cannot be changed by an argument.
64 install_dir=alter
65
66 # Work directory to execute pacstrap etc
67 # Change the default behavior of "-w" and "--work".
68 work_dir=work
69
70 # Directory to output image file and checksum
71 # Change the default behavior of "-o" and "--out".
72 out_dir=out
73
74 # Key used for signature
75 # Change the default behavior of "-g" and "--gpgkey".
76 # This setting cannot be changed by an argument.
77 gpg_key=
78
79
80 #-- Plymouth --#
81 # Set to true to enable plymouth.
82 # See help for a list of available values.
83 # Change the default behavior of "-b" and "--boot-splash".
84 boot_splash=false
85
86 # Set the theme name of plymouth.
87 theme_name="alter-logo"
88
89
90 #-- alteriso config --#
91
92 # Channel name to build by default
93 channel_name='xfce'
94
95 # Build the tarball with iso.
96 # Change the default behavior of "-k" and "--tarball".
97 tarball=false
98
99 # See the `mksquashfs` help for details on these items.
100 # This variable overrides each build option "-c" or "-t".
101 sfs_comp="xz"
102 sfs_comp_opt=()
103
104
105 # If set to true, include alteriso_info in iso root.
106 # This setting cannot be changed by an argument.
107 include_info=true
108
109
110 # Use a customized syslinux configuration file.
111 # syslinux.<arch> must exist in the channel's directory. It works like airootfs.
112 # If set to false, the channel syslinux configuration file will not be used.
113 # Use this setting for debugging only.
114 # This setting cannot be changed by an argument.
115 customized_syslinux=true
116
117
118 # Do not add rescue mode launch items
119 # If true, do not add items such as "without GUI" or "Safe graphics".
120 # This setting cannot be changed by an argument.
121 norescue_entry=false
122
123
124 # Modules to include
125 # An array of module directory names to include.
126 # This setting cannot be changed by an argument.
127 modules=(
128     "share"
129 )
130
131 #-- kernel config --#
132 # Set the kernel that live session use.
133 # Please don't set anything if you want to use normal kernel.
134 # See help for a list of available values.
135 # This setting cannot be changed by an argument.
136
137 # Kernel name
138 defaultkernel="zen"
139
140 #-- Live environment user --#
141
142 # Set the default live environment user name
143 # Channel developers should use this.
144 defaultusername='alter'
145
146 # Set the live environment user name
147 # Change the default behavior of "-u" and "--user".
148 # Overrides default settings
149 username="alter"
150
151 # Set the default live environment user name
152 # Channel developers should use this.
153 defaultpassword='alter'
154
155 # Set the live environment user password
156 # Change the default behavior of "-p" or "--password".
157 # Overrides default settings
158 password="alter"
159
160 # Set the user's default shell.
161 # This setting cannot be changed by an argument.
162 #
163 # The shell should be listed in /etc/shells, the package installed,
164 # and the appropriate configuration files in /etc/skel.
165 usershell="/bin/bash"
166
167 # Install memtest86
168 memtest86=true
169
170
171 #-- language config --#
172
173 # Sets the default locale for the live environment.
174 # You can also place a package list for that locale name and install packages specific to that locale.
175 locale_name="en"
176 locale_gen_name="en_US.UTF-8"
177 locale_version="gl"
178 locale_time="UTC"
179 locale_fullname="global"
180
181
182 #-- Script options --#
183
184 # Enable post-build cleaning.
185 # When enabled, airootfs in the working directory is deleted after squashfs is created.
186 # Change the default behavior of "-l" and "cleanup".
187 cleaning=false
188
189 # Set whether to check the build.
190 # If true, do not check. If false, confirm.
191 # Change the default behavior of "--noconfirm".
192 noconfirm=false
193
194 # When set to true, colored output will not be performed.
195 # Change the default behavior of "--nocolor".
196 nocolor=false
197
198 # If set to true, do not check dependent packages.
199 # Change the default behavior of "--nodepend".
200 # Dependent packages are defined in the following array.
201 nodepend=false
202
203 # Do not check the current kernel or load kernel modules.
204 # Enabling this option can cause unexpected problems.
205 # Change the default behavior of "--noloopmod".
206 noloopmod=false
207
208 # Do not include the channel name in the filename of the image file.
209 # This setting cannot be changed by an argument.
210 nochname=false
211
212 # Do not check the version of the channel.
213 # Use this option only if you want to force builds of AlterISO2 or earlier channels.
214 # The structure of the channel is so different that it may lead to unexpected operation, and no guarantee can be given.
215 # In particular, the old -j option cannot be used and the japanese variable cannot be used in customize_airootfs.
216 # Change the default behavior of "--nochkver".
217 nochkver=false
218
219 # Do not include file about efi
220 # Change the default behavior of "--noefi".
221 # If noiso is true, it will be enabled automatically.
222 noefi=false
223
224 # Does not build the ISO image file.
225 # Be sure to set the tarball to true if you want this to be true.
226 # Change the default behavior of "--noiso".
227 noiso=false
228
229 # Do not install the AUR package.
230 #
231 # !! WARNING !!
232 # Many packages are installed from AUR, so specifying --noaur can cause problems.
233 # Use this option only for debugging purposes or if you understand what you are trying to do.
234 #
235 # Change the default behavior of "--noaur".
236 noaur=false
237
238 # Do not build and install from PKGBUILD
239 # Change the default behavior of "--nopkgbuild".
240 # Use this option only for debugging purposes or if you understand what you are trying to do.
241 nopkgbuild=false
242
243 # Do not check pacman key
244 # This option allows the installation of unsigned packages, which reduces security.
245 # Use it for debugging only and never allow it permanently on channel config.
246 # Change the default behavior of "--nosigcheck".
247 nosigcheck=false
248
249 # Do not remove working dir
250 # Change the default behavior of "--normwork".
251 normwork=false
252
253 #-- Debug options --#
254
255 # Set debug mode.
256 # This setting can only be set to true or false.
257 # If bash_debug is set to true, it will be easier to see how the script is executed by executing set -xv.
258 # If this is enabled, a large amount of logs will be output.
259 # If debug is set to true, debug messages useful for channel development will be displayed.
260 bash_debug=false
261 debug=false
262 pacman_debug=false
263
264 # If set to true, enable message debag.
265 # This option previously debugged the message output in build.sh, but now it debugs msg.sh.
266 # Change the default behavior of "--msgdebug".
267 msgdebug=false
268
269 # If set to true, enable git version
270 # Change the default behavior of "--gitversion".
271 # If the Git repository is not found, an error will be returned.
272 # Git version is generated with the following code.
273 # $ git rev-parse --short HEAD
274 gitversion=false
275
276 # Additional list of packages to exclude from channel
277 # Works the same as an exclude file
278 # Use this array for debugging only
279 # This setting cannot be changed by an argument.
280 additional_exclude_pkg=(
281     
282 )
283
284 # Run with tee command
285 # Set to "false" to disable logging
286 # If not false, the log will be saved in the specified path.
287 # Change the default behavior of "--log" and "--logpath".
288 logging="false"
289
290
291 # List of packages required for build
292 # The following packages are checked to see if they are installed before running build.sh
293 # Also, wizard.sh will install it automatically.
294 #
295 # If you don't use Alter Linux repository, redefine this array in channel config
296 # and remove alterlinux related packages from dependence.
297 dependence=(
298     "alterlinux-keyring"
299     "arch-install-scripts"
300     "curl"
301     "dosfstools"
302     "git"
303     "libburn"
304     "libisofs"
305     "lz4"
306     "lzo"
307     "make"
308     "pyalpm"
309     "squashfs-tools"
310     "libisoburn"
311     "xz"
312     "zlib"
313     "zstd"
314     "qt5-base"
315 )