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:
@@ -136,7 +136,7 @@ EOF
|
||||
{
|
||||
printf "GRUB_CMDLINE_LINUX='%s'\n" "${VAR_GRUB_CMDLINE_LINUX}"
|
||||
printf "\n"
|
||||
printf "GRUB_CMDLINE_LINUX_DEFAULT='%S'\n" "${VAR_GRUB_CMDLINE_LINUX_DEFAULT}"
|
||||
printf "GRUB_CMDLINE_LINUX_DEFAULT='%s'\n" "${VAR_GRUB_CMDLINE_LINUX_DEFAULT}"
|
||||
printf "\n"
|
||||
printf "# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh\n"
|
||||
} >> "${var_file}"
|
||||
|
||||
@@ -142,9 +142,9 @@ EOF
|
||||
write_dropbear_conf() {
|
||||
[[ -z "${dropbear_port:-}" ]] && dropbear_port="2222"
|
||||
|
||||
insert_header "${TARGET}/etc/dropbear/initramfs/dropbear.conf"
|
||||
insert_header "${TARGET}/etc/dropbear/initramfs/dropbear.conf"
|
||||
insert_comments "${TARGET}/etc/dropbear/initramfs/dropbear.conf"
|
||||
cat << EOF >> "${TARGET}/etc/dropbear/initramfs/dropbear.conf"
|
||||
cat << EOF >> "${TARGET}/etc/dropbear/initramfs/dropbear.conf"
|
||||
# Configuration options for the dropbear-initramfs boot scripts.
|
||||
# Variable assignment follow shell semantics and escaping/quoting rules.
|
||||
# You must run update-initramfs(8) to effect changes to this file (like
|
||||
@@ -158,7 +158,7 @@ write_dropbear_conf() {
|
||||
# -K: Keepalive interval in seconds
|
||||
# -p: Specify port (and optionally address)
|
||||
# -w: Disable root login (SHOULD NOT be implemented for initramfs)
|
||||
DROPBEAR_OPTIONS="-b /etc/dropbear/banner -c /usr/local/bin/unlock_wrapper.sh -E -I 300 -K 60 -p ${dropbear_port}"
|
||||
DROPBEAR_OPTIONS="-b /etc/dropbear/banner -E -I 300 -K 60 -p ${dropbear_port}"
|
||||
|
||||
# On local (non-NFS) mounts, interfaces matching this pattern are
|
||||
# brought down before exiting the ramdisk to avoid dirty network
|
||||
|
||||
@@ -28,7 +28,7 @@ if [ ! -e /etc/initramfs-tools/files/unlock_wrapper.sh ]; then
|
||||
fi
|
||||
|
||||
### Ensure directory structure in initramfs
|
||||
mkdir -p "${DESTDIR}/etc/dropbear"
|
||||
mkdir -p "${DESTDIR}/etc/dropbear/initramfs"
|
||||
mkdir -p "${DESTDIR}/etc/keys"
|
||||
mkdir -p "${DESTDIR}/usr/local/bin"
|
||||
mkdir -p "${DESTDIR}/etc/initramfs-tools/conf.d"
|
||||
@@ -100,6 +100,8 @@ printf "\e[92mSuccessfully executed: [install -m 0555 /etc/initramfs-tools/files
|
||||
### Install Dropbear Banner
|
||||
install -m 0444 /etc/dropbear/initramfs/banner "${DESTDIR}/etc/dropbear/banner"
|
||||
printf "\e[92mSuccessfully executed: [install -m 0444 /etc/dropbear/initramfs/banner %s/etc/dropbear/banner] \n\e[0m" "${DESTDIR}"
|
||||
install -m 0444 /etc/dropbear/initramfs/banner "${DESTDIR}/etc/dropbear/initramfs/banner"
|
||||
printf "\e[92mSuccessfully executed: [install -m 0444 /etc/dropbear/initramfs/banner %s/etc/dropbear/initramfs/banner] \n\e[0m" "${DESTDIR}"
|
||||
|
||||
printf "\e[92mSuccessfully executed: [/etc/initramfs-tools/hooks/custom-initramfs.sh] \n\e[0m"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user