Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH] package/ugetty: make install step more robust
Date: Thu, 30 Apr 2026 16:59:20 +0200	[thread overview]
Message-ID: <20260430145921.225530-1-peter@korsgaard.com> (raw)

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

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/ugetty/ugetty.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/ugetty/ugetty.mk b/package/ugetty/ugetty.mk
index 1dc628540d..d3424bee42 100644
--- a/package/ugetty/ugetty.mk
+++ b/package/ugetty/ugetty.mk
@@ -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
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

             reply	other threads:[~2026-04-30 14:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-30 14:59 Peter Korsgaard [this message]
2026-05-03 21:30 ` [Buildroot] [PATCH] package/ugetty: make install step more robust Julien Olivain via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260430145921.225530-1-peter@korsgaard.com \
    --to=peter@korsgaard.com \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox