1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-06-29 14:09:48 +02:00

use sysvinit

This commit is contained in:
DanyLE 2023-08-02 10:33:39 +02:00
parent afbfe3bba0
commit dbc5d431a0
3 changed files with 5 additions and 5 deletions

View File

@ -24,11 +24,11 @@ do_install() {
install -d ${D}/${sysconfdir}/init.d/
install -d ${DEPLOY_DIR_IMAGE}
install -m 0755 ${WORKDIR}/confd ${D}/${sysconfdir}/init.d/confd
install -d ${D}/usr/sbin/
install -d ${D}/sbin/
install -d ${D}/etc/default/volatiles
# install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/sbin/expandfs.sh
install -m 0755 ${WORKDIR}/boot-to-recovery ${D}/usr/sbin/boot-to-recovery
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/sbin/expandfs.sh
install -m 0755 ${WORKDIR}/boot-to-recovery ${D}/sbin/boot-to-recovery
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
cat << EOF >> ${DEPLOY_DIR_IMAGE}/extraconfig.txt

View File

@ -13,7 +13,7 @@ case "$1" in
# need to turn it on manually
echo 0 > /sys/class/backlight/backlight/bl_power
if [ -f "/boot/fs_resize" ]; then
/usr/sbin/expandfs.sh
/sbin/expandfs.sh
touch /boot/home_partition_should_be_formated
rm /boot/fs_resize
reboot

View File

@ -15,7 +15,7 @@ case "$1" in
# mount boot
mount /dev/mmcblk0p1 /boot
cat << EOF >> /boot/extraconfig.txt
cat << EOF > /boot/extraconfig.txt
# initramfs recovery-${MACHINE}.cpio.gz followkernel
EOF
;;