check_bool noiso
check_bool noaur
check_bool customized_syslinux
+ check_bool norescue_entry
# Unmount
umount_chroot
fi
# Rename rescue config
- mv "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_rescue.cfg" "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_rescue_${arch}.cfg"
+ if [[ "${norescue_entry}" = false ]]; then
+ mv "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_rescue.cfg" "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_rescue_${arch}.cfg"
+ else
+ remove "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_rescue.cfg"
+ fi
# copy files
cp "${work_dir}"/${arch}/airootfs/usr/lib/syslinux/bios/*.c32 "${work_dir}/iso/${install_dir}/boot/syslinux"
_write_load "INCLUDE boot/syslinux/archiso_head.cfg"
for _arch in ${all_arch[@]}; do
_write_load "INCLUDE boot/syslinux/archiso_${_pxe_or_sys}_${_arch}.cfg"
- if [[ "${_pxe_or_sys}" = "sys" ]]; then
+ if [[ "${_pxe_or_sys}" = "sys" ]] && [[ "${norescue_entry}" = false ]]; then
_write_load "INCLUDE boot/syslinux/archiso_sys_rescue_${arch}.cfg"
fi
done
check_bool noiso
check_bool noaur
check_bool customized_syslinux
+ check_bool norescue_entry
check_bool rebuild
check_bool debug
check_bool bash_debug
cp "${script_path}/syslinux/splash.png" "${work_dir}/iso/${install_dir}/boot/syslinux"
fi
+ # Remove rescue config
+ if [[ "${norescue_entry}" = true ]]; then
+ remove "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_rescue.cfg"
+ sed -i "s|$(cat "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_load.cfg" | grep "archiso_sys_rescue")||g" "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_sys_load.cfg"
+ fi
+
# copy files
cp "${work_dir}"/${arch}/airootfs/usr/lib/syslinux/bios/*.c32 "${work_dir}/iso/${install_dir}/boot/syslinux"
cp "${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/lpxelinux.0" "${work_dir}/iso/${install_dir}/boot/syslinux"
# Change the default behavior of "--shmkalteriso".
shmkalteriso=true
+# Do not add rescue mode launch items
+# If true, do not add items such as "without GUI" or "Safe graphics".
+# This setting cannot be changed by an argument.
+norescue_entry=true
+
# 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.
+++ /dev/null
-# Yamada Hayao
-# Twitter: @Hayao0819
-# Email : hayao@fascode.net
-#
-# (c) 2019-2020 Fascode Network.
-#
-
-DEFAULT arch_%ARCH%
-TIMEOUT 100
+++ /dev/null
-# Yamada Hayao
-# Twitter: @Hayao0819
-# Email : hayao@fascode.net
-#
-# (c) 2019-2020 Fascode Network.
-#
-
-LABEL arch_%ARCH%
-TEXT HELP
-Boot the %OS_NAME% (%ARCH%) live medium.
-It allows you to install %OS_NAME% or perform system maintenance.
-ENDTEXT
-MENU LABEL Boot %OS_NAME% (%ARCH%)
-LINUX boot/%ARCH%/%KERNEL_FILENAME%
-INITRD boot/intel_ucode.img,boot/amd_ucode.img,boot/%ARCH%/archiso.img
-APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
# This setting cannot be changed by an argument.
customized_syslinux=true
+# Do not add rescue mode launch items
+# If true, do not add items such as "without GUI" or "Safe graphics".
+# This setting cannot be changed by an argument.
+norescue_entry=false
+
#-- kernel config --#
# Set the kernel that live session use.