aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bartosz Bilas <b.bilas@grinn-global.com>2020-11-13 12:39:40 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-11-16 15:45:23 +0100
commit6d18c7bd1908a92ca7c81fde6e2eea6751cdd0a2 (patch)
treef3287cd2f485e5416f1c634eac9b108a4830baf3
parent0b491807f22970c38f750bd49f046dfe76323282 (diff)
downloadbuildroot-6d18c7bd1908a92ca7c81fde6e2eea6751cdd0a2.tar.gz
buildroot-6d18c7bd1908a92ca7c81fde6e2eea6751cdd0a2.tar.bz2
package/rauc: prevent occurring the error when directory exists
Add -p argument that ignore that specified directory already exists. Fixes: mkdir: cannot create directory ā€˜/home/bartekk/buildroot-2020.11-rc1/output/target/usr/lib/systemd/system/rauc.service.dā€™: File exists Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit fefdd0511e99676aceb09403063f336e631d5067) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/rauc/rauc.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/rauc/rauc.mk b/package/rauc/rauc.mk
index 1915c783aa..61c50ab316 100644
--- a/package/rauc/rauc.mk
+++ b/package/rauc/rauc.mk
@@ -31,7 +31,7 @@ RAUC_DEPENDENCIES += systemd
endif
define RAUC_INSTALL_INIT_SYSTEMD
- mkdir $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d
+ mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d
printf '[Install]\nWantedBy=multi-user.target\n' \
>$(TARGET_DIR)/usr/lib/systemd/system/rauc.service.d/buildroot-enable.conf
endef