@@ -466,6 +466,7 @@ prepare_rebuild() {
466466
467467 _write_rebuild_file " \n# Channel Info"
468468 _save_var build_pacman_conf defaultconfig include_extra defaultusername customized_username customized_password customized_kernel
469+ _save_var memtest86
469470
470471 _write_rebuild_file " \n# mkalteriso Info"
471472 _save_var mkalteriso shmkalteriso mkalteriso_option tarball
@@ -612,6 +613,9 @@ make_packages_repo() {
612613 if [[ " ${debug} " = true ]]; then
613614 _pkglist_args+=" -d"
614615 fi
616+ if [[ " ${memtest86} " = true ]]; then
617+ _pkglist_args+=" -m"
618+ fi
615619 local _pkglist=($( " ${tools_dir} /pkglist.sh" ${_pkglist_args} ) )
616620
617621 # Create a list of packages to be finally installed as packages.list directly under the working directory.
@@ -636,6 +640,9 @@ make_packages_aur() {
636640 if [[ " ${debug} " = true ]]; then
637641 _pkglist_args+=" -d"
638642 fi
643+ if [[ " ${memtest86} " = true ]]; then
644+ _pkglist_args+=" -m"
645+ fi
639646 local _pkglist_aur=($( " ${tools_dir} /pkglist.sh" ${_pkglist_args} ) )
640647
641648 # Create a list of packages to be finally installed as packages.list directly under the working directory.
@@ -862,10 +869,19 @@ make_syslinux() {
862869 cp " ${script_path} /syslinux/splash.png" " ${isofs_dir} /${install_dir} /boot/syslinux"
863870 fi
864871
865- # 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+
866879 if [[ " ${norescue_entry} " = true ]]; then
867- remove " ${isofs_dir} /${install_dir} /boot/syslinux/archiso_sys_rescue.cfg"
868- 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
869885 fi
870886
871887 # copy files
0 commit comments