Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Alexey Roslyakov <alexey.roslyakov@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] board/raspberrypi: enable hdmi console for systemd
Date: Sat, 12 Aug 2023 12:47:28 +0200	[thread overview]
Message-ID: <20230812124728.12b3a89b@windsurf> (raw)
In-Reply-To: <20230812050845.1551717-1-alexey.roslyakov@gmail.com>

Hello Alexey,

On Sat, 12 Aug 2023 13:08:45 +0800
Alexey Roslyakov <alexey.roslyakov@gmail.com> wrote:

> Most of the users use HDMI console on RPi and with increasing popularity
> of systemd they face a trouble.
> systemd doesn't use /etc/inittab, enable getty@tty1.service instead.
> 
> Signed-off-by: Alexey Roslyakov <alexey.roslyakov@gmail.com>
> ---
>  board/raspberrypi/post-build.sh | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied to master, but slightly reworked to avoid the nested if
condition:

 tty1::respawn:/sbin/getty -L  tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab
+# systemd doesn't use /etc/inittab, enable getty.tty1.service instead
+elif [ -d ${TARGET_DIR}/etc/systemd ]; then
+    mkdir -p "${TARGET_DIR}/etc/systemd/system/getty.target.wants"
+    ln -sf /lib/systemd/system/getty@.service \
+       "${TARGET_DIR}/etc/systemd/system/getty.target.wants/getty@tty1.service"
 fi

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-08-12 10:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-12  5:08 [Buildroot] [PATCH 1/1] board/raspberrypi: enable hdmi console for systemd Alexey Roslyakov
2023-08-12 10:47 ` Thomas Petazzoni via buildroot [this message]
2023-09-12  6:05 ` Peter Korsgaard

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=20230812124728.12b3a89b@windsurf \
    --to=buildroot@buildroot.org \
    --cc=alexey.roslyakov@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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