V8.13.416.2025.11.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m24s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-11-17 07:40:43 +00:00
parent 164e25d4c9
commit af8df9fe24
2 changed files with 4 additions and 3 deletions

View File

@@ -25,6 +25,7 @@
# https://github.com/mvdan/sh
# https://google.github.io/styleguide/shellguide.html
# https://mywiki.wooledge.org/BashGuide
# https://styles.goatbytes.io/lang/shell/
# https://www.bashsupport.com/de/
# https://www.gnu.org/software/bash/manual/

View File

@@ -77,7 +77,7 @@ copy_libs() {
copy_libs "${_BUSYBOX_BIN}"
### Generate /init script
cat << 'EOF' >| "${TMPDIR}/init"
cat << 'EOF' >| "${_TMP_DIR}/init"
#!/bin/busybox sh
# SPDX-Version: 3.0
# SPDX-CreationInfo: 2025-10-11; WEIDNER, Marc S.; <msw@coresecret.dev>
@@ -182,10 +182,10 @@ busybox poweroff -f || echo o >| /proc/sysrq-trigger
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
EOF
chmod +x "${TMPDIR}/init"
chmod +x "${_TMP_DIR}/init"
### Create the initramfs archive.
( cd "${TMPDIR}" && find . -print0 | cpio --null -ov --format=newc ) | gzip -9 > /boot/ciss-memwipe/initrd.img
( cd "${_TMP_DIR}" && find . -print0 | cpio --null -ov --format=newc ) | gzip -9 > /boot/ciss-memwipe/initrd.img
### Default configuration.
cat << 'EOF' >| /etc/default/ciss-memwipe