OSDN Git Service

[update] : Use wfa
[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 "--tarball".
97 tarball=false
98
99 # Set command line argument for tar command
100 # It is only used for creating tarball
101 # Change the default behavior of "--tar-opts".
102 tar_comp="gzip"
103 tar_comp_opt=()
104
105 # See the `mksquashfs` help for details on these items.
106 # This variable overrides each build option "-c" or "-t".
107 sfs_comp="xz"
108 sfs_comp_opt=()
109
110
111 # If set to true, include alteriso_info in iso root.
112 # This setting cannot be changed by an argument.
113 include_info=true
114
115
116 # Use a customized syslinux configuration file.
117 # syslinux.<arch> must exist in the channel's directory. It works like airootfs.
118 # If set to false, the channel syslinux configuration file will not be used.
119 # Use this setting for debugging only.
120 # This setting cannot be changed by an argument.
121 customized_syslinux=true
122
123
124 # Do not add rescue mode launch items
125 # If true, do not add items such as "without GUI" or "Safe graphics".
126 # This setting cannot be changed by an argument.
127 norescue_entry=false
128
129
130 # Modules to include
131 # An array of module directory names to include.
132 # This setting cannot be changed by an argument.
133 # Use this array only in the configuration files in the channel.
134 #modules=("share")
135
136 # AUR Helper config
137 aur_helper_command="yay"
138 aur_helper_package="yay"
139 aur_helper_depends=("go")
140 aur_helper_args=(
141     --useask
142     --mflags "-AcC"
143     --aur
144     --nocleanmenu
145     --nodiffmenu
146     --noeditmenu
147     --noupgrademenu
148     --noprovides
149     --removemake
150     --mflags "--skippgpcheck"
151 )
152
153 #-- kernel config --#
154 # Set the kernel that live session use.
155 # Please don't set anything if you want to use normal kernel.
156 # See help for a list of available values.
157 # This setting cannot be changed by an argument.
158
159 # Kernel name
160 defaultkernel="zen"
161
162 #-- Live environment user --#
163
164 # Set the default live environment user name
165 # Channel developers should use this.
166 defaultusername='alter'
167
168 # Set the live environment user name
169 # Change the default behavior of "-u" and "--user".
170 # Overrides default settings
171 username="alter"
172
173 # Set the default live environment user name
174 # Channel developers should use this.
175 defaultpassword='alter'
176
177 # Set the live environment user password
178 # Change the default behavior of "-p" or "--password".
179 # Overrides default settings
180 password="alter"
181
182 # Set the user's default shell.
183 # This setting cannot be changed by an argument.
184 #
185 # The shell should be listed in /etc/shells, the package installed,
186 # and the appropriate configuration files in /etc/skel.
187 usershell="/bin/bash"
188
189 # Install memtest86
190 memtest86=true
191
192 # Set the size of cowspace
193 # Change the default behavior of "--cowspace"
194 cowspace="1GB"
195
196 #-- language config --#
197
198 # Sets the default locale for the live environment.
199 # You can also place a package list for that locale name and install packages specific to that locale.
200 locale_name="en"
201
202
203 #-- Script options --#
204
205 # Enable post-build cleaning.
206 # When enabled, airootfs in the working directory is deleted after squashfs is created.
207 # Change the default behavior of "-l" and "cleanup".
208 cleaning=false
209
210 # Set whether to check the build.
211 # If true, do not check. If false, confirm.
212 # Change the default behavior of "--noconfirm".
213 noconfirm=false
214
215 # When set to true, colored output will not be performed.
216 # Change the default behavior of "--nocolor".
217 nocolor=false
218
219 # If set to true, do not check dependent packages.
220 # Change the default behavior of "--nodepend".
221 # Dependent packages are defined in the following array.
222 nodepend=false
223
224 # Do not check the current kernel or load kernel modules.
225 # Enabling this option can cause unexpected problems.
226 # Change the default behavior of "--noloopmod".
227 noloopmod=false
228
229 # Do not include the channel name in the filename of the image file.
230 # This setting cannot be changed by an argument.
231 nochname=false
232
233 # Do not check the version of the channel.
234 # Use this option only if you want to force builds of AlterISO2 or earlier channels.
235 # The structure of the channel is so different that it may lead to unexpected operation, and no guarantee can be given.
236 # In particular, the old -j option cannot be used and the japanese variable cannot be used in customize_airootfs.
237 # Change the default behavior of "--nochkver".
238 nochkver=false
239
240 # Do not include file about efi
241 # Change the default behavior of "--noefi".
242 # If noiso is true, it will be enabled automatically.
243 noefi=false
244
245 # Does not build the ISO image file.
246 # Be sure to set the tarball to true if you want this to be true.
247 # Change the default behavior of "--noiso".
248 noiso=false
249
250 # Do not install the AUR package.
251 #
252 # !! WARNING !!
253 # Many packages are installed from AUR, so specifying --noaur can cause problems.
254 # Use this option only for debugging purposes or if you understand what you are trying to do.
255 #
256 # Change the default behavior of "--noaur".
257 noaur=false
258
259 # Do not build and install from PKGBUILD
260 # Change the default behavior of "--nopkgbuild".
261 # Use this option only for debugging purposes or if you understand what you are trying to do.
262 nopkgbuild=false
263
264 # Do not check pacman key
265 # This option allows the installation of unsigned packages, which reduces security.
266 # Use it for debugging only and never allow it permanently on channel config.
267 # Change the default behavior of "--nosigcheck".
268 nosigcheck=false
269
270 # Do not remove working dir
271 # Change the default behavior of "--normwork".
272 normwork=false
273
274 #-- Debug options --#
275
276 # Set debug mode.
277 # This setting can only be set to true or false.
278 # If bash_debug is set to true, it will be easier to see how the script is executed by executing set -xv.
279 # If this is enabled, a large amount of logs will be output.
280 # If debug is set to true, debug messages useful for channel development will be displayed.
281 bash_debug=false
282 debug=false
283 pacman_debug=false
284
285 # If set to true, enable message debag.
286 # This option previously debugged the message output in build.sh, but now it debugs msg.sh.
287 # Change the default behavior of "--msgdebug".
288 msgdebug=false
289
290 # If set to true, enable git version
291 # Change the default behavior of "--gitversion".
292 # If the Git repository is not found, an error will be returned.
293 # Git version is generated with the following code.
294 # $ git rev-parse --short HEAD
295 gitversion=false
296
297 # Additional list of packages to exclude from channel
298 # Works the same as an exclude file
299 # Use this array for debugging only
300 # This setting cannot be changed by an argument.
301 additional_exclude_pkg=()
302
303 # Additional list of modules to load
304 # Use this array for debugging only
305 # Change the default behavior of "--add-module".
306 # This array is not available in the configuration files in the channel.
307 additional_modules=()
308
309 # Run with tee command
310 # Set to "false" to disable logging
311 # If not false, the log will be saved in the specified path.
312 # Change the default behavior of "--log" and "--logpath".
313 logging="false"
314
315
316 # List of packages required for build
317 # The following packages are checked to see if they are installed before running build.sh
318 # Also, wizard.sh will install it automatically.
319 #
320 # If you don't use Alter Linux repository, redefine this array in channel config
321 # and remove alterlinux related packages from dependence.
322 dependence=(
323     "alterlinux-keyring" # For install packages from Alter Linux repo
324     "arch-install-scripts" # For pacstrap and arch-install
325     "curl" # For getting keyring
326     "dosfstools" # For creating efiboot.img
327     "git" # For getting git ref (--gitversion)
328     "libisoburn" # For creating iso image file (xorriso)
329     "pyalpm" # For checking package (package.py)
330     "squashfs-tools" # For creating airootfs.sfs
331     "make" # For creating iso for releasing
332     
333     # Archive library
334     "lz4" "lzo" "xz" "zstd"
335 )