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:10:13 +02:00
parent 5f6c03253f
commit 734bb8d960
4 changed files with 2 additions and 66 deletions

View File

@ -1,28 +0,0 @@
#!/bin/sh
# Copyright (C) 2011 O.S. Systems Software LTDA.
# Licensed on MIT
e2fs_enabled() {
return 0
}
e2fs_run() {
filesystems="ext4 ext3 ext2"
# load modules
for fs in $filesystems; do
load_kernel_module $fs
done
for fs in $filesystems; do
eval "fs_options=\$bootparam_${fs}"
if [ -n "$fs_options" ]; then
dev=`expr "$fs_options" : '\([^:]*\).*'`
path=`expr "$fs_options" : '[^:]*:\([^:]*\).*'`
info "Mounting $dev as $fs on $path as $fs..."
mkdir -p $path
mount -t $fs $dev $path
fi
done
}

View File

@ -1,28 +0,0 @@
#!/bin/sh
# Copyright (C) 2017 O.S. Systems Software LTDA.
# Licensed on MIT
EXEC_DIR=/exec.d # place to look for modules
exec_enabled() {
return 0
}
exec_run() {
if [ ! -d $EXEC_DIR ]; then
msg "No contents to exec in $EXEC_DIR. skipping ..."
fi
# Load and run modules
for m in $EXEC_DIR/*; do
# Skip backup files
if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then
continue
fi
debug "Starting $m"
# process module
./$m
done
}

View File

@ -159,7 +159,7 @@ for m in $MODULES_DIR/*; do
done done
done done
exec /sbin/init # exec /sbin/init
exec sh
# Catch all # Catch all
fatal "ERROR: Initramfs failed to initialize the system." fatal "ERROR: Initramfs failed to initialize the system."

View File

@ -11,9 +11,7 @@ PR = "r4"
inherit allarch inherit allarch
SRC_URI = "file://init \ SRC_URI = "file://init \
file://exec \
file://udev \ file://udev \
file://e2fs \
file://debug \ file://debug \
" "
@ -25,15 +23,9 @@ do_install() {
# base # base
install -m 0755 ${WORKDIR}/init ${D}/init install -m 0755 ${WORKDIR}/init ${D}/init
# exec
install -m 0755 ${WORKDIR}/exec ${D}/init.d/89-exec
# udev # udev
install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev install -m 0755 ${WORKDIR}/udev ${D}/init.d/01-udev
# e2fs
# install -m 0755 ${WORKDIR}/e2fs ${D}/init.d/10-e2fs
# debug # debug
install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug install -m 0755 ${WORKDIR}/debug ${D}/init.d/00-debug