From 1a0b170a55126115d883f6cde9871e06a80f9cc2 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Mon, 2 Dec 2013 07:49:26 -0300 Subject: [PATCH] util-linux: add agetty->getty symlink When busybox isn't installed symlink agetty->getty to make the default inittab work. Signed-off-by: Gustavo Zacarias Signed-off-by: Peter Korsgaard --- package/util-linux/util-linux.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk index 0925ab32cb..20b3d3558a 100644 --- a/package/util-linux/util-linux.mk +++ b/package/util-linux/util-linux.mk @@ -112,6 +112,17 @@ endif UTIL_LINUX_POST_INSTALL_TARGET_HOOKS += UTIL_LINUX_INSTALL_PAMFILES +# Install agetty->getty symlink to avoid breakage when there's no busybox +ifeq ($(BR2_PACKAGE_UTIL_LINUX_AGETTY),y) +ifeq ($(BR2_PACKAGE_BUSYBOX),) +define UTIL_LINUX_GETTY_SYMLINK + ln -sf agetty $(TARGET_DIR)/sbin/getty +endef +endif +endif + +UTIL_LINUX_POST_INSTALL_TARGET_HOOKS += UTIL_LINUX_GETTY_SYMLINK + $(eval $(autotools-package)) $(eval $(host-autotools-package)) -- 2.30.2