mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-26 18:58:20 +01:00
use sysvinit
This commit is contained in:
parent
37a3490424
commit
5f6c03253f
@ -22,8 +22,16 @@ IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
|||||||
# Use the same restriction as initramfs-module-install
|
# Use the same restriction as initramfs-module-install
|
||||||
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
|
COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)'
|
||||||
|
|
||||||
IMAGE_PREPROCESS_COMMAND += "clobber_unused;"
|
IMAGE_PREPROCESS_COMMAND += "image_patch;"
|
||||||
|
|
||||||
clobber_unused () {
|
image_patch () {
|
||||||
|
# delete unused image
|
||||||
rm -rf ${IMAGE_ROOTFS}/boot/*
|
rm -rf ${IMAGE_ROOTFS}/boot/*
|
||||||
|
# setup hostname
|
||||||
|
cat << 'EOF' >> "${IMAGE_ROOTFS}/etc/hostname"
|
||||||
|
diyaid
|
||||||
|
EOF
|
||||||
|
# enable autologin
|
||||||
|
sed -i 's/options="/&--autologin root /' \
|
||||||
|
"${IMAGE_ROOTFS}${base_bindir}/start_getty"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user