diff --git a/recipes-core/systemd/systemd/growfs-root.conf b/recipes-bsp/resize-rootfs/files/growfs-root.conf similarity index 100% rename from recipes-core/systemd/systemd/growfs-root.conf rename to recipes-bsp/resize-rootfs/files/growfs-root.conf diff --git a/recipes-core/systemd/systemd/growfs-root.preset b/recipes-bsp/resize-rootfs/files/growfs-root.preset similarity index 100% rename from recipes-core/systemd/systemd/growfs-root.preset rename to recipes-bsp/resize-rootfs/files/growfs-root.preset diff --git a/recipes-core/systemd/systemd_%.bbappend b/recipes-bsp/resize-rootfs/resize-rootfs_1.0.bb similarity index 50% rename from recipes-core/systemd/systemd_%.bbappend rename to recipes-bsp/resize-rootfs/resize-rootfs_1.0.bb index 2e4469e..d4f033f 100644 --- a/recipes-core/systemd/systemd_%.bbappend +++ b/recipes-bsp/resize-rootfs/resize-rootfs_1.0.bb @@ -1,10 +1,15 @@ -# Enable systemd-grow-rootfs.service to resize root filesystem at boot -FILESEXTRAPATHS:append := "${THISDIR}/${BPN}:" +SUMMARY = "Systemd drop-in service fragment to resize root filesystem at first boot" +LICENSE = "BSD-3-Clause-Clear" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause-Clear;md5=7a434440b651f4a472ca93716d01033a" + SRC_URI += "\ file://growfs-root.conf \ file://growfs-root.preset \ " +inherit features_check systemd +REQUIRED_DISTRO_FEATURES = "systemd" + do_install:append:qcom() { install -Dm 0644 ${WORKDIR}/sources/growfs-root.preset \ ${D}${systemd_unitdir}/system-preset/98-growfs-root.preset @@ -12,3 +17,8 @@ do_install:append:qcom() { ${D}${systemd_unitdir}/system/systemd-growfs-root.service.d/growfs-root.conf } +PACKAGES = "${PN}" + +FILES:${PN} += "${systemd_unitdir}" + +RDEPENDS:${PN} += "e2fsprogs-resize2fs"