summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2013-12-02 10:49:26 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-03 08:05:56 (GMT)
commit1a0b170a55126115d883f6cde9871e06a80f9cc2 (patch)
tree65d5cff9dd364eddfb4e508522996c8fd602ebc9
parent33e3245e047858cd89223cf5b4afbf4cb32318b0 (diff)
downloadbuildroot-1a0b170a55126115d883f6cde9871e06a80f9cc2.tar.gz
buildroot-1a0b170a55126115d883f6cde9871e06a80f9cc2.tar.bz2
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 <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/util-linux/util-linux.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 0925ab3..20b3d35 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))