commit: 039494e11540c963e7b804e7b4eecbef87d5eaa0
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 11 19:38:53 2020 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sat Apr 11 19:43:17 2020 +0000
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=039494e1
defaults/initrd.scripts: ignore SC2045
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
defaults/initrd.scripts | 1 +
defaults/linuxrc | 2 ++
2 files changed, 3 insertions(+)
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index d4b159a..514a8bc 100644
--- a/defaults/initrd.scripts
+++ b/defaults/initrd.scripts
@@ -186,6 +186,7 @@ findmediamount() {
# don't skip device mapper devices. Even the
craziest scenario
# deserves a fair chance.
#
+ # shellcheck disable=SC2045
for part in $(ls
/sys/block/${bsn}/${bsn}*[0-9]* 2>/dev/null)
do
skip=1
diff --git a/defaults/linuxrc b/defaults/linuxrc
index b3e1740..964a932 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -1133,6 +1133,7 @@ FSTAB
then
if [ -e "${CDROOT_PATH}/add" ]
then
+ # shellcheck disable=SC2045
for targz in $(ls ${CDROOT_PATH}/add/*.tar.gz)
do
tarname=$(basename ${targz})
@@ -1188,6 +1189,7 @@ FSTAB
if [ -e "/${NEW_ROOT}/${directory}" ]
then
# It does exist, link all the
individual files
+ # shellcheck disable=SC2045
for file in $(ls
/${NEW_ROOT}/${FS_LOCATION}/${directory})
do
if [ ! -d
"/${NEW_ROOT}/${FS_LOCATION}/${directory}/${file}" ] && [ ! -e
"${NEW_ROOT}/${directory}/${file}" ]