Skip to content

Commit 2617623

Browse files
committed
Merge branch 'memtest86+' into dev
2 parents 13500a9 + 33cd6eb commit 2617623

12 files changed

Lines changed: 89 additions & 20 deletions

File tree

build.sh

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

channels/share/packages.i486/exclude

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@
1212
# because they are automatically detected
1313
# and installed by the build script.
1414
#
15-
16-
memtest86+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Alter Linux package list
3+
#
4+
# Yamada Hayao
5+
# Twitter: @Hayao0819
6+
# Email : hayao@fascode.net
7+
#
8+
# (c) 2019-2021 Fascode Network.
9+
#
10+
11+
memtest86+

channels/share/packages.i686/exclude

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@
1212
# because they are automatically detected
1313
# and installed by the build script.
1414
#
15-
16-
memtest86+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Alter Linux package list
3+
#
4+
# Yamada Hayao
5+
# Twitter: @Hayao0819
6+
# Email : hayao@fascode.net
7+
#
8+
# (c) 2019-2021 Fascode Network.
9+
#
10+
11+
memtest86+

channels/share/packages.x86_64/exclude

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,3 @@
1212
# because they are automatically detected
1313
# and installed by the build script.
1414
#
15-
16-
memtest86+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Alter Linux package list
3+
#
4+
# Yamada Hayao
5+
# Twitter: @Hayao0819
6+
# Email : hayao@fascode.net
7+
#
8+
# (c) 2019-2021 Fascode Network.
9+
#
10+
11+
memtest86+

default.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ password="alter"
162162
# and the appropriate configuration files in /etc/skel.
163163
usershell="/bin/bash"
164164

165+
# Install memtest86
166+
memtest86=true
167+
165168

166169
#-- language config --#
167170

syslinux/archiso_sys_load.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ INCLUDE boot/syslinux/archiso_sys.cfg
1313

1414
INCLUDE boot/syslinux/archiso_sys_rescue.cfg
1515

16+
INCLUDE boot/syslinux/memtest86.cfg
17+
1618
INCLUDE boot/syslinux/archiso_tail.cfg

syslinux/archiso_tail.cfg

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ MENU LABEL Boot existing OS
1414
COM32 boot/syslinux/chain.c32
1515
APPEND hd0 0
1616

17-
# http://www.memtest.org/
18-
# LABEL memtest
19-
# MENU LABEL Run Memtest86+ (RAM test)
20-
# LINUX boot/memtest
21-
2217
# http://hdt-project.org/
2318
LABEL hdt
2419
TEXT HELP

0 commit comments

Comments
 (0)