summaryrefslogtreecommitdiff
path: root/recipes-core/fs-init/fs-init.bb
blob: bb9b1b86155ed3b861c84b518060015b8c2a8151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SUMMARY = "Expand the rootfs to the full size of its partion"
DESCRIPTION = "Script to expand the rootfs to the full size of its partion, started as a systemd service which removes itself once finished"
LICENSE = "PD"
PR = "r3"

RRECOMMENDS:${PN} = "e2fsprogs-resize2fs"

SRC_URI = " \
    file://resizefs.sh \
    file://resizefs.service \
    file://COPYING \
"

LIC_FILES_CHKSUM = "file://${WORKDIR}/COPYING;md5=1c3a7fb45253c11c74434676d84fe7dd"

do_install () {
    install -d ${D}/${sbindir}
    install -m 0755 ${WORKDIR}/*.sh ${D}/${sbindir}

    install -d ${D}${systemd_unitdir}/system/
    install -m 0644 ${WORKDIR}/resizefs.service ${D}${systemd_unitdir}/system
}

SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "resizefs.service"

inherit allarch systemd