kumquat-buildroot/package/openrc/0005-runlevels-do-not-add-agetty.tty-1-6-if-MKSYSVINIT-ye.patch
Adam Duskett 730c90faa3 package/openrc: bump version to 0.51
OpenRC has not been updated for quite some time, and much has changed.

  - Convert to a meson package.

  - Update the license hash as the year has changed from 2015 to 2023.

  - Introduce one new patch:

    - 0007-allow-setting-rc_libexecdir-path.patch: Introduces the previous
      behavior of setting the rc directory to /usr/libexec/rc.
      (Upstream: Upstream: https://github.com/OpenRC/openrc/pull/443)

  - Install the sysv-rcs script in the new OPENRC_INSTALL_SYSV_RCS_SCRIPT
    post install hook as the OPENRC_BUILD_CMDS define no longer exists.

Tested with tests.init.test_openrc all tests pass.

Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-11-01 19:10:36 +01:00

36 lines
1.2 KiB
Diff

From 014dc43447fa553e875984ac4a528e5916cc9e06 Mon Sep 17 00:00:00 2001
From: Carlos Santos <unixmania@gmail.com>
Date: Sat, 29 Feb 2020 22:41:30 -0300
Subject: [PATCH] runlevels: do not add agetty.tty[1-6] if MKSYSVINIT=yes
Buildroot starts a single getty, according to the system configuration.
Also tty[1-6] may not exist (e.g. embedded devices with serial consoles
only).
Signed-off-by: Carlos Santos <unixmania@gmail.com>
[Adam: update for 0.50]
Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
---
tools/meson_runlevels.sh | 6 ------
1 file changed, 6 deletions(-)
diff --git a/tools/meson_runlevels.sh b/tools/meson_runlevels.sh
index 1473d4e..eee256b 100755
--- a/tools/meson_runlevels.sh
+++ b/tools/meson_runlevels.sh
@@ -91,11 +91,5 @@ if ! test -d "${DESTDIR}${shutdowndir}"; then
ln -snf "${init_d_dir}/$x" "${DESTDIR}${shutdowndir}/$x"
done
fi
-if test "${sysvinit}" = yes && test "${os}" = Linux; then \
- for x in tty1 tty2 tty3 tty4 tty5 tty6; do
- ln -snf "${init_d_dir}/agetty" "${DESTDIR}/${init_d_dir}/agetty.$x"
- ln -snf "${init_d_dir}/agetty.$x" "${DESTDIR}/${defaultdir}/agetty.$x"
- done;
-fi
ln -snf "${rc_libexecdir}"/sh/functions.sh "${DESTDIR}/${init_d_dir}"
--
2.18.2