我目前正在使用yocto,在rootfs期间,它一直到登录提示,我不想登录。
i want to have autologin support How can i add autologin support in yocto
Already tried with "allow-empty-password"
and "debug-tweaks", which is useful for empty password not empty login or autologin
答案 0 :(得分:1)
以下是使用systemd的getty图片的示例:
https://github.com/ostroproject/ostro-os/blob/master/meta-ostro/classes/ostro-image.bbclass#L465
# Enable local auto-login of the root user (local = serial port and
# virtual console by default, can be configured).
OSTRO_LOCAL_GETTY ?= " \
${IMAGE_ROOTFS}${systemd_system_unitdir}/serial-getty@.service \
${IMAGE_ROOTFS}${systemd_system_unitdir}/getty@.service \
"
local_autologin () {
sed -i -e 's/^\(ExecStart *=.*getty \)/\1--autologin root /' ${OSTRO_LOCAL_GETTY}
}
ROOTFS_POSTPROCESS_COMMAND += "${@bb.utils.contains('IMAGE_FEATURES', 'autologin', 'local_autologin;', '', d)}"
它与图像功能相关联,我们非常谨慎地避免在生产图像中意外启用它:
答案 1 :(得分:0)
您可以使用与此类似的内容消除登录提示:http://lists.busybox.net/pipermail/busybox/2005-June/014725.html
tty0::respawn:-/bin/sh
ttymxc1::resapwn:/sbin/getty ttymxc1 115200 vt100