File tree Expand file tree Collapse file tree 5 files changed +23
-20
lines changed
Expand file tree Collapse file tree 5 files changed +23
-20
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,12 @@ prepare_build() {
370370 modules=(" ${_modules[@]} " )
371371 unset _modules
372372
373+ # Ignore modules
374+ local _m
375+ for _m in " ${exclude_modules[@]} " ; do
376+ readarray -t modules < <( printf " %s\n" " ${modules[@]} " | grep -xv " ${_m} " )
377+ done
378+
373379 # Check modules
374380 module_check (){
375381 msg_debug -n " Checking ${1} module ... "
Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ cp -aT /etc/skel/ /root/
8181sed -i ' s/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
8282sed -i " s/#Server/Server/g" /etc/pacman.d/mirrorlist
8383
84+ if [[ -e " /root/.automated_script.sh" ]]; then
85+ chmod 755 " /root/.automated_script.sh"
86+ fi
87+
8488# Enable services.
8589systemctl enable NetworkManager
8690systemctl enable pacman-init.service
Original file line number Diff line number Diff line change 1- alteriso=3.0
1+ alteriso=3.1
Original file line number Diff line number Diff line change @@ -76,23 +76,12 @@ nochname=true
7676# List of packages required for build
7777# The following packages are checked to see if they are installed before running build.sh
7878# Also, wizard.sh will install it automatically.
79- dependence=(
80- # "alterlinux-keyring"
81- # "archiso"
82- " arch-install-scripts"
83- " curl"
84- " dosfstools"
85- " edk2-shell"
86- " git"
87- " libburn"
88- " libisofs"
89- " lz4"
90- " lzo"
91- " make"
92- " squashfs-tools"
93- " libisoburn"
94- # "lynx"
95- " xz"
96- " zlib"
97- " zstd"
79+ readarray -t dependence < <( printf " %s\n" " ${dependence[@]} " | grep -xv " alterlinux-keyring" )
80+
81+ # Modules to include
82+ # An array of module directory names to include.
83+ # This setting cannot be changed by an argument.
84+ modules=(
85+ base
86+ share
9887)
Original file line number Diff line number Diff line change @@ -306,6 +306,10 @@ additional_exclude_pkg=()
306306# This array is not available in the configuration files in the channel.
307307additional_modules=()
308308
309+
310+ # Module list
311+ exclude_modules=()
312+
309313# Run with tee command
310314# Set to "false" to disable logging
311315# If not false, the log will be saved in the specified path.
You can’t perform that action at this time.
0 commit comments