From f583ecb5b59b7e592270638bb41c2b98954007bb Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 27 Oct 2023 07:24:20 +0200 Subject: [PATCH] remove shopts --- usr/bin/archboot-cpio.sh | 1 - usr/lib/archboot/cpio/cpio.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/usr/bin/archboot-cpio.sh b/usr/bin/archboot-cpio.sh index 031d0e2bd..e55544f5f 100755 --- a/usr/bin/archboot-cpio.sh +++ b/usr/bin/archboot-cpio.sh @@ -5,7 +5,6 @@ # optimized for size and speed # by Tobias Powalowski -shopt -s extglob . /usr/lib/archboot/common.sh . /usr/lib/archboot/cpio/cpio.sh if [[ -z "${1}" ]]; then diff --git a/usr/lib/archboot/cpio/cpio.sh b/usr/lib/archboot/cpio/cpio.sh index aa8fbe139..a60959ec6 100644 --- a/usr/lib/archboot/cpio/cpio.sh +++ b/usr/lib/archboot/cpio/cpio.sh @@ -212,7 +212,7 @@ _install_mods() { depmod -b "${_ROOTFS}" "${_KERNELVERSION}" # remove all non-binary module.* files (except devname for on-demand module loading # and builtin.modinfo for checking on builtin modules) - rm "${_ROOTFS}${_MODULE_DIR}"/modules.!(*.bin|*.modinfo|devname|softdep) + rm "${_ROOTFS}${_MODULE_DIR}"/modules.{alias,builtin,dep,order,symbols} } _install_libs() {