mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2026-04-09 11:32:31 +02:00
use sysvinit
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DESC="Custom configuration"
|
||||
. /etc/profile
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
@@ -13,6 +14,10 @@ case "$1" in
|
||||
echo "diya-recovery" > /proc/sys/kernel/hostname
|
||||
# mount boot
|
||||
mount /dev/mmcblk0p1 /boot
|
||||
|
||||
cat << EOF >> /boot/extraconfig.txt
|
||||
# initramfs recovery-${MACHINE}.cpio.gz followkernel
|
||||
EOF
|
||||
;;
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
|
||||
@@ -61,7 +61,7 @@ EFI_DIR=/sys/firmware/efi # place to store device firmware information
|
||||
touch /etc/fstab
|
||||
|
||||
# initialize /proc, /sys, /run/lock and /var/lock
|
||||
mkdir -p /proc /sys /run/lock /var/lock
|
||||
mkdir -p /proc /sys /run/lock /var/lock /var/run
|
||||
mount -t proc proc /proc
|
||||
mount -t sysfs sysfs /sys
|
||||
|
||||
|
||||
@@ -25,7 +25,9 @@ do_install() {
|
||||
# base
|
||||
install -m 0755 ${WORKDIR}/init ${D}/init
|
||||
install -m 0755 ${WORKDIR}/confd ${D}/etc/init.d/confd
|
||||
|
||||
cat << EOF >> ${D}/etc/profile
|
||||
export MACHINE=${MACHINE}
|
||||
EOF
|
||||
# Create device nodes expected by some kernels in initramfs
|
||||
# before even executing /init.
|
||||
install -d ${D}/dev
|
||||
|
||||
Reference in New Issue
Block a user