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>
This commit is contained in:
parent
33e3245e04
commit
1a0b170a55
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue