OSDN Git Service

[update] : Added comments
[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-2020 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
23 #-- archiso --#
24 # Architecture to build
25 # AlterISO currently supports x86_64 or i686
26 # Please note that the channels and kernels that can be used differ depending on the architecture.
27 # Change the default behavior of "-a" and "--arch".
28 arch=$(uname -m)
29
30 # OS name used for startup screen, etc.
31 # This setting cannot be changed by an argument.
32 os_name="Alter Linux"
33
34 # OS name used for the name of the image file.
35 # This setting cannot be changed by an argument.
36 iso_name=alterlinux
37
38 # Image file label
39 # This setting cannot be changed by an argument.
40 iso_label="ALTER_$(date +%Y%m%d)"
41
42 # Image file creator information
43 iso_publisher='Fascode Network <https://fascode.net>'
44
45 # Image name (not file name)
46 # This setting cannot be changed by an argument.
47 iso_application="${os_name} Live/Rescue CD"
48
49 # Image file version
50 # If gitversion (--gitversion) is enabled, Git's revision will be added to the end of this value.
51 # This setting cannot be changed by an argument.
52 iso_version=$(date +%Y.%m.%d)
53
54 # Directory name used for installation
55 # This setting cannot be changed by an argument.
56 install_dir=alter
57
58 # Work directory to execute pacstrap etc
59 # Change the default behavior of "-w" and "--work".
60 work_dir=work
61
62 # Directory to output image file and checksum
63 # Change the default behavior of "-o" and "--out".
64 out_dir=out
65
66 # Key used for signature
67 # Change the default behavior of "-g" and "--gpgkey".
68 # This setting cannot be changed by an argument.
69 gpg_key=
70
71
72 #-- Plymouth --#
73 # Set to true to enable plymouth.
74 # See help for a list of available values.
75 # Change the default behavior of "-b" and "--boot-splash".
76 boot_splash=false
77
78 # Set the theme name of plymouth.
79 theme_name="alter-logo"
80
81 # Set the package name of the plymouth theme.
82 # Install only if plymouth is enabled.
83 # If it is not packaged, leave this item empty and place those files in airootfs.
84 # This setting cannot be changed by an argument.
85 theme_pkg="plymouth-theme-alter-logo-git"
86
87
88 #-- alteriso config --#
89
90 # Set the kernel that live session use.
91 # Please don't set anything if you want to use normal kernel.
92 # See help for a list of available values.
93 # Change the default behavior of "-k" and "--kernel".
94 kernel=zen
95
96 # Set the Japanese mode.
97 # When this is enabled, the packages in the japanese package list will be installed.
98 # And some files for Japanese are used.
99 # Change the default behavior of "-j" and "--japanese".
100 japanese=false
101
102 # Channel name to build by default
103 channel_name='xfce'
104
105 # See the `mksquashfs` help for details on these items.
106 # This variable overrides each build option "-c" or "-t".
107 sfs_comp="zstd"
108 sfs_comp_opt=""
109
110
111 #-- Live environment user --#
112
113 # Set the default live environment user name
114 # Channel developers should use this.
115 defaultusername='alter'
116
117 # Set the live environment user name
118 # Change the default behavior of "-u" and "--user".
119 # Overrides default settings
120 username="alter"
121
122 # Set the live environment user password
123 # Change the default behavior of "-p" or "--password".
124 password="alter"
125
126 # Set the user's default shell.
127 # This setting cannot be changed by an argument.
128 #
129 # The shell should be listed in /etc/shells, the package installed, 
130 # and the appropriate configuration files in /etc/skel.
131 usershell="/bin/bash"
132
133
134 #-- Script options --#
135
136 # Enable post-build cleaning.
137 # When enabled, airootfs in the working directory is deleted after squashfs is created.
138 # Change the default behavior of "-l" and "cleanup".
139 cleaning=false
140
141 # Set whether to check the build.
142 # If true, do not check. If false, confirm.
143 # Change the default behavior of "--noconfirm".
144 noconfirm=false
145
146 # Use mkalteriso written in a traditional shell script 
147 # instead of the C ++ version of mkalteriso.
148 # Change the default behavior of "--shmkalteriso".
149 shmkalteriso="false"
150
151 # When set to true, colored output will not be performed.
152 # Change the default behavior of "--nocolor".
153 nocolor=false
154
155 # If set to true, do not check dependent packages.
156 # Change the default behavior of "--nodepend".
157 # Dependent packages are defined in the following array.
158 nodepend=false
159
160 # Do not check the current kernel or load kernel modules.
161 # Change the default behavior of "--noloopmod".
162 noloopmod=false
163
164 # Do not include the channel name in the filename of the image file.
165 # This setting cannot be changed by an argument.
166 nochname=false
167
168 #-- Debug options --#
169
170 # Set debug mode.
171 # This setting can only be set to true or false.
172 # If bash_debug is set to true, it will be easier to see how the script is executed by executing set -xv.
173 # If debug is set to true, debug messages useful for channel development will be displayed.
174 bash_debug=false
175 debug=false
176
177 # If set to true, enable message debag.
178 # Change the default behavior of "--msgdebug".
179 msgdebug=false
180
181 # If set to true, enable git version
182 # Change the default behavior of "--gitversion".
183 # Git version is generated with the following code
184 # $ git rev-parse --short HEAD
185 gitversion=false
186
187
188 # List of packages required for build
189 # The following packages are checked to see if they are installed before running build.sh
190 # Also, wizard.sh will install it automatically.
191 #
192 # If you don't use AlterLinux repository, redefine this array in channel config
193 # and remove alterlinux related packages from dependence.
194 dependence=(
195     "alterlinux-keyring"
196 #   "archiso"
197     "arch-install-scripts"
198     "curl"
199     "dosfstools"
200     "edk2-shell"
201     "git"
202     "libburn"
203     "libisofs"
204     "lz4"
205     "lzo"
206     "make"
207     "ninja"
208     "squashfs-tools"
209     "libisoburn"
210  #  "lynx"
211     "xz"
212     "zlib"
213     "zstd"
214 )
215