Skip to contentSkip to conversation

fs: add sha-bang to fakeroot script

PATCH New Yann E. MORIN 2 participants 2 messages Jun 7, 2016 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: add sha-bang to fakeroot script

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

---
 fs/common.mk | 1 +
 1 file changed, 1 insertion(+)
fs/common.mk +1 -0
index 46e097b..63aa46c 100644
@@ -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),)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 fs: add sha-bang to fakeroot script

Hello,

Quoted 7 lines · Yann E. MORIN

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

---
 fs/common.mk | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com