From: Benjamin Drung Date: Sat, 24 Jan 2026 15:41:32 +0000 (+0100) Subject: perf(dracut): unset threecpio_help_output after usage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=724da6ef940e18d61da5a50fc7d1d7a0af4a2b0a;p=thirdparty%2Fdracut-ng.git perf(dracut): unset threecpio_help_output after usage Reduce the memory consumption by unsetting `threecpio_help_output` after usage. --- diff --git a/dracut.sh b/dracut.sh index 45f21d1a4..0cc007a4a 100755 --- a/dracut.sh +++ b/dracut.sh @@ -2107,6 +2107,7 @@ if [[ $enhanced_cpio == "yes" ]]; then else unset enhanced_cpio fi +unset threecpio_help_output if [[ $no_kernel != yes ]] && ! [[ -d $srcmods ]]; then dfatal "Cannot find module directory $srcmods" diff --git a/lsinitrd.sh b/lsinitrd.sh index 63cf7b589..66c9a8ba5 100755 --- a/lsinitrd.sh +++ b/lsinitrd.sh @@ -108,6 +108,7 @@ if command -v 3cpio > /dev/null; then echo "Warning: Calling '3cpio --help' failed. Cannot check if 3cpio supports --make-directories." CPIO=3cpio fi + unset threecpio_help_output fi if ! [[ $KERNEL_VERSION ]]; then