mklive.sh: use lib.sh more

but don't use it for everything, as some things seem a bit broken with
mklive specifically

closes: #322
This commit is contained in:
classabbyamp 2024-12-26 12:15:03 -05:00 committed by classabbyamp
parent 66d1c54261
commit 06fe42b5f2
2 changed files with 4 additions and 8 deletions

2
lib.sh
View File

@ -323,8 +323,6 @@ rk33xx_flash_uboot() {
--repository=https://repo-default.voidlinux.org/current/musl \
--repository=https://repo-default.voidlinux.org/current/aarch64}"
# This library is the authoritative source of the platform map,
# because of this we may need to get this information from the command
# line. This select allows us to get that information out. This

View File

@ -37,18 +37,14 @@ PLATFORMS=()
readonly PROGNAME="$(basename "$0")"
declare -a INCLUDE_DIRS=()
info_msg() {
printf "\033[1m$@\n\033[m"
}
die() {
info_msg "ERROR: $@"
info_msg "ERROR: $*"
error_out 1 $LINENO
}
print_step() {
CURRENT_STEP=$((CURRENT_STEP+1))
info_msg "[${CURRENT_STEP}/${STEP_COUNT}] $@"
info_msg "[${CURRENT_STEP}/${STEP_COUNT}] $*"
}
mount_pseudofs() {
@ -532,6 +528,8 @@ HOST_ARCH=$(xbps-uhelper arch)
: ${BOOT_TITLE:="Void Linux"}
: ${LINUX_VERSION:=linux}
XBPS_TARGET_ARCH="$TARGET_ARCH" register_binfmt
case "$TARGET_ARCH" in
x86_64*|i686*)
BOOTLOADERS=(syslinux grub)