fi
# copy all syslinux config to work dir
- for _cfg in $work_dir/${arch}/syslinux/*.cfg; do
+ for _cfg in ${work_dir}/${arch}/syslinux/*.cfg; do
sed "s|%ARCHISO_LABEL%|${iso_label}|g;
s|%OS_NAME%|${os_name}|g;
s|%KERNEL_FILENAME%|${kernel_filename}|g;
cp "${script_path}/syslinux/splash.png" "${work_dir}/iso/${install_dir}/boot/syslinux"
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"
+
# 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"
for _pxe_or_sys in "sys" "pxe"; do
_write_load() { echo -e "${@}" >> "${work_dir}/iso/${install_dir}/boot/syslinux/archiso_${_pxe_or_sys}_load.cfg"; }
_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"; done
+ for _arch in ${all_arch[@]}; do
+ _write_load "INCLUDE boot/syslinux/archiso_${_pxe_or_sys}_${_arch}.cfg"
+ if [[ "${_pxe_or_sys}" = "sys" ]]; then
+ _write_load "INCLUDE boot/syslinux/archiso_sys_rescue_${arch}.cfg"
+ fi
+ done
_write_load "INCLUDE boot/syslinux/archiso_tail.cfg"
done
}
INCLUDE boot/syslinux/archiso_sys.cfg
+INCLUDE boot/syslinux/archiso_sys_rescue.cfg
+
INCLUDE boot/syslinux/archiso_tail.cfg
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%
-
-LABEL safegraphic
-TEXT HELP
-Disable KMS. Try it if you are having problems with graphics.
-Specifically, add nomodeset to the kernel parameters.
-ENDTEXT
-MENU LABEL Boot %OS_NAME% (%ARCH%) with safe graphic
-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% nomodeset
-
-LABEL rescue
-TEXT HELP
-Start with minimal of prompts. do not use systemd.
-Please use it in the environment where GUI cannot be started.
-ENDTEXT
-MENU LABEL Boot %OS_NAME% (%ARCH%) without GUI
-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% systemd.unit=multi-user.target nomodeset
--- /dev/null
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email : hayao@fascode.net
+#
+# (c) 2019-2020 Fascode Network.
+#
+
+LABEL safegraphic
+TEXT HELP
+Disable KMS. Try it if you are having problems with graphics.
+Specifically, add nomodeset to the kernel parameters.
+ENDTEXT
+MENU LABEL Boot %OS_NAME% (%ARCH%) with safe graphic
+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% nomodeset
+
+LABEL rescue
+TEXT HELP
+Start with minimal of prompts. do not use systemd.
+Please use it in the environment where GUI cannot be started.
+ENDTEXT
+MENU LABEL Boot %OS_NAME% (%ARCH%) without GUI
+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% systemd.unit=multi-user.target nomodeset
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%
-
-LABEL safegraphic
-TEXT HELP
-Disable KMS. Try it if you are having problems with graphics.
-Specifically, add nomodeset to the kernel parameters.
-ENDTEXT
-MENU LABEL Boot %OS_NAME% (%ARCH%) with safe graphic
-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% nomodeset
-
-LABEL rescue
-TEXT HELP
-Start with minimal of prompts. do not use systemd.
-Please use it in the environment where GUI cannot be started.
-ENDTEXT
-MENU LABEL Boot %OS_NAME% (%ARCH%) without GUI
-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% systemd.unit=multi-user.target nomodeset