aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bartosz Bilas <b.bilas@grinn-global.com>2020-11-16 13:30:35 +0100
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2021-01-03 10:02:12 +0100
commit9c5ef6018e7d0bd9e56006fe192880395a8aa871 (patch)
tree92802baab2a0d3b7558e3297a2c4f973ea46bdc9
parentd2d629ecd8041a21b6c615e221137113837a42c2 (diff)
downloadbuildroot-9c5ef6018e7d0bd9e56006fe192880395a8aa871.tar.gz
buildroot-9c5ef6018e7d0bd9e56006fe192880395a8aa871.tar.bz2
package/systemd: don't fail if getty service directory already exists
Add -p argument that ignore that specified directory already exists. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com> [yann.morin.1998@free.fr: - split to its own patch - rewrite commit title ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
-rw-r--r--package/systemd/systemd.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index 5aed87f452..51d0a7b558 100644
--- a/package/systemd/systemd.mk
+++ b/package/systemd/systemd.mk
@@ -581,7 +581,7 @@ ifneq ($(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)),)
# * enable serial-getty@xxx for other $BR2_TARGET_GENERIC_TTY_PATH
# * rewrite baudrates if a baudrate is provided
define SYSTEMD_INSTALL_SERVICE_TTY
- mkdir $(TARGET_DIR)/usr/lib/systemd/system/getty@.service.d; \
+ mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/getty@.service.d; \
printf '[Install]\nDefaultInstance=\n' \
>$(TARGET_DIR)/usr/lib/systemd/system/getty@.service.d/buildroot-console.conf; \
if [ $(BR2_TARGET_GENERIC_GETTY_PORT) = "console" ]; \
@@ -593,7 +593,7 @@ define SYSTEMD_INSTALL_SERVICE_TTY
$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)) \
>$(TARGET_DIR)/usr/lib/systemd/system/getty@.service.d/buildroot-console.conf; \
else \
- mkdir $(TARGET_DIR)/usr/lib/systemd/system/serial-getty@.service.d;\
+ mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/serial-getty@.service.d;\
printf '[Install]\nDefaultInstance=%s\n' \
$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)) \
>$(TARGET_DIR)/usr/lib/systemd/system/serial-getty@.service.d/buildroot-console.conf;\