From: "Jory A. Pratt" <anarchy@gentoo.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH]gen_initramfs_list.sh
Date: Wed, 4 Dec 2019 09:48:14 -0600 [thread overview]
Message-ID: <0e13a1b9-c1f7-5255-e7cd-507c62ed767f@gentoo.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 104 bytes --]
As stated in patch the script is a non posix bash script and should use
bash instead of config_shell
[-- Attachment #2: 0001-gen_initramfs_list.sh-is-a-bash-script-that-isn-t-po.patch --]
[-- Type: text/x-patch, Size: 1015 bytes --]
From 6a7ef73882393e23e966e7b53e7b03397ad18e63 Mon Sep 17 00:00:00 2001
From: Jory Pratt <anarchy@gentoo.org>
Date: Wed, 4 Dec 2019 09:30:17 -0600
Subject: [PATCH] gen_initramfs_list.sh is a bash script that isn't posix
compliant.
This ensures we call bash instead of sh which could be dash or any other
shell that is not compatible with the script.
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
---
usr/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr/Makefile b/usr/Makefile
index e6f7cb2f81db..27987f18eb20 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -27,7 +27,7 @@ $(obj)/initramfs_data.o: $(obj)/$(datafile_y) FORCE
# Generate the initramfs cpio archive
hostprogs-y := gen_init_cpio
-initramfs := $(CONFIG_SHELL) $(srctree)/$(src)/gen_initramfs_list.sh
+initramfs := $(BASH) $(srctree)/$(src)/gen_initramfs_list.sh
ramfs-input := $(if $(filter-out "",$(CONFIG_INITRAMFS_SOURCE)), \
$(shell echo $(CONFIG_INITRAMFS_SOURCE)),-d)
ramfs-args := \
--
2.24.0
next reply other threads:[~2019-12-04 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-04 15:48 Jory A. Pratt [this message]
2019-12-04 16:17 ` [PATCH]gen_initramfs_list.sh Randy Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e13a1b9-c1f7-5255-e7cd-507c62ed767f@gentoo.org \
--to=anarchy@gentoo.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®