#
# (c) 2019-2020 Fascode Network.
#
-# config
+# default.conf
+#
+# The script first reads this file
+# You can change the default settings here
+#
+# Some values described here will be overridden by the arguments.
+# If you want to prohibit overwriting with arguments, use the config of each channel.
#
-# Overwrites the first to read and set the build script
# This configuration file follows the bash syntax.
#
+
+#-- archiso --#
+# Architecture to build
+# Change the default behavior of "-a" and "--arch".
+arch=$(uname -m)
+
# OS name used for startup screen, etc.
os_name="Alter Linux"
install_dir=alter
# Work directory to execute pacstrap etc
+# Change the default behavior of "-w" and "--work".
work_dir=work
# Directory to output image file and checksum
+# Change the default behavior of "-o" and "--out".
out_dir=out
# Key used for signature
+# Change the default behavior of "-g" and "--gpgkey".
gpg_key=
-# Set to true to enable plymouth.(-b)
+
+#-- Plymouth --#
+# Set to true to enable plymouth.
+# See help for a list of available values.
+# Change the default behavior of "-b" and "--boot-splash".
boot_splash=false
# Set the theme name of plymouth.
# If it is not packaged, leave this item empty and place those files in airootfs.
theme_pkg="plymouth-theme-alter-logo-git"
-# See the `mksquashfs` help for details on these items.
-sfs_comp="zstd"
-sfs_comp_opt=""
+
+#-- alteriso config --#
# Set the kernel that live session use.
# Please don't set anything if you want to use normal kernel.
-# As of February 23, 2020, the available kernels are lts, zen, ck, , rt and lqx.
+# See help for a list of available values.
+# Change the default behavior of "-k" and "--kernel".
kernel=zen
-# Set debug mode.
-# This setting can only be set to true or false.
-# If bash_debug is set to true, it will be easier to see how the script is executed by executing set -xv.
-# If debug is set to true, debug messages useful for channel development will be displayed.
-bash_debug=false
-debug=false
-
# Set the Japanese mode.
# When this is enabled, the packages in the japanese package list will be installed.
-# A file for Japanese input is added.
+# And some files for Japanese are used.
+# Change the default behavior of "-j" and "--japanese".
japanese=false
-# Enable post-build cleaning.
-# When enabled, airootfs in the working directory is deleted after squashfs is created.
-cleaning=false
+# Channel name to build by default
+channel_name='xfce'
+
+# See the `mksquashfs` help for details on these items.
+# This variable overrides each build option "-c" or "-t".
+sfs_comp="zstd"
+sfs_comp_opt=""
-# Set the live environment user name
+
+#-- Live environment user --#
+
+# Set the default live environment user name
+# Channel developers should use this.
+defaultusername='alter'
+
+# Set the live environment user name (force)
+# Change the default behavior of "-u" and "--user".
username="alter"
# Set the live environment user password
+# Change the default behavior of "-p" or "--password".
password="alter"
# Set the user's default shell.
usershell="/bin/bash"
+
+#-- Script options --#
+
+# Enable post-build cleaning.
+# When enabled, airootfs in the working directory is deleted after squashfs is created.
+# Change the default behavior of "-l" and "cleanup".
+cleaning=false
+
# Set whether to check the build.
# If true, do not check. If false, confirm.
+# Change the default behavior of "--noconfirm".
noconfirm=false
# Use mkalteriso written in a traditional shell script
# instead of the C ++ version of mkalteriso.
+# Change the default behavior of "--shmkalteriso".
shmkalteriso="false"
# When set to true, colored output will not be performed.
+# Change the default behavior of "--nocolor".
nocolor=false
# If set to true, do not check dependent packages.
+# Change the default behavior of "--nodepend".
nodepend=false
+# Do not check the current kernel or load kernel modules.
+# Change the default behavior of "--noloopmod".
+noloopmod=false
+
+# Do not include the channel name in the filename of the image file.
+# This setting cannot be changed by an argument.
+nochname=false
+
+#-- Debug options --#
+
+# Set debug mode.
+# This setting can only be set to true or false.
+# If bash_debug is set to true, it will be easier to see how the script is executed by executing set -xv.
+# If debug is set to true, debug messages useful for channel development will be displayed.
+bash_debug=false
+debug=false
+
+# If set to true, enable message debag.
+# Change the default behavior of "--msgdebug".
+msgdebug=false
+
+# If set to true, enable git version
+# Change the default behavior of "--gitversion".
+gitversion=false
+
+
# List of packages required for build
+# The following packages are checked to see if they are installed before running build.sh
+# Also, wizard.sh will install it automatically.
dependence=(
"alterlinux-keyring"
# "archiso"
"arch-install-scripts"
"curl"
"dosfstools"
+ "edk2-shell"
"git"
"libburn"
"libisofs"
"lz4"
"lzo"
"make"
+ "ninja"
"squashfs-tools"
"libisoburn"
# "lynx"
"xz"
"zlib"
"zstd"
-)
\ No newline at end of file
+)
+