V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 50s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -12,7 +12,7 @@ include_toc: true
|
|||||||
[](https://google.github.io/styleguide/shellguide.html)
|
[](https://google.github.io/styleguide/shellguide.html)
|
||||||
|
|
||||||
[](https://docs.gitea.com/)
|
[](https://docs.gitea.com/)
|
||||||
[](https://www.jetbrains.com/store/?section=personal&billing=yearly)
|
[](https://www.jetbrains.com/store/?section=personal&billing=yearly)
|
||||||
[](https://keepassxc.org/)
|
[](https://keepassxc.org/)
|
||||||
[](https://www.netcup.com/de)
|
[](https://www.netcup.com/de)
|
||||||
[](https://coresecret.eu/)
|
[](https://coresecret.eu/)
|
||||||
|
|||||||
@@ -100,6 +100,15 @@ EOF
|
|||||||
|
|
||||||
if [[ "${var_key}" == "/" ]]; then
|
if [[ "${var_key}" == "/" ]]; then
|
||||||
|
|
||||||
|
mkdir -p "${TARGET}/etc/initramfs-tools/files"
|
||||||
|
mkdir -p "${TARGET}/usr/lib/cryptsetup/scripts"
|
||||||
|
|
||||||
|
### Install the script to be called inside initramfs environment for unlocking LUKS and NUKE Devices.
|
||||||
|
install -m 0755 -o root -g root "${VAR_SETUP_PATH}/target/includes/initramfs-tools/files/unlock_wrapper.sh" \
|
||||||
|
"${TARGET}/etc/initramfs-tools/files/"
|
||||||
|
install -m 0755 -o root -g root "${VAR_SETUP_PATH}/target/includes/initramfs-tools/files/unlock_wrapper.sh" \
|
||||||
|
"${TARGET}/lib/cryptsetup/scripts/"
|
||||||
|
|
||||||
write_crypttab "${var_encryption_label}" "UUID=${var_luks_uuid}" "none" "luks,discard,initramfs,keyscript=/lib/cryptsetup/scripts/unlock_wrapper.sh"
|
write_crypttab "${var_encryption_label}" "UUID=${var_luks_uuid}" "none" "luks,discard,initramfs,keyscript=/lib/cryptsetup/scripts/unlock_wrapper.sh"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ 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:+${VAR_GRUB_CMDLINE_LINUX} }cryptdevice=${VAR_CRYPT_ROOT}:cryptroot root=/dev/mapper/${var_label}"
|
do_log "debug" "file_only" "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
|
||||||
|
|||||||
@@ -77,8 +77,6 @@ dropbear_setup() {
|
|||||||
### Generate dropbear configuration file
|
### Generate dropbear configuration file
|
||||||
write_dropbear_conf
|
write_dropbear_conf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Install the script to be called by 'update-initramfs' for updating 'PATH'-variable inside initramfs.
|
### Install the script to be called by 'update-initramfs' for updating 'PATH'-variable inside initramfs.
|
||||||
install -D -m 0755 -o root -g root "${VAR_SETUP_PATH}/includes/initramfs-tools/scripts/init-top/fixpath.sh" \
|
install -D -m 0755 -o root -g root "${VAR_SETUP_PATH}/includes/initramfs-tools/scripts/init-top/fixpath.sh" \
|
||||||
"${TARGET}/includes/initramfs-tools/scripts/init-top/"
|
"${TARGET}/includes/initramfs-tools/scripts/init-top/"
|
||||||
|
|||||||
Reference in New Issue
Block a user