Patchwork [02/10] util-linux: use u-a to provide /sbin/getty from util-linux-agetty

login
register
mail settings
Submitter Martin Jansa
Date Nov. 29, 2011, 7 a.m.
Message ID <3203398eecfc0215abbca487c516006bca4305ef.1322549636.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/15505/
State Accepted
Commit 9e5c69860e6b687b93e653510ceba8e1f9c6d0f5
Headers show

Comments

Martin Jansa - Nov. 29, 2011, 7 a.m.
* inittab and systemd-serialgetty expects /sbin/getty not agetty

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-core/util-linux/util-linux.inc       |    8 ++++++++
 meta/recipes-core/util-linux/util-linux_2.19.1.bb |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 855a545..acc4a39 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -236,6 +236,14 @@  pkg_prerm_util-linux-fdisk () {
 	update-alternatives --remove fdisk fdisk.${PN}
 }
 
+pkg_postinst_util-linux-agetty () {
+	update-alternatives --install ${base_sbindir}/getty getty agetty 100
+}
+
+pkg_prerm_util-linux-agetty () {
+	update-alternatives --remove getty agetty
+}
+
 pkg_postinst_util-linux-mount () {
 	update-alternatives --install ${base_bindir}/mount mount mount.${PN} 100
 }
diff --git a/meta/recipes-core/util-linux/util-linux_2.19.1.bb b/meta/recipes-core/util-linux/util-linux_2.19.1.bb
index b65e761..82040ef 100644
--- a/meta/recipes-core/util-linux/util-linux_2.19.1.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.19.1.bb
@@ -1,5 +1,5 @@ 
 MAJOR_VERSION = "2.19"
-PR = "r11"
+PR = "r12"
 require util-linux.inc
 
 # note that `lscpu' is under GPLv3+