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