Skip to content

Commit 62d8e97

Browse files
authored
Add resize-rootfs recipe to grow rootfs at first boot (#101)
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.
2 parents 1f3683a + 6655a05 commit 62d8e97

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
1-
# Enable systemd-grow-rootfs.service to resize root filesystem at boot
2-
FILESEXTRAPATHS:append := "${THISDIR}/${BPN}:"
1+
SUMMARY = "Systemd drop-in service fragment 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+
35
SRC_URI += "\
46
file://growfs-root.conf \
57
file://growfs-root.preset \
68
"
79

10+
inherit features_check systemd
11+
REQUIRED_DISTRO_FEATURES = "systemd"
12+
813
do_install:append:qcom() {
914
install -Dm 0644 ${WORKDIR}/sources/growfs-root.preset \
1015
${D}${systemd_unitdir}/system-preset/98-growfs-root.preset
1116
install -Dm 0644 ${WORKDIR}/sources/growfs-root.conf \
1217
${D}${systemd_unitdir}/system/systemd-growfs-root.service.d/growfs-root.conf
1318
}
1419

20+
PACKAGES = "${PN}"
21+
22+
FILES:${PN} += "${systemd_unitdir}"
23+
24+
RDEPENDS:${PN} += "e2fsprogs-resize2fs"

0 commit comments

Comments
 (0)