[Buildroot] [git commit] fs: add sha-bang to fakeroot script

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jun 7 21:13:36 UTC 2016


commit: https://git.buildroot.net/buildroot/commit/?id=974e83a8f9a1c9054b0d702d63b85557388d4b7d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

We directly running this script, so it should start with a sha-bang (not
sure why/how it works today...).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 fs/common.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/common.mk b/fs/common.mk
index f7a73bb..b7202c3 100644
--- a/fs/common.mk
+++ b/fs/common.mk
@@ -76,6 +76,7 @@ $$(BINARIES_DIR)/rootfs.$(1): target-finalize $$(ROOTFS_$(2)_DEPENDENCIES)
 	rm -f $$(FAKEROOT_SCRIPT)
 	rm -f $$(TARGET_DIR_WARNING_FILE)
 	rm -f $$(USERS_TABLE)
+	echo '#!/bin/sh' > $$(FAKEROOT_SCRIPT)
 	echo "set -e" >> $$(FAKEROOT_SCRIPT)
 	echo "chown -h -R 0:0 $$(TARGET_DIR)" >> $$(FAKEROOT_SCRIPT)
 ifneq ($$(ROOTFS_USERS_TABLES),)


More information about the buildroot mailing list