Compare commits

...

1 Commits

Author SHA1 Message Date
fe9a59705e refactor: move resize2fs service to meta-diya 2026-04-09 01:16:28 +02:00
6 changed files with 3 additions and 43 deletions

View File

@@ -20,8 +20,8 @@ PREFERRED_VERSION_linux-megi = "6.12.10"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-megous"
PREFERRED_PROVIDER_u-boot = "u-boot-megous"
INITRAMFS_FSTYPES = "cpio.lz4.u-boot"
KERNEL_IMAGETYPE = "Image.gz"
#INITRAMFS_FSTYPES = "cpio.lz4.u-boot"
#KERNEL_IMAGETYPE = "Image.gz"
#PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc = "gcc-cross-${TARGET_ARCH}"
#PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ = "gcc-cross-${TARGET_ARCH}"

View File

@@ -1,15 +0,0 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += " file://resize2fs.service file://firstboot file://expandfs \
"
inherit systemd
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "resize2fs.service"
do_install:append () {
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
}

View File

@@ -1,14 +0,0 @@
#! /bin/sh
. /etc/profile
PATH=/sbin:/bin:/usr/sbin:/usr/bin
PARTNO=4
if [ -z "$DISK" ]; then
DISK="mmcblk0"
fi
if [ "$(/usr/bin/id -u)" -ne 0 ]; then
echo "$0 shall be run as root"
exit 1
fi
yes | parted ---pretend-input-tty /dev/mmcblk0 resizepart ${PARTNO} 100%
resize2fs /dev/${DISK}p${PARTNO}

View File

@@ -1,12 +0,0 @@
[Unit]
Description=Resize home partition
ConditionPathExists=/etc/firstboot
[Service]
Type=oneshot
ExecStart=/sbin/expandfs
ExecStartPost=rm /etc/firstboot
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

View File

@@ -6,4 +6,5 @@ IMAGE_INSTALL:append:pinephone = " \
modemmanager \
gpsd \
gps-utils \
diya-resizefs \
"