1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-19 11:28:21 +01:00

use sysvinit

This commit is contained in:
DanyLE 2023-08-01 19:34:18 +02:00
parent 734bb8d960
commit de319e1292
2 changed files with 9 additions and 2 deletions

View File

@ -32,6 +32,6 @@ cat << 'EOF' >> "${IMAGE_ROOTFS}/etc/hostname"
diyaid
EOF
# enable autologin
sed -i 's/options="/&--autologin root /' \
"${IMAGE_ROOTFS}${base_bindir}/start_getty"
sed -i 's/getty/getty --autologin root/g' \
"${IMAGE_ROOTFS}/etc/inittab"
}

View File

@ -8,6 +8,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
PR = "r4"
inherit useradd
inherit allarch
SRC_URI = "file://init \
@ -17,6 +19,11 @@ SRC_URI = "file://init \
S = "${WORKDIR}"
USERADD_PACKAGES = "${PN}"
GROUPADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "-u 0 -d /root -r -s /bin/sh root"
do_install() {
install -d ${D}/init.d