From 974e83a8f9a1c9054b0d702d63b85557388d4b7d Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Tue, 7 Jun 2016 22:09:41 +0200 Subject: [PATCH] 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...). Signed-off-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- fs/common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/common.mk b/fs/common.mk index f7a73bb1a1..b7202c30aa 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),) -- 2.30.2