22 lines
747 B
BlitzBasic
22 lines
747 B
BlitzBasic
|
|
DESCRIPTION = "Auto resize file system on first boot"
|
|
DEPENDS = ""
|
|
RDEPENDS:${PN} = "bash"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
SRC_URI += " file://resize2fs.service file://firstboot file://expandfs \
|
|
"
|
|
inherit systemd
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
SYSTEMD_SERVICE:${PN} = "resize2fs.service"
|
|
|
|
do_install() {
|
|
install -d ${D}/${sysconfdir}
|
|
install -d ${D}/usr/sbin
|
|
install -d ${D}${systemd_unitdir}/system
|
|
install -m 0644 ${UNPACKDIR}/firstboot ${D}${sysconfdir}/firstboot
|
|
install -m 0755 ${UNPACKDIR}/expandfs ${D}/usr/sbin/expandfs
|
|
install -D -p -m0644 ${UNPACKDIR}/resize2fs.service \
|
|
${D}${systemd_unitdir}/system/resize2fs.service
|
|
} |