V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 53s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -53,7 +53,7 @@ update_grub_bootparameter() {
|
|||||||
|
|
||||||
if [[ "${VAR_DROPBEAR}" == "true" ]]; then
|
if [[ "${VAR_DROPBEAR}" == "true" ]]; then
|
||||||
var_label="${HMP_PATH_ENCLABEL["/"]}"
|
var_label="${HMP_PATH_ENCLABEL["/"]}"
|
||||||
VAR_GRUB_CMDLINE_LINUX="${VAR_GRUB_CMDLINE_LINUX} cryptdevice=${VAR_CRYPT_ROOT}:cryptroot root=/dev/mapper/${var_label}"
|
VAR_GRUB_CMDLINE_LINUX="${VAR_GRUB_CMDLINE_LINUX:+${VAR_GRUB_CMDLINE_LINUX} }cryptdevice=${VAR_CRYPT_ROOT}:cryptroot root=/dev/mapper/${var_label}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${VAR_NUKE}" == "true" ]]; then
|
if [[ "${VAR_NUKE}" == "true" ]]; then
|
||||||
@@ -66,8 +66,8 @@ update_grub_bootparameter() {
|
|||||||
|
|
||||||
do_in_target "${TARGET}" update-grub
|
do_in_target "${TARGET}" update-grub
|
||||||
|
|
||||||
do_log "info" "file_only" "4250() Setting GRUB_CMDLINE_LINUX_DEFAULT: ${VAR_GRUB_CMDLINE_LINUX_DEFAULT}"
|
do_log "info" "file_only" "4250() Setting GRUB_CMDLINE_LINUX_DEFAULT: [${VAR_GRUB_CMDLINE_LINUX_DEFAULT}]."
|
||||||
do_log "info" "file_only" "4250() Setting GRUB_CMDLINE_LINUX: ${VAR_GRUB_CMDLINE_LINUX}"
|
do_log "info" "file_only" "4250() Setting GRUB_CMDLINE_LINUX: [${VAR_GRUB_CMDLINE_LINUX}]."
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,17 +45,24 @@ dropbear_build() {
|
|||||||
# -s: Strip unnecessary symbols directly during linking
|
# -s: Strip unnecessary symbols directly during linking
|
||||||
# -Wl,-z,relro,-z,now: Enables full RELRO (symbol resolution at program startup)
|
# -Wl,-z,relro,-z,now: Enables full RELRO (symbol resolution at program startup)
|
||||||
|
|
||||||
CC=musl-gcc \
|
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set +x
|
||||||
CFLAGS="-Os -fPIE -Wno-undef -fstack-protector-strong -D_FORTIFY_SOURCE=2" \
|
(
|
||||||
LDFLAGS="-static -pie -s -Wl,-z,relro,-z,now" \
|
unset PATH_SEPARATOR
|
||||||
./configure \
|
PATH_SEPARATOR=':'
|
||||||
--enable-static \
|
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||||
--enable-openpty \
|
CC=musl-gcc \
|
||||||
--disable-pam \
|
CFLAGS="-Os -fPIE -Wno-undef -fstack-protector-strong -D_FORTIFY_SOURCE=2" \
|
||||||
--disable-zlib
|
LDFLAGS="-static -pie -s -Wl,-z,relro,-z,now" \
|
||||||
|
./configure \
|
||||||
|
--enable-static \
|
||||||
|
--enable-openpty \
|
||||||
|
--disable-pam \
|
||||||
|
--disable-zlib
|
||||||
|
|
||||||
# shellcheck disable=2312
|
# shellcheck disable=2312
|
||||||
make -j"$(nproc)"
|
make -j"$(nproc)"
|
||||||
|
)
|
||||||
|
[[ "${VAR_DEBUG_TRACE,,}" == "true" ]] && set -x
|
||||||
|
|
||||||
do_log "info" "file_only" "4310() Ultra Hardened [dropbear-${var_dropbear_version}] build successfully from sources."
|
do_log "info" "file_only" "4310() Ultra Hardened [dropbear-${var_dropbear_version}] build successfully from sources."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user