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:
parent
66d1c54261
commit
06fe42b5f2
2
lib.sh
2
lib.sh
|
@ -323,8 +323,6 @@ rk33xx_flash_uboot() {
|
||||||
--repository=https://repo-default.voidlinux.org/current/musl \
|
--repository=https://repo-default.voidlinux.org/current/musl \
|
||||||
--repository=https://repo-default.voidlinux.org/current/aarch64}"
|
--repository=https://repo-default.voidlinux.org/current/aarch64}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# This library is the authoritative source of the platform map,
|
# This library is the authoritative source of the platform map,
|
||||||
# because of this we may need to get this information from the command
|
# because of this we may need to get this information from the command
|
||||||
# line. This select allows us to get that information out. This
|
# line. This select allows us to get that information out. This
|
||||||
|
|
10
mklive.sh
10
mklive.sh
|
@ -37,18 +37,14 @@ PLATFORMS=()
|
||||||
readonly PROGNAME="$(basename "$0")"
|
readonly PROGNAME="$(basename "$0")"
|
||||||
declare -a INCLUDE_DIRS=()
|
declare -a INCLUDE_DIRS=()
|
||||||
|
|
||||||
info_msg() {
|
|
||||||
printf "\033[1m$@\n\033[m"
|
|
||||||
}
|
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
info_msg "ERROR: $@"
|
info_msg "ERROR: $*"
|
||||||
error_out 1 $LINENO
|
error_out 1 $LINENO
|
||||||
}
|
}
|
||||||
|
|
||||||
print_step() {
|
print_step() {
|
||||||
CURRENT_STEP=$((CURRENT_STEP+1))
|
CURRENT_STEP=$((CURRENT_STEP+1))
|
||||||
info_msg "[${CURRENT_STEP}/${STEP_COUNT}] $@"
|
info_msg "[${CURRENT_STEP}/${STEP_COUNT}] $*"
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_pseudofs() {
|
mount_pseudofs() {
|
||||||
|
@ -532,6 +528,8 @@ HOST_ARCH=$(xbps-uhelper arch)
|
||||||
: ${BOOT_TITLE:="Void Linux"}
|
: ${BOOT_TITLE:="Void Linux"}
|
||||||
: ${LINUX_VERSION:=linux}
|
: ${LINUX_VERSION:=linux}
|
||||||
|
|
||||||
|
XBPS_TARGET_ARCH="$TARGET_ARCH" register_binfmt
|
||||||
|
|
||||||
case "$TARGET_ARCH" in
|
case "$TARGET_ARCH" in
|
||||||
x86_64*|i686*)
|
x86_64*|i686*)
|
||||||
BOOTLOADERS=(syslinux grub)
|
BOOTLOADERS=(syslinux grub)
|
||||||
|
|
Loading…
Reference in New Issue