package/ugetty: make install step more robust

Use install -D so it also works if $(TARGET_DIR)/sbin does not exist yet.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Peter Korsgaard
2026-04-30 16:59:20 +02:00
committed by Julien Olivain
parent c1e6b201aa
commit 7bea44e9f1

View File

@@ -15,7 +15,7 @@ endef
# Install ugetty->getty symlink to ensure ugetty is used
define UGETTY_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/bin/ugetty \
$(INSTALL) -m 0755 -D $(@D)/bin/ugetty \
$(TARGET_DIR)/sbin/ugetty
ln -snf ugetty $(TARGET_DIR)/sbin/getty
endef