2023-07-10 15:26:41 +02:00
|
|
|
DESCRIPTION = "Auto configuration deployment from media"
|
|
|
|
DEPENDS = ""
|
|
|
|
LICENSE = "MIT"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
|
|
|
|
SRC_URI += "file://confd \
|
|
|
|
file://expandfs.sh \
|
|
|
|
file://80_diya \
|
2023-08-02 09:54:53 +02:00
|
|
|
file://fs_resize"
|
2023-07-10 15:26:41 +02:00
|
|
|
|
|
|
|
|
|
|
|
inherit update-rc.d useradd
|
|
|
|
|
|
|
|
USERADD_PACKAGES = "${PN}"
|
|
|
|
GROUPADD_PACKAGES = "${PN}"
|
|
|
|
|
|
|
|
USERADD_PARAM:${PN} = "-u 1000 -d /home/diya -r -s /bin/sh diya"
|
|
|
|
|
|
|
|
INITSCRIPT_NAME = "confd"
|
2023-07-10 19:27:12 +02:00
|
|
|
INITSCRIPT_PARAMS = "start 30 S ."
|
2023-07-10 15:26:41 +02:00
|
|
|
|
|
|
|
do_install() {
|
|
|
|
install -d ${D}/${sysconfdir}/init.d/
|
2023-07-18 09:30:34 +02:00
|
|
|
install -d ${DEPLOY_DIR_IMAGE}
|
2023-07-10 15:26:41 +02:00
|
|
|
install -m 0755 ${WORKDIR}/confd ${D}/${sysconfdir}/init.d/confd
|
|
|
|
install -d ${D}/usr/bin/
|
|
|
|
install -d ${D}/etc/default/volatiles
|
2023-07-10 18:53:23 +02:00
|
|
|
# install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
2023-07-10 15:26:41 +02:00
|
|
|
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/bin/expandfs.sh
|
|
|
|
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
|
2023-08-02 09:51:11 +02:00
|
|
|
|
|
|
|
cat << EOF >> ${DEPLOY_DIR_IMAGE}/extraconfig.txt
|
|
|
|
# initramfs recovery-${MACHINE}.cpio.gz followkernel
|
|
|
|
EOF
|
2023-07-10 18:15:50 +02:00
|
|
|
|
|
|
|
install -d ${D}/var/etc
|
|
|
|
install -d ${D}/var/etc/upper
|
|
|
|
install -d ${D}/var/etc/work
|
2023-07-10 15:26:41 +02:00
|
|
|
}
|