Skip to content

Commit 49945c2

Browse files
committed
recipes-bsp: add resize-rootfs recipe to grow rootfs at first boot
Move rootfs resize logic from systemd bbappend to a dedicated resize-rootfs recipe. This avoids overloading systemd with distro-specific services and provides a cleaner separation of functionality. Signed-off-by: Viswanath Kraleti <[email protected]>
1 parent 82d17d3 commit 49945c2

File tree

4 files changed

+24
-14
lines changed

4 files changed

+24
-14
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
SUMMARY = "Systemd drop-in service fragments to resize root filesystem at first boot"
2+
LICENSE = "BSD-3-Clause-Clear"
3+
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause-Clear;md5=7a434440b651f4a472ca93716d01033a"
4+
5+
SRC_URI += "\
6+
file://growfs-root.conf \
7+
file://growfs-root.preset \
8+
"
9+
10+
inherit features_check systemd
11+
REQUIRED_DISTRO_FEATURES = "systemd"
12+
13+
do_install:append:qcom() {
14+
install -Dm 0644 ${WORKDIR}/sources/growfs-root.preset \
15+
${D}${systemd_unitdir}/system-preset/98-growfs-root.preset
16+
install -Dm 0644 ${WORKDIR}/sources/growfs-root.conf \
17+
${D}${systemd_unitdir}/system/systemd-growfs-root.service.d/growfs-root.conf
18+
}
19+
20+
PACKAGES = "${PN}"
21+
22+
FILES:${PN} += "${systemd_unitdir}"
23+
24+
RDEPENDS:${PN} += "e2fsprogs-resize2fs"

recipes-core/systemd/systemd_%.bbappend

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)