File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -869,10 +869,19 @@ make_syslinux() {
869869 cp " ${script_path} /syslinux/splash.png" " ${isofs_dir} /${install_dir} /boot/syslinux"
870870 fi
871871
872- # Remove rescue config
872+ # remove config
873+ local _remove_config
874+ function _remove_config() {
875+ remove " ${isofs_dir} /${install_dir} /boot/syslinux/${1} "
876+ sed -i " s|$( cat " ${isofs_dir} /${install_dir} /boot/syslinux/archiso_sys_load.cfg" | grep " ${1} " ) ||g" " ${isofs_dir} /${install_dir} /boot/syslinux/archiso_sys_load.cfg"
877+ }
878+
873879 if [[ " ${norescue_entry} " = true ]]; then
874- remove " ${isofs_dir} /${install_dir} /boot/syslinux/archiso_sys_rescue.cfg"
875- sed -i " s|$( cat " ${isofs_dir} /${install_dir} /boot/syslinux/archiso_sys_load.cfg" | grep " archiso_sys_rescue" ) ||g" " ${isofs_dir} /${install_dir} /boot/syslinux/archiso_sys_load.cfg"
880+ _remove_config archiso_sys_rescue.cfg
881+ fi
882+
883+ if [[ " ${memtest86} " = false ]]; then
884+ _remove_config memtest86.cfg
876885 fi
877886
878887 # copy files
Original file line number Diff line number Diff line change @@ -13,4 +13,6 @@ INCLUDE boot/syslinux/archiso_sys.cfg
1313
1414INCLUDE boot/syslinux/archiso_sys_rescue.cfg
1515
16+ INCLUDE boot/syslinux/memtest86.cfg
17+
1618INCLUDE boot/syslinux/archiso_tail.cfg
Original file line number Diff line number Diff line change 1+ # Yamada Hayao
2+ # Twitter: @Hayao0819
3+ # Email : hayao@fascode.net
4+ #
5+ # (c) 2019-2021 Fascode Network.
6+ #
7+
8+ # http://www.memtest.org/
9+ LABEL memtest
10+ MENU LABEL Run Memtest86+ (RAM test)
11+ LINUX /%INSTALL_DIR%/boot/memtest
You can’t perform that action at this time.
0 commit comments